"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["5974"],{72986:function(e,t,l){l.d(t,{u2:function(){return u},vr:function(){return s}});var n=l(320165);l(101199);var a=l(356426),i=l(39711),r=l(237727),o=l(599961);let u=60576,s=e=>{let{originalLink:t,reportDesc:l,reportDescPlaceholder:u,images:s,onOriginalLinkChange:d,onReportDescChange:c,onImagesChange:v}=e;return(0,n.jsxs)("div",{id:"incut-d2c-root-cmqospijk00314tji7ln7dgpl",className:o.default.plagiarismFields,"data-reference-id":"2958:1816",children:[(0,n.jsx)(a._,{text:"被抄袭的原创作品链接",required:!0}),(0,n.jsx)(i.K,{className:o.default.plagiarismTextArea,maxLength:500,placeholder:"请提供可公开访问的原始链接,并确认发布时间早于被举报内容",minHeight:78,value:t||"",onChange:d}),(0,n.jsx)(a._,{text:"举报描述"}),(0,n.jsx)(i.K,{maxLength:200,placeholder:u,minHeight:75,value:l||"",onChange:c}),(0,n.jsxs)("div",{className:o.default.plagiarismTips,children:["1.如果你是原创作者本人",(0,n.jsx)("br",{}),"请上传首发作品截图、首发账号个人主页截图",(0,n.jsx)("br",{}),"2.如果你是原创作者授权的代理人",(0,n.jsx)("br",{}),"请上传授权书(含授权人签字或盖章)、原创作者首发作品截图、原创作者账号个人主页截图"]}),(0,n.jsx)("div",{className:o.default.uploadContainer,children:(0,n.jsx)(r.U,{value:s||[],onChange:v})}),(0,n.jsx)("div",{className:o.default.uploadTips,children:"每张小于 10M,支持JPG、PNG格式,最多上传4张"})]})}},935372:function(e,t,l){l.d(t,{n:function(){return e6},m:function(){return e7}});var n=l("320165"),a=l("101199"),i=l("890710"),r=l("499059");l("490629");var o=l("227630"),u=l("477667"),s=l("687875"),d=l("250532"),c=l("913029"),v=l("469935"),m=l.n(v),p=l("277837");let{ArrowUp:f,ArrowDown:h,W:g,S:_,Escape:x,N:y}=s.bf,C=e=>{let{children:t,title:l,visible:i,onCancel:r}=e,o=a.useCallback(()=>{r&&r(!1)},[]),s=a.useRef(null),v=e=>{e.stopPropagation()};return a.useEffect(()=>{let e="report/ui/Modal";return(0,d.o)({disableKey:[h,f,g,_,x,y].map(e=>e.code),pauseGlobalShortcut:!0},e),()=>{(0,d.m)(e)}},[]),a.useEffect(()=>{let{current:e}=s;if(e)return e.setAttribute("tabindex","0"),e.addEventListener("DOMMouseScroll",v),e.onwheel=e=>e.preventDefault(),e.focus(),()=>{e.removeEventListener("DOMMouseScroll",v)}},[i]),i?(0,n.jsx)("div",{className:c.default.mask,ref:s,onWheel:v,children:(0,n.jsxs)("div",{className:m()(c.default.modalContainer,e.className),"data-e2e":"report-container",children:[(0,n.jsx)("div",{className:c.default.close,onClick:o,"data-e2e":"report-container-close",children:(0,n.jsx)(p.n,{width:36,height:36,src:u.Z})}),l&&(0,n.jsx)("div",{className:c.default.title,children:l}),(0,n.jsx)("div",{className:c.default.content,children:t})]})}):null};var j=l("629686");l("374954");var b=l("90837"),k=l("624508"),N=new k.h({report_web:{eventName:"report_web",params:{report_type:"",object_id:"",enter_method:""}}}),w=l("974976"),S=l("216554");let E=e=>{let{selected:t,disable:l,label:i,className:r,onClick:o,value:u}=e,s=a.useCallback(()=>{o&&o(u,!t)},[u,t,o]);return(0,n.jsxs)("div",{className:m()(S.default.radioContainer,r),children:[(0,n.jsx)("div",{onClick:s,className:m()(S.default.radio,{[S.default.selected]:t,[S.default.disable]:l})}),i&&(0,n.jsx)("span",{className:S.default.label,children:i})]})};var P=l("794706");let L=e=>{let{notResize:t=!1,value:l,onChange:i,placeholder:r,maxLength:o,width:u,className:s,minHeight:d}=e,c=a.useRef(null),[v,p]=a.useState(),f=a.useCallback(e=>{let t=e.target.value;t.length<=o&&i(t)},[i]);return(0,n.jsxs)("div",{style:{width:u},className:m()(P.default.textareaContainer,s),children:[(0,n.jsx)("textarea",{value:l,ref:c,style:{minHeight:d,height:v},onChange:f,onKeyDown:e=>e.stopPropagation(),placeholder:r,className:P.default.textarea}),void 0!==o&&(0,n.jsxs)("div",{className:m()(P.default.count,{[P.default.overflow]:l.length>o}),children:[l.length,"/",o]})]})};var I=l("428584");function A(e){let{size:t="normal",type:l="primary",children:a,autoFixed:i=!0,className:r,width:o,style:u,theme:s="solid",disabled:d=!1,onClick:c=function(){}}=e;return(0,n.jsx)("button",{type:"button",disabled:d,onClick:c,className:m()(I.default.button,I.default[t],I.default[l],I.default[s],{[I.default.fixed]:!i},r),style:(0,j._)({width:o&&`${o}px`},u),children:a})}var T=e=>{let{reasons:t,type:l,object_id:i,isLive:r=!1,onLiveReport:o=()=>void 0,logParams:u,toast:s}=e,[d,c]=a.useState(""),[v,m]=a.useState(""),p=a.useMemo(()=>{let e={};for(let l=0;l{m(e)},[]),h=a.useCallback(()=>{!r&&(N.sendLog("report_web",(0,j._)({report_type:l,object_id:i},u)),null==e||e.onClose()),r&&(o(v,d),null==e||e.onClose()),s?s("提交成功",null==e?void 0:e.toastParent):w.F.info("提交成功",null==e?void 0:e.toastParent)},[v,d,o]);return(0,n.jsxs)("div",{className:b.default.reportContainer,"data-e2e":"report-container",children:[(0,n.jsxs)("div",{className:b.default.reasonList,children:[(0,n.jsx)("div",{className:b.default.col,children:(p[0]||[]).map(e=>(0,n.jsx)(E,{selected:v===e.value,label:e.label,value:e.value,className:b.default.reasonItem,onClick:f},e.value))}),(0,n.jsx)("div",{className:b.default.col,children:(p[1]||[]).map(e=>(0,n.jsx)(E,{selected:v===e.value,label:e.label,value:e.value,className:b.default.reasonItem,onClick:f},e.value))}),(0,n.jsx)("div",{className:b.default.col,children:(p[2]||[]).map(e=>(0,n.jsx)(E,{selected:v===e.value,label:e.label,value:e.value,className:b.default.reasonItem,onClick:f},e.value))})]}),(0,n.jsx)(L,{notResize:!0,maxLength:140,placeholder:"请详细描述举报原因,便于平台判断违规情况",minHeight:75,value:d,onChange:e=>c(e),className:b.default.reportDesc}),(0,n.jsx)(A,{className:b.default.submit,onClick:h,disabled:!v,children:"提交"})]})};let M=["色情低俗","违法犯罪","造谣传谣","垃圾广告","售卖假货","非原创内容","未成年人相关","其他"],R=["色情低俗","违法犯罪","造谣传谣","垃圾广告","骚扰","人身攻击","时政不实信息"],F=["色情低俗","违法犯罪","造谣传谣","垃圾广告","骚扰","人身攻击","时政不实信息"],O=["色情低俗","违法犯罪","造谣传谣","垃圾广告","售卖假货","未成年相关","头像、昵称、签名、背景图违规"],U=["违法违禁","淫秽色情","抽烟饮酒","欺诈/售假","未成年人相关","危险行为","录像/盗播","声音违规","诱导刷礼","引导线下转账","侮辱谩骂","其他"];var D=e=>{let[t,l]=(0,a.useState)(!0),[u,s]=a.useState(o.default.zoomIn),d=a.useCallback(()=>{s(o.default.zoomOut),setTimeout(()=>{var t;l(!1),i.unmountComponentAtNode(e.portalRef),e.portalRef.remove(),null===(t=e.onClose)||void 0===t||t.call(e)},300)},[t]);return(0,a.useEffect)(()=>()=>{r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!1)},[]),(0,n.jsx)(C,{title:e.title,visible:t,className:u,onCancel:d,children:(0,n.jsx)(T,{toast:null==e?void 0:e.toast,toastParent:e.toastParent,reasons:function(e){switch(e){case"video":return M.map(e=>({label:e,value:e}));case"comment":return R.map(e=>({label:e,value:e}));case"user":return O.map(e=>({label:e,value:e}));case"live":return U.map(e=>({label:e,value:e}));case"danmaku":return F.map(e=>({label:e,value:e}));default:return[]}}(e.type),onClose:d,object_id:e.object_id,type:e.type,isLive:!0,onLiveReport:e.onLiveReport,logParams:e.logParams})})},Z=l("402748");l("706056"),l("362051");var H=l("254127"),K=l("557329");let{ArrowUp:B,ArrowDown:V,W:q,S:Y,Escape:G,N:W}=s.bf,z=e=>{let{visible:t,children:l,title:i,footer:r,className:o,footerClassName:s,onCancel:c,showClose:v=!0}=e,f=a.useRef(),h=e=>{e.stopPropagation()};return(a.useEffect(()=>{let e="report/ui/Modal";return(0,d.o)({disableKey:[V,B,q,Y,G,W].map(e=>e.code),pauseGlobalShortcut:!0},e),()=>{(0,d.m)(e)}},[]),(0,a.useEffect)(()=>{var e,t,l;return null===(e=f.current)||void 0===e||e.setAttribute("tabindex","0"),null===(t=f.current)||void 0===t||t.addEventListener("DOMMouseScroll",h),null===(l=f.current)||void 0===l||l.focus(),()=>{var e;null===(e=f.current)||void 0===e||e.removeEventListener("DOMMouseScroll",h)}},[t]),t)?(0,n.jsx)("div",{className:K.default.mask,ref:f,onWheel:h,children:(0,n.jsxs)("div",{className:m()(K.default.modalContainer,o),"data-e2e":"report-container",children:[v&&(0,n.jsx)("div",{className:K.default.close,onClick:()=>{"function"==typeof c&&c(!1)},"data-e2e":"report-container-close",children:(0,n.jsx)(p.n,{width:36,height:36,src:u.Z})}),i&&(0,n.jsx)("div",{className:K.default.title,children:i}),(0,n.jsx)("div",{className:K.default.content,children:l}),(0,n.jsx)("div",{className:m()(K.default.footer,s),children:r})]})}):null};var $=l("549419");function J(e){let{children:t,className:l,width:a,style:i,disabled:r=!1,onClick:o=function(){}}=e;return(0,n.jsx)("button",{type:"button",disabled:r,onClick:o,className:m()($.default.button,l),style:(0,j._)({width:a&&`${a}px`},i),children:t})}var Q=l("356426"),X=l("61061");let ee=e=>{let{label:t,value:l,checked:a,disabled:i,className:r,style:o,onCheck:u}=e;return(0,n.jsxs)("div",{className:m()(X.default.container,r),style:o,children:[(0,n.jsx)("div",{onClick:()=>{"function"==typeof u&&u(l)},className:m()(X.default.radio,{[X.default.checked]:a,[X.default.disabled]:i})}),t&&(0,n.jsx)("span",{className:X.default.label,children:t})]})};var et=l("664186");let el=e=>{let{className:t,column:l=1,optionList:i,value:r,onChange:o}=e,u=(0,a.useMemo)(()=>({width:`${100/l}%`}),[l]);return Array.isArray(i)?(0,n.jsx)("div",{className:m()(et.default.container,t),children:i.map(e=>(0,n.jsx)(ee,{className:et.default.radio,style:u,label:e.label,value:e.value,checked:r===e.value,onCheck:o},e.value))}):null};var en=l("39711"),ea=l("237727"),ei=l("863822"),er=l("661540");let eo=e=>{let{value:t,className:l,onClick:a}=e;return(0,n.jsxs)("div",{className:m()(ei.default.container,l),onClick:a,children:[(0,n.jsx)("div",{className:ei.default.text,children:t}),(0,n.jsx)(p.n,{className:ei.default.icon,src:er.Z,width:24,height:24})]})};var eu=l("600767");let es=e=>{let{objectId:t,schemaType:l=1}=e,[i,r]=(0,a.useState)();return(0,a.useEffect)(()=>{let n=`schema_type=${l}&object_id=${t}`;(0,eu.ep)(e.objectId,{schema:n}).then(e=>{!e||(null==e?void 0:e.statusCode)?w.F.info("服务器打瞌睡了,请稍后再试"):r(null==e?void 0:e.qrcodeUrl)})},[t,l]),(0,n.jsx)("img",{className:e.className,src:i})};var ed=l("392188");let ec=(0,a.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,Z._)((0,j._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M20.566 9.364a1.929 1.929 0 0 1 2.727 2.727l-5.637 5.637 5.637 5.637a1.928 1.928 0 1 1-2.727 2.727l-6.985-6.985-.016-.015a1.929 1.929 0 0 1 0-2.728l7-7z",fill:"#0A0C20"})})));var ev=e=>{let{visible:t,defaultValue:l=[],onCancel:i,onOk:r}=e,[o,u]=(0,a.useState)(l),{ReportEntry:s}=window;return s?(0,n.jsx)(z,{title:(0,n.jsxs)("div",{className:ed.default.title,children:[(0,n.jsx)(p.n,{className:ed.default.icon,src:ec,width:24,height:24,onClick:()=>i()}),(0,n.jsx)("div",{children:"选择聊天证据"})]}),visible:t,showClose:!1,onCancel:()=>i(),footer:(0,n.jsx)(J,{style:{width:"100%"},onClick:()=>r(o),disabled:!o.length,children:"确定"}),children:(0,n.jsx)("div",{className:ed.default.messageContainer,children:(0,n.jsx)(s,{onMessageSelect:e=>u(e),selectedMessage:o})})}):null},em=l("599961");l("679308");var ep=l("987826"),ef=l("911429"),eh={VIDEO:101,101:"VIDEO",COMMENT:102,102:"COMMENT",USER:103,103:"USER",IMAGE:126,126:"IMAGE",IM:106,106:"IM",IM_GROUP:115,115:"IM_GROUP"};let{APP_ID:eg,CLIENT_APP_ID:e_}=ep,ex={157:101,161:126};function ey(e){return 60448===e||113===e}let eC=[{label:"侵犯权益",value:"侵犯权益",piracy:!0,children:[{label:"侵犯我/我的组织的权益",value:"侵犯我/我的组织的权益"},{label:"侵犯他人权益",value:"侵犯他人权益",needInfringementExtra:!0,infringementTypeOptions:[{label:"不当使用肖像",value:60579,description:"肖像被丑化污损、或未经他人授权使用"},{label:"损害个人名誉",value:60582,description:"捏造事实或侮辱、诋毁他人"},{label:"损害企业商誉",value:60583,description:"捏造、传播企业负面信息、虚假信息,影响企业信誉、破坏企业形象"},{label:"不当改编作品",value:60585,description:"未经授权搬运/抄袭他人原创内容"},{label:"冒充身份",value:60581,description:"身份信息、账号资料被他人仿冒"},{label:"假冒商标",value:60586,description:"未经许可使用与他人注册商标相同或近似标识"},{label:"假冒专利",value:60587,description:"未经许可实施他人专利技术、使用他人专利方法"},{label:"侵犯未成年权益",value:60558,description:"未成年人被不当使用肖像、侮辱诽谤等"},{label:"不属于以上类型",value:60588,description:""}]}]}];function ej(e){let t=new Map,l=e=>{var n;t.set(e.value,e),null===(n=e.children)||void 0===n||n.forEach(l)};return e.forEach(l),t}function eb(e){var t,l,n,a,i,r;return null!==(r=null!==(i=null!==(a=null!==(n=null!==(l=null!==(t=null==e?void 0:e.label)&&void 0!==t?t:null==e?void 0:e.text)&&void 0!==l?l:null==e?void 0:e.reason_str)&&void 0!==n?n:null==e?void 0:e.serial_str)&&void 0!==a?a:null==e?void 0:e.name)&&void 0!==i?i:null==e?void 0:e.category_name)&&void 0!==r?r:null==e?void 0:e.reason}function ek(e){if(Array.isArray(e))return e;if("string"==typeof e)try{let t=JSON.parse(e);return Array.isArray(t)?t:void 0}catch(e){return}}let eN=e=>{var t;let{jumpTextClassName:l,showJumpText:a,selectedReportLabel:i,selectedSubReportLabel:r,needInfringementExtra:o,subLabel:u,infringementOwner:s,infringementType:d,onSubLabelChange:c,onInfringementOwnerChange:v,onInfringementTypeChange:m}=e;return(null==i?void 0:null===(t=i.children)||void 0===t?void 0:t.length)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择侵权类型",required:!0}),(0,n.jsx)(el,{column:2,optionList:i.children,value:u,onChange:c}),!!o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"你认为该内容侵犯了谁的权益",required:!0}),(0,n.jsx)(en.K,{maxLength:140,minHeight:68,placeholder:"请输入被侵权个人/企业/机构名称",value:s||"",onChange:v}),(0,n.jsx)(Q._,{text:"侵权类型",required:!0}),(0,n.jsx)(el,{column:3,optionList:(null==r?void 0:r.infringementTypeOptions)||[],value:d,onChange:m})]}),a&&(0,n.jsx)("div",{className:l,children:"侵权问题需要详细举证,提交后进入批量侵权举报页面"})]}):null};var ew=l("72986");let eS=e=>{var t,l,i,r,o,u,s,d,c;let{reportScene:v,reasonList:m,reasonMap:p,onChange:f}=e,[h,g]=(0,a.useState)(),[_,x]=(0,a.useState)(),[y,C]=(0,a.useState)(),[j,b]=(0,a.useState)(),[k,N]=(0,a.useState)(),[w,S]=(0,a.useState)(),E=function(e){var t,l,n,i,r,o,u,s;let{reasonMap:d,primary:c,label:v}=e,[m,p]=(0,a.useState)(),[f,h]=(0,a.useState)(),[g,_]=(0,a.useState)();let x=(t=d,l=c,n=v,null===(r=t.get(l))||void 0===r?void 0:null===(i=r.report_labels)||void 0===i?void 0:i.find(e=>e.value===n));let y=(o=x,u=m,null==o?void 0:null===(s=o.children)||void 0===s?void 0:s.find(e=>e.value===u)),C=null==y?void 0:y.needInfringementExtra;return{subLabel:m,infringementOwner:f,infringementType:g,selectedReportLabel:x,selectedSubReportLabel:y,needInfringementExtra:C,resetInfringementState:()=>{p(void 0),h(void 0),_(void 0)},handleSubLabelChange:e=>{p(e),h(void 0),_(void 0)},setInfringementOwner:h,setInfringementType:_}}({reasonMap:p,primary:h,label:y}),{subLabel:P,infringementOwner:L,infringementType:I,selectedReportLabel:A,selectedSubReportLabel:T,needInfringementExtra:M,resetInfringementState:R}=E;let F=(s=p,ey(d=h)||(null===(c=s.get(d))||void 0===c?void 0:c.piracy)),O=124===h,U=!!M,D=F||(null==A?void 0:A.piracy)&&!U,Z=h===ew.u2,H=(null===(t=p.get(h))||void 0===t?void 0:t.textAreaDesc)||"请详细描述举报原因,便于平台判断违规情况";return(0,a.useEffect)(()=>{let e=Z?!!k:function(e){let{isJumpQinquan:t,isPrimaryJumpQinquan:l,label:n,subLabel:a,needInfringementExtra:i,infringementOwner:r,infringementType:o,reportDesc:u,reportScene:s,secondary:d,primary:c}=e;return!!l||(i?!!(a&&r&&o&&(null==u?void 0:u.trim())):t?a:124===c?!!n:s===eh.USER?d:c&&!t)}({isJumpQinquan:D,isPrimaryJumpQinquan:F,label:y,subLabel:P,needInfringementExtra:M,infringementOwner:L,infringementType:I,reportDesc:j,reportScene:v,secondary:_,primary:h});f({reasonCode:_||h,reportLabels:P||y,reportDesc:j,originalLink:k,imgList:w,infringementOwner:L,infringementType:I,validate:e})},[h,_,y,P,j,k,w,L,I,M,D,F,Z]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"举报原因",required:!0}),(0,n.jsx)(el,{column:3,optionList:m,value:h,onChange:e=>{g(e),x(void 0),C(void 0),N(void 0),R()}}),Z?(0,n.jsx)(ew.vr,{originalLink:k,reportDesc:j,reportDescPlaceholder:H,images:w,onOriginalLinkChange:N,onReportDescChange:b,onImagesChange:S}):F?(0,n.jsx)("div",{className:em.default.jumpText,children:"侵权问题需要详细举证,提交后进入批量侵权举报页面"}):(0,n.jsxs)(n.Fragment,{children:[(null===(i=p.get(h))||void 0===i?void 0:null===(l=i.children)||void 0===l?void 0:l.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型",required:v===eh.USER}),(0,n.jsx)(el,{column:3,optionList:null===(r=p.get(h))||void 0===r?void 0:r.children,value:_,onChange:x})]}),(null===(u=p.get(h))||void 0===u?void 0:null===(o=u.report_labels)||void 0===o?void 0:o.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型",required:O}),(0,n.jsx)(el,{column:3,optionList:p.get(h).report_labels,value:y,onChange:e=>{C(e),R()}})]}),(0,n.jsx)(eN,{jumpTextClassName:em.default.jumpText,showJumpText:!!((null==A?void 0:A.piracy)&&!M),selectedReportLabel:A,selectedSubReportLabel:T,needInfringementExtra:M,subLabel:P,infringementOwner:L,infringementType:I,onSubLabelChange:E.handleSubLabelChange,onInfringementOwnerChange:E.setInfringementOwner,onInfringementTypeChange:E.setInfringementType}),(!(null==A?void 0:A.piracy)||M)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"举报描述",required:!!M}),(0,n.jsx)(en.K,{maxLength:200,placeholder:H,minHeight:75,value:j,onChange:b}),(0,n.jsxs)("div",{className:em.default.uploadContainer,children:[(0,n.jsx)(ea.U,{value:w,onChange:S}),(0,n.jsx)("div",{className:em.default.uploadTips,children:"每张小于 10M,支持JPG、PNG格式,最多上传4张"})]})]})]})]})},eE=e=>{var t,l,i,r,o;let{reasonList:u,reasonMap:s,onChange:d}=e,[c,v]=(0,a.useState)(),[m,p]=(0,a.useState)(),[f,h]=(0,a.useState)(),[g,_]=(0,a.useState)(),[x,y]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=c&&(null==g?void 0:g.length);d({reasonCode:m||c,reportLabels:f,chatList:g,validate:e})},[c,m,f,g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"举报原因",required:!0}),(0,n.jsx)(el,{column:3,optionList:u,value:c,onChange:e=>{v(e),p(void 0),h(void 0)}}),(null===(l=s.get(c))||void 0===l?void 0:null===(t=l.children)||void 0===t?void 0:t.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型"}),(0,n.jsx)(el,{column:3,optionList:null===(i=s.get(c))||void 0===i?void 0:i.children,value:m,onChange:p})]}),(null===(o=s.get(c))||void 0===o?void 0:null===(r=o.report_labels)||void 0===r?void 0:r.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型"}),(0,n.jsx)(el,{column:3,optionList:s.get(c).report_labels,value:f,onChange:h})]}),(0,n.jsx)(Q._,{text:"聊天证据",required:!0}),(0,n.jsx)(eo,{value:(null==g?void 0:g.length)?`已添加${g.length}条聊天证据`:"添加聊天证据",onClick:()=>y(!0)}),(0,n.jsx)(ev,{visible:x,defaultValue:g,onCancel:()=>y(!1),onOk:e=>{_(e),y(!1)}})]})},eP=e=>{var t,l,i,r,o;let{videoId:u,reasonList:s,reasonMap:d,onChange:c}=e,[v,m]=(0,a.useState)(),[p,f]=(0,a.useState)(),[h,g]=(0,a.useState)();return(0,a.useEffect)(()=>{let e=v&&60466!==v;c({reasonCode:p||v,reportLabels:h,validate:e})},[v,p,h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"举报原因",required:!0}),(0,n.jsx)(el,{column:3,optionList:s,value:v,onChange:e=>{m(e),f(void 0),g(void 0)}}),60466===v?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:em.default.infringement,children:["侵权问题需要详细举证,可扫描下方抖音码前往",(0,n.jsx)("br",{}),"「抖音APP」进行侵权举报"]}),(0,n.jsx)(es,{className:em.default.douyinCode,objectId:u})]}):(0,n.jsxs)(n.Fragment,{children:[(null===(l=d.get(v))||void 0===l?void 0:null===(t=l.children)||void 0===t?void 0:t.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型"}),(0,n.jsx)(el,{column:3,optionList:null===(i=d.get(v))||void 0===i?void 0:i.children,value:p,onChange:f})]}),(null===(o=d.get(v))||void 0===o?void 0:null===(r=o.report_labels)||void 0===r?void 0:r.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q._,{text:"请选择具体的类型"}),(0,n.jsx)(el,{column:3,optionList:d.get(v).report_labels,value:h,onChange:g})]})]})]})};var eL=e=>{let{reportScene:t,reasonData:l,dataSource:a,onValuesChange:i}=e,{video_id:r}=a,{reasonList:o=[],reasonMap:u=new Map}=l;return(0,n.jsxs)("div",{children:[[eh.VIDEO,eh.IMAGE,eh.USER].includes(t)&&(0,n.jsx)(eS,{reportScene:t,reasonList:o,reasonMap:u,onChange:i}),[eh.IM,eh.IM_GROUP].includes(t)&&(0,n.jsx)(eE,{reasonList:o,reasonMap:u,onChange:i}),[eh.COMMENT].includes(t)&&(0,n.jsx)(eP,{videoId:r,reasonList:o,reasonMap:u,onChange:i})]})},eI=l("395677"),eA=l("414061"),eT=l("837095"),eM=new k.h({enter_report_edit_page:{eventName:"enter_report_edit_page",params:{object_type:"",object_id:"",enter_from:""}},report_submit:{eventName:"report_submit",params:{object_type:"",object_id:"",enter_from:"",follow_status:"",reason_type:"",report_labels:""}},report_comment:{eventName:"report_comment",params:{comment_panel_position:"",comment_category:"",object_type:"",object_id:"",comment_id:"",enter_from:"",follow_status:"",reason_type:"",report_labels:""}}}),eR=l("395823"),eF=l("121998"),eO=e=>{var t,l,o;let{pipelineId:u,dataSource:s,logParams:d,onReport:c,toast:v}=e,{object_id:p,owner_id:f,owner_sec_id:h,user_id:g,comment_with_emoji:_,enter_from:x,con_short_id:y,type:C}=s,[b,k]=(0,a.useState)(!0),[N,S]=a.useState(H.default.zoomIn),[E,P]=(0,a.useState)(),[L,I]=(0,a.useState)(),A=function(e,t,l){var n,a;if(!l)return;let i=(null==e?void 0:null===(a=e.reasonMap)||void 0===a?void 0:null===(n=a.get(t))||void 0===n?void 0:n.report_labels)||[],r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;for(let a of e){let e=t||(null==a?void 0:a.piracy);if((null==a?void 0:a.value)===l)return{label:a.label,parentLabel:n,piracy:e,needInfringementExtra:a.needInfringementExtra,infringementTypeOptions:a.infringementTypeOptions};let i=r((null==a?void 0:a.children)||[],e,null==a?void 0:a.label);if(i)return i}};return r(i)}(null==E?void 0:E.reasonData,null==L?void 0:L.reasonCode,null==L?void 0:L.reportLabels),T=L&&(ey(L.reasonCode)||(null==E?void 0:null===(o=E.reasonData)||void 0===o?void 0:null===(l=o.reasonMap)||void 0===l?void 0:null===(t=l.get(L.reasonCode))||void 0===t?void 0:t.piracy)||(null==A?void 0:A.piracy)&&!(null==A?void 0:A.needInfringementExtra)),M=a.useCallback(()=>{S(H.default.zoomOut),setTimeout(()=>{var t;k(!1),i.unmountComponentAtNode(e.portalRef),e.portalRef.remove(),null===(t=e.onClose)||void 0===t||t.call(e)},300)},[e.onClose]);(0,a.useEffect)(()=>{let e=eA.listen(eA.EVENT.hideModal,M);return()=>{e()}},[M]),(0,a.useEffect)(()=>()=>{r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!1)},[]),(0,eI.O)({onChange:e=>{let{isFullscreen:t}=e;t&&M()}});let R=(e,t)=>v?null==v?void 0:v(e,t):w.F.info(e,t),F=async()=>{var e,t,l;let n,a,i,r;let o=await (0,eR.b)(h),{reasonCode:u,reportLabels:s,reportDesc:v,originalLink:m,imgList:_,chatList:b,infringementOwner:k,infringementType:N}=L,{reportScene:w,reasonData:S}=E;if(T){let e="";if("video"===C){if(p){let t=window.location.href;e=eF.stringifyUrl({url:t,query:{modal_id:p}})}}else"user"===C&&h&&(e=`https://www.douyin.com/user/${h}`);let t=eF.stringifyUrl({url:"https://www.douyin.com/qinquan/report?enter_from=pc_douyin",query:{item_info:e}});window.open(t,"_blank"),M();return}s&&(n=(null==A?void 0:A.needInfringementExtra)?null==A?void 0:A.parentLabel:null==A?void 0:A.label),(null==_?void 0:_.length)&&(a=null==_?void 0:_.map(e=>e.Uri).join(","),r=_.map(e=>({_type:"normal_image_info",uri:e.Uri,tpl:"_tos_raw"}))),(null==b?void 0:b.length)&&(i=b.join(","));let P=60576===u,I=P?(0,j._)({original_item_external_url:m,source:x},r?{customized_image_uri_list:r}:{}):(0,j._)({follow_status:null==o?void 0:o.follow_status,con_short_id:y,im_message_list:i,source:x},r?{customized_image_uri_list:r}:{}),F=124===u&&(null==A?void 0:A.label)==="侵犯他人权益",O=null==A?void 0:null===(e=A.infringementTypeOptions)||void 0===e?void 0:e.find(e=>e.value===N),U=(0,Z._)((0,j._)((0,Z._)((0,j._)({app_id:6383,object_id:p,owner_id:f,user_id:g,reported_id:g},P?{enter_from:x}:{}),{report_type:w,reason:u,reason_text:null==S?void 0:null===(l=S.reasonMap)||void 0===l?void 0:null===(t=l.get(u))||void 0===t?void 0:t.label,report_labels:n,report_desc:v,uri:a,image_uri_list:a}),F?{infringed_subject:k,infringed_reason:N,infringed_reason_str:null==O?void 0:O.label}:{}),{msg_list:[eh.IM,eh.IM_GROUP].includes(w)?i:void 0,report_data:JSON.stringify(I)});(0,ef.v_)("/aweme/v1/report/submit/",{},U).then(e=>{switch(!0){case 2159===e.status_code:R("你已举报过该内容,请稍后再试");break;case 0===e.status_code:eM.sendLog("report_submit",(0,j._)({object_type:E.reportScene,object_id:p,enter_from:x,follow_status:null==o?void 0:o.follow_status,reason_type:u,report_labels:n},d)),(null==E?void 0:E.reportScene)===102&&eM.sendLog("report_comment",(0,j._)({object_type:E.reportScene,object_id:p,enter_from:x,follow_status:null==o?void 0:o.follow_status,reason_type:u,report_labels:n},d)),R("提交成功,我们将尽快受理");break;default:R("提交失败,请稍后再试")}M(),null==c||c(0===e.status_code)}).catch(()=>R("服务器打瞌睡了,请稍后再试"))};return((0,a.useEffect)(()=>{(function(e,t){let l=e?ex[e]:void 0;return l?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2?arguments[2]:void 0;return(0,ef.U2)("/aweme/v1/report/reason/",{aid:eg,report_type:e,scene:t,object_id:l},{},"").then(t=>{if((null==t?void 0:t.status_code)&&0!==t.status_code)return Promise.reject(t);let l=function e(t){return Array.isArray(t)?t.map(t=>{var l,n,a,i,r,o,u;let s=eb(t),d=function(e){var t,l,n,a,i,r;let o=Number(null!==(r=null!==(i=null!==(a=null!==(n=null!==(l=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:null==e?void 0:e.reason_type)&&void 0!==l?l:null==e?void 0:e.reason_code)&&void 0!==n?n:null==e?void 0:e.code)&&void 0!==a?a:null==e?void 0:e.serial_id)&&void 0!==i?i:null==e?void 0:e.category)&&void 0!==r?r:null==e?void 0:e.reason);return Number.isNaN(o)?void 0:o}(t);if(!s||void 0===d)return null;let c=e(null!==(r=null!==(i=null!==(a=null==t?void 0:t.children)&&void 0!==a?a:null==t?void 0:null===(n=t.next_reasons)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.list)&&void 0!==i?i:null==t?void 0:t.reason_list)&&void 0!==r?r:null==t?void 0:t.sub_reasons);let v=Array.isArray(u=null==t?void 0:t.report_labels)?u.map(e=>{var t,l,n,a;if("string"==typeof e)return{label:e,value:e};let i=eb(e),r=null!==(n=null!==(l=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:null==e?void 0:e.code)&&void 0!==l?l:null==e?void 0:e.name)&&void 0!==n?n:null==e?void 0:e.label;return i&&void 0!==r?{label:i,value:r,textAreaDesc:null!==(a=null==e?void 0:e.text_area_desc)&&void 0!==a?a:null==e?void 0:e.textAreaDesc}:null}).filter(e=>!!e):[],m=function(e,t){let l=new Map(t.map(e=>[e.value,e]));return[...e.map(e=>{let t=l.get(e.value);return t?(l.delete(e.value),(0,Z._)((0,j._)({},e),{piracy:e.piracy||t.piracy,children:e.children||t.children,needInfringementExtra:e.needInfringementExtra||t.needInfringementExtra,infringementTypeOptions:e.infringementTypeOptions||t.infringementTypeOptions,report_labels:e.report_labels||t.report_labels})):e}),...l.values()]}(v,124===d?eC:[]);return{label:s,value:d,textAreaDesc:null!==(o=null==t?void 0:t.text_area_desc)&&void 0!==o?o:null==t?void 0:t.textAreaDesc,piracy:null==t?void 0:t.piracy,children:c.length?c:void 0,report_labels:m.length?m:void 0}}).filter(e=>!!e):[]}(function(e){var t,l;let n=null!==(t=null==e?void 0:e.data)&&void 0!==t?t:e;return null!==(l=[ek(null==e?void 0:e.records),null==e?void 0:e.reason_list,null==e?void 0:e.reasons,null==e?void 0:e.report_reasons,null==e?void 0:e.category_list,ek(null==n?void 0:n.records),null==n?void 0:n.reason_list,null==n?void 0:n.reasons,null==n?void 0:n.report_reasons,null==n?void 0:n.category_list,Array.isArray(n)?n:void 0].find(e=>Array.isArray(e)))&&void 0!==l?l:[]}(t));return{reportScene:e,reasonData:{reasonList:l,reasonMap:ej(l)}}})}(l,1,t):function(e){return fetch(`https://lf-mortise.douyinstatic.com/obj/mortise-online/online/${e}_3364`).then(e=>e.json()).then(e=>{var t;let{reportScene:l,reasonCode:n}=e.pluginData;let a=Array.isArray(t=n)?t[0].list.map(e=>{let{reason_code:t,next_reasons:l,report_labels:n}=e.data;return{label:e.text,value:t,children:Array.isArray(l)?l[0].list.map(e=>({label:e.text,value:e.data.reason_code})):void 0,report_labels:Array.isArray(n)?n.map(e=>({label:e.name,value:e.code})):void 0}}):[];return{reportScene:l,reasonData:{reasonList:a,reasonMap:ej(a)}}})}(e)})(u,p).then(e=>{(0,eT.Z)(g),eM.sendLog("enter_report_edit_page",(0,j._)({object_type:e.reportScene,object_id:p,enter_from:x},d)),1===_&&e.reasonData.reasonList.push({label:"表情包侵权",value:60466}),P(e)}).catch(()=>R("服务器打瞌睡了,请稍后再试",null==e?void 0:e.toastParent))},[]),E&&s)?(0,n.jsx)(z,{title:e.title,visible:b,className:m()(N,T?H.default.jumpText:""),footerClassName:T?H.default.jumpTextFooter:"",onCancel:M,footer:(0,n.jsx)(J,{className:H.default.submit,onClick:F,disabled:!(null==L?void 0:L.validate),children:"提交"}),children:(0,n.jsx)(eL,{dataSource:s,reportScene:E.reportScene,reasonData:E.reasonData,onValuesChange:I})}):null};l("313036"),l("414931");var eU=l("732992"),eD=l("636435"),eZ=l("77758");let eH=e=>{let{value:t="",onChange:l,placeholder:a}=e;return(0,n.jsx)("input",{className:eZ.default.container,placeholder:a,value:t,onChange:e=>l(e.target.value)})};var eK=l("387098");function eB(e){let{className:t,text:l,textClassName:a}=e;return(0,n.jsxs)("div",{className:m()(eK.default.container,t,"HideInLynxClassName"),children:[(0,n.jsx)("div",{className:eK.default.loading}),l&&(0,n.jsx)("div",{className:m()(eK.default.text,a),children:l})]})}var eV=l("325508"),eq=l("115855"),eY=l("55016");let eG=(0,a.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,Z._)((0,j._)({width:4,height:17,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M0 0a8 8 0 0 0 2.168 5.476l1.174 1.25a2 2 0 0 1 0 2.738l-1.174 1.25A8 8 0 0 0 0 16.19V0z",fill:"#323442"})})));var eW=l("385987"),ez=l("708372"),e$={left:"top",right:"top",top:"left",bottom:"left"};let eJ=e=>{let{type:t="left",text:l,offsetArrow:r,offsetContainer:o,className:u,children:s,onTipClick:d,renderContent:c,clickHidden:v=!1,target:f,offsetWidth:h=0}=e,[g,_]=(0,a.useState)({width:0,height:0}),[x,y]=(0,a.useState)(t),[C,b]=(0,a.useState)(!1),[k,N]=(0,a.useState)({}),w=(0,a.useRef)(null),S=(0,a.useRef)(),E=(0,a.useRef)(null),P=(0,a.useMemo)(()=>(0,eW.h)(f),[f]),L=(0,a.useMemo)(()=>(0,ez.d)(P,"HTMLBodyElement"),[P]),I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=window.innerWidth,i=window.innerHeight;return{left:e<0?e:0,top:t<0?t:0,right:e+l>a?a-e-l:0,bottom:t+n>i?i-t-n:0}},A=function(){clearTimeout(E.current),E.current=setTimeout(()=>{b(!1)},200)},T=(0,a.useCallback)(()=>{if(!w.current)return{};let e=S.current.getBoundingClientRect(),{width:l,height:n}=e,a=L?e.x:0,i=L?e.y:0,r=(g.width-l)/2,u=(g.height-n)/2;if(["left","right"].includes(t)){switch(t){case"left":a-=g.width+10;break;case"right":a+=l+10}"number"==typeof o?i+=o:i+=-u}else if(["top","bottom"].includes(t)){switch(t){case"top":i-=g.height+10;break;case"bottom":i+=n+10}"number"==typeof o?a+=o:a+=-r}if(L){let{top:e,left:r,right:o,bottom:u}=I(a,i,g.width,g.height);y(t),["left","right"].includes(t)?(e&&(i-=e),u&&(i+=u),r&&!o&&(a+=g.width+20+l,y("right")),o&&!r&&(a-=g.width+20+l,y("left"))):["top","bottom"].includes(t)&&(r&&(a-=r+h),o&&(a+=o-h),e&&!u&&(i+=g.height+20+n,y("bottom")),u&&!e&&(i-=g.height+20+n,y("top")))}return(0,Z._)((0,j._)({},k),{left:`${a}px`,top:`${i}px`})},[k,g,o,t,L]),M=(0,a.useCallback)(()=>{let e=a.Children.only(s);return a.cloneElement(e,{onMouseEnter:t=>{var l,n;clearTimeout(E.current),b(!0),S.current=t.target,N(T()),null==e||null===(n=e.props)||void 0===n||null===(l=n.onMouseEnter)||void 0===l||l.call(n,t)},onMouseLeave:()=>{A()}})},[T,s]);(0,a.useEffect)(()=>{let e=e=>{if(!!C)N(T())};return document.addEventListener("scroll",e,!0),()=>{document.removeEventListener("scroll",e,!0)}},[T,C]),(0,a.useLayoutEffect)(()=>{if(!!w.current)_(w.current.getBoundingClientRect())},[C]),(0,a.useLayoutEffect)(()=>{S.current&&N(T())},[g]);let R=(0,a.useMemo)(()=>(0,n.jsxs)("div",{ref:w,style:(0,j._)({position:L?"fixed":"absolute"},k),onMouseEnter:e=>{clearTimeout(E.current)},onMouseLeave:()=>{A()},className:m()(eY.default.tooltip,eY.default[t],u),onClick:e=>{null==d||d(e),v&&b(!1)},children:[(0,n.jsx)(p.n,{width:4,height:17,src:eG,style:{[e$[x]]:`${r}%`},className:m()(eY.default.icon,eY.default[x]),viewBox:"0 0 4 17"}),(0,n.jsx)("span",{className:"",children:c||l})]}),[x,u,v,r,d,c,l,k,t,L]);return(0,n.jsxs)(n.Fragment,{children:[C&&i.createPortal(R,P),M()]})};function eQ(e){return(0,n.jsxs)("svg",{className:e.className,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M6.31015 4.19993C6.30457 3.81502 6.61505 3.5 7 3.5C7.38495 3.5 7.69543 3.81502 7.68984 4.19993L7.63803 7.77116C7.63297 8.11992 7.3488 8.4 7 8.4C6.6512 8.4 6.36703 8.11992 6.36197 7.77116L6.31015 4.19993Z"}),(0,n.jsx)("path",{d:"M7 10.64C7.42526 10.64 7.77 10.2953 7.77 9.87C7.77 9.44474 7.42526 9.1 7 9.1C6.57474 9.1 6.23 9.44474 6.23 9.87C6.23 10.2953 6.57474 10.64 7 10.64Z"}),(0,n.jsx)("path",{d:"M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 12.95C3.71391 12.95 1.05 10.2861 1.05 7C1.05 3.71391 3.71391 1.05 7 1.05C10.2861 1.05 12.95 3.71391 12.95 7C12.95 10.2861 10.2861 12.95 7 12.95Z"})]})}function eX(e){let{text:t,tooltip:l}=e,i=(0,a.useRef)();return(0,n.jsxs)("div",{className:eq.default.categoryTextContainer,children:[(0,n.jsx)("div",{className:eq.default.categoryText,children:t}),l&&(0,n.jsx)(eJ,{text:l,type:"right",target:i.current,children:(0,n.jsx)("div",{className:eq.default.iconContainer,ref:i,children:(0,n.jsx)(eQ,{className:eq.default.alertCircle})})})]})}function e0(e){let{dataList:t=[],value:l,onChange:a}=e;return(0,n.jsx)("div",{className:eq.default.dataItemList,children:t.map(e=>(0,n.jsx)(ee,{className:eq.default.dataItem,style:e.label.length>=7?{width:"calc(100% - 40px)"}:void 0,label:e.label,checked:(null==l?void 0:l.value)===e.value,value:e.value,onCheck:()=>a(e)},e.value))})}function e1(e){let{dataList:t=[],value:l,onChange:a}=e;return(0,n.jsx)("div",{className:eq.default.container,children:t.map(e=>{let{name:t,tooltip:i,children:r=[]}=e;return(0,n.jsxs)("div",{className:eq.default.categoryItemList,children:[t&&(0,n.jsx)(eX,{text:t,tooltip:i}),(0,n.jsx)(e0,{dataList:r,value:l,onChange:a})]},t)})})}function e2(){return(0,n.jsxs)("svg",{className:eU.default.svg,viewBox:"0 0 10 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M6.12852 1.14357C5.95738 0.680906 5.51668 0.351562 5 0.351562C4.48332 0.351562 4.04262 0.680906 3.87148 1.14357C2.4282 1.62362 1.38595 2.9984 1.38595 4.62081V5.837C1.38595 6.52216 1.19579 7.19354 0.837147 7.77455L0.11565 8.94342C-0.19778 9.45119 0.162759 10.1098 0.754132 10.1098H9.24587C9.83724 10.1098 10.1978 9.45119 9.88435 8.94342L9.16285 7.77455C8.80421 7.19354 8.61405 6.52216 8.61405 5.837V4.62081C8.61405 2.9984 7.5718 1.62361 6.12852 1.14357Z"}),(0,n.jsx)("path",{d:"M5 12.3969C4.07376 12.3969 3.27772 11.8324 2.92917 11.0247H7.07083C6.72228 11.8324 5.92624 12.3969 5 12.3969Z"})]})}let e9=e=>{var t,l,i,r;let{dataSource:o,onChange:u}=e,[s,d]=(0,a.useState)(),[c,v]=(0,a.useState)(),[m,p]=(0,a.useState)(),[f,h]=(0,a.useState)(),[g,_]=(0,a.useState)(),[x,y]=(0,a.useState)(),C=(0,a.useRef)(),j=(0,a.useRef)(),b=(0,a.useMemo)(()=>{let e={};return o.forEach(t=>{let{label:l,tips:n}=t;e[l]?e[l].children=e[l].children.concat(t):e[l]={name:l,tooltip:n,children:[t]}}),Object.values(e).map(e=>{let{name:t,tooltip:l,children:n}=e;return{name:t,tooltip:l,children:n.map(e=>{let{text:t,reason_type_id:l,sub_reason_list:n=[],toast:a}=e;return{label:t,value:l,children:n.map(e=>({label:e.text,value:e.reason_type_id})),extra:a}})}})},[o]);return(0,a.useEffect)(()=>{switch(!0){case(null==s?void 0:s.value)===void 0:case(null==s?void 0:s.value)===18&&!(null==x?void 0:x.length):case(null==s?void 0:s.value)===18&&!m:case(null==x?void 0:x.includes(1))&&!f:u({verified:!1});break;default:u({reasonData:s,subReasonData:c,desc:m,info:f,images:g,codes:x,verified:!0})}},[s,c,m,f,g,x,u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:eU.default.titleBar,children:[(0,n.jsx)(e2,{}),(0,n.jsx)("div",{className:eU.default.title,children:"您的举报我们将尽快受理,核实后我们将第一时间告知受理结果,请尽量提交完整的举报描述及材料。"})]}),(0,n.jsx)(Q._,{text:"举报原因",required:!0}),(0,n.jsx)(e1,{dataList:b,onChange:e=>{if(e.value!==(null==s?void 0:s.value))setTimeout(()=>{var t,l,n,a;(null==e?void 0:e.value)===18?null===(l=j.current)||void 0===l||null===(t=l.scrollIntoView)||void 0===t||t.call(l,{behavior:"smooth",block:"nearest"}):null===(a=C.current)||void 0===a||null===(n=a.scrollIntoView)||void 0===n||n.call(a,{behavior:"smooth",block:"nearest"})},0),v(void 0),y(void 0),d(e)},value:s}),(null==s?void 0:s.value)!==18&&(null==s?void 0:null===(t=s.children)||void 0===t?void 0:t.length)>0&&(0,n.jsxs)("div",{ref:C,children:[(0,n.jsx)(Q._,{text:"请选择具体的举报类型(选填)"}),(0,n.jsx)(e0,{dataList:null==s?void 0:s.children,onChange:v,value:c})]}),(null==s?void 0:s.value)===18&&(null==s?void 0:null===(l=s.children)||void 0===l?void 0:l.length)>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:eU.default.divider}),(0,n.jsxs)("div",{className:eU.default.description,ref:j,children:["权利人请通过广告投诉平台",(0,n.jsxs)("a",{className:eU.default.link,href:"https://phoniex.toutiao.com/phoniex/index",target:"_blank",rel:"noreferrer",children:[" ","https://phoniex.toutiao.com/phoniex/index"," "]}),"进行投诉,同时上传具体材料(权利人身份证明、侵权内容及权利证明等)"]}),(0,n.jsx)(Q._,{text:"举报类型(多选)",required:(null==s?void 0:s.value)===18}),(0,n.jsx)(eD.C,{optionList:null==s?void 0:s.children,value:x,onChange:y}),(0,n.jsx)(Q._,{text:(null==x?void 0:null===(i=x.includes)||void 0===i?void 0:i.call(x,1))?"原作者信息":"原作者信息(选填)",required:null==x?void 0:null===(r=x.includes)||void 0===r?void 0:r.call(x,1)}),(0,n.jsx)(eH,{placeholder:"原创作者抖音名称、作品链接或其他信息",value:f,onChange:h})]}),(0,n.jsx)(Q._,{text:(null==s?void 0:s.value)===18?"举报描述":"举报描述(选填)",required:(null==s?void 0:s.value)===18}),(0,n.jsx)(en.K,{maxLength:200,placeholder:"请详细描述举报原因,便于平台判断违规情况",minHeight:75,value:m,onChange:p}),(0,n.jsxs)("div",{className:eU.default.uploadContainer,children:[(0,n.jsx)(ea.U,{value:g,onChange:_}),(0,n.jsx)("div",{className:eU.default.uploadTips,children:"每张小于 10M,支持JPG、PNG格式,最多上传4张"})]})]})};var e3=e=>{let{title:t,onClose:l,portalRef:o,toastParent:u,extraInfo:s,onReportSuccess:d}=e,[c,v]=(0,a.useState)(!0),[m,p]=a.useState(eU.default.zoomIn),[f,h]=(0,a.useState)(),[g,_]=(0,a.useState)(),x=a.useCallback(()=>{p(eU.default.zoomOut),setTimeout(()=>{v(!1),i.unmountComponentAtNode(o),o.remove(),null==l||l()},300)},[l]);(0,a.useEffect)(()=>()=>{r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!1)},[]),(0,a.useEffect)(()=>{let e=eA.listen(eA.EVENT.hideModal,x);return()=>{null==e||e()}},[x]);let y=(0,a.useCallback)(e=>{w.F.info(e,u)},[u]),C=async()=>{let{user_id:e,log_extra:t,creative_id:l}=s,{reasonData:n,subReasonData:a,desc:i,info:r,images:o=[],codes:u=[]}=g,c={creative_id:l,log_extra:t,data:{user_id:e,report_type_id:n.value,report_type_name:n.label,report_pictures:o.map(e=>e.Uri).toString(),report_description:i,sub_reason_id:18===n.value?void 0:null==a?void 0:a.value,sub_reason_name:18===n.value?void 0:null==a?void 0:a.label,report_author_info:18===n.value?r:void 0,report_right_type:18===n.value?u.toString():void 0}};(0,eV.GA)(c).then(e=>{0===e.code?(y("操作成功,将严格审查广告内容"),null==d||d(),x()):y("服务器打瞌睡了,请稍后再试")}).catch(()=>y("服务器打瞌睡了,请稍后再试"))};return(0,eI.O)({onChange:e=>{let{isFullscreen:t}=e;t&&x()}}),(0,a.useEffect)(()=>{(0,eV.iL)().then(e=>{(0,eT.Z)(null==s?void 0:s.user_id),h(e.data)}).catch(()=>y("服务器打瞌睡了,请稍后再试"))},[]),(0,n.jsx)(z,{title:t,visible:c,className:m,onCancel:x,footer:(0,n.jsx)(J,{className:eU.default.submit,onClick:C,disabled:!(null==g?void 0:g.verified),children:"提交"}),children:f?(0,n.jsx)(e9,{dataSource:f,onChange:_}):(0,n.jsx)(eB,{text:"加载中"})})};let e7=(e,t)=>{if(r.Le.getConfig(r.gI.IsAlreadyExsitReportModal))return;let{loginDispatch:l,userInfo:n,abtestData:a}=e;if((null==n?void 0:n.uid)||e.user_id||(null==e?void 0:e.isLive)||(null==e?void 0:e.isOrigin))(null==n?void 0:n.uid)&&(e.user_id=null==n?void 0:n.uid),e4(e,t);else{var i;(null===(i=window)||void 0===i?void 0:i.showAccount)&&window.showAccount({enterMethod:"report",success:n=>{l({type:"updateUserInfo"}),e.user_id=null==n?void 0:n.user_id,e4(e,t)}})}},e4=(e,t)=>{var l,a;if("object"!=typeof e)return;let o=()=>{r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!1),"function"==typeof e.onClose&&e.onClose()},u=(null==e?void 0:e.type)==="live",s=document.createElement("div"),d=document.getElementById("root"),c=(()=>{var e;if(t)return t;if(!u)return document.fullscreenElement||d;let l=document.getElementById("slideMode")||document.getElementsByClassName("xgplayer-fullscreen-parent")[0]||document.getElementsByClassName("isCssFullScreen")[0]||document.fullscreenElement,n=document.querySelector(".modal-video-container");return l?l:(null===(e=r.Le.getConfig(r.gI.IsPageFullScreen))||void 0===e?void 0:e.type)?d:n?n:d})();if(!!c)if(c.appendChild(s),e.isOrigin)r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!0),null==e||null===(l=e.onShow)||void 0===l||l.call(e),i.render((0,n.jsx)(D,{toastParent:c,portalRef:s,title:e.title,type:e.type,object_id:e.object_id,logParams:e.logParams,onClose:o,onLiveReport:e.onLiveReport||(()=>void 0),toast:null==e?void 0:e.toast}),s);else{let{title:t,logParams:l,pipeline_id:u,object_id:d,owner_id:v,user_id:m,comment_with_emoji:p=0,enter_from:f,con_short_id:h,video_id:g,onReport:_,toast:x,owner_sec_id:y,type:C}=e;r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!0),null==e||null===(a=e.onShow)||void 0===a||a.call(e),i.render((0,n.jsx)(eO,{toastParent:c,portalRef:s,title:t,onClose:o,logParams:l,pipelineId:u,dataSource:{object_id:d,owner_id:v,user_id:m,comment_with_emoji:p,enter_from:f,con_short_id:h,video_id:g,owner_sec_id:y,type:C},onReport:_,toast:x}),s)}},e6=(e,t)=>{if(r.Le.getConfig(r.gI.IsAlreadyExsitReportModal))return;let{loginDispatch:l,user_id:n,abtestData:a}=e;if(n)e5(e,t);else{var i;(null===(i=window)||void 0===i?void 0:i.showAccount)&&window.showAccount({enterMethod:"report",success:n=>{var a;l({type:"updateUserInfo"}),null==e||null===(a=e.onLoginSuccess)||void 0===a||a.call(e),e.user_id=null==n?void 0:n.user_id,e5(e,t)}})}},e5=(e,t)=>{let{creative_id:l,log_extra:a,user_id:o,title:u,onClose:s,onShow:d,onReportSuccess:c}=e,v=document.createElement("div"),m=document.getElementById("root");if(t)m=t,null==t||t.appendChild(v);else{var p;let e=document.getElementById("slideMode")||document.getElementsByClassName("xgplayer-fullscreen-parent")[0]||document.getElementsByClassName("isCssFullScreen")[0],t=document.querySelector(".modal-video-container");if((null===(p=r.Le.getConfig(r.gI.IsPageFullScreen))||void 0===p?void 0:p.type)||e)e&&(m=e),m.appendChild(v);else if(t)m=t,t.appendChild(v);else{let e=document.getElementById("root");null==e||e.appendChild(v)}}r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!0),null==d||d(),i.render((0,n.jsx)(e3,{toastParent:m,portalRef:v,title:u,onClose:()=>{r.Le.setConfig(r.gI.IsAlreadyExsitReportModal,!1),"function"==typeof s&&s()},extraInfo:{creative_id:l,log_extra:a,user_id:o},onReportSuccess:c}),v)}},636435:function(e,t,l){l.d(t,{C:function(){return s}}),l("490629");var n=l("320165");l("101199");var a=l("461523"),i=l("765593"),r=l("469935"),o=l.n(r);let u=e=>{let{label:t,className:l,onSelect:a,value:r,style:u,selected:s}=e;return(0,n.jsxs)("div",{className:o()(i.default.container,l),style:u,children:[(0,n.jsx)("div",{className:s?i.default.selected:i.default.icon,onClick:()=>a(r)}),t&&(0,n.jsx)("span",{className:i.default.label,children:t})]})},s=e=>{let{optionList:t,value:l=[],onChange:i}=e,r=new Set(l),o=e=>{r.has(e)?r.delete(e):r.add(e),i([...r.values()])};return Array.isArray(t)?(0,n.jsx)("div",{className:a.default.container,children:t.map(e=>(0,n.jsx)(u,{className:a.default.radio,style:e.label.length>=7?{width:"calc(100% - 40px)"}:void 0,label:e.label,value:e.value,selected:r.has(e.value),onSelect:o},e.value))}):null}},237727:function(e,t,l){l.d(t,{U:function(){return f}});var n=l(629686),a=l(402748);l(490629),l(706056),l(656562),l(992871);var i=l(320165),r=l(101199),o=l(277837),u=l(565850),s=l(167993),d=l(837095),c=l(974976);let v="image/png,image/jpeg,image/jpg";function m(e){let{currentLength:t,maxLength:l,onUpload:n}=e,a=(0,r.useRef)(),d=(0,r.useCallback)(()=>{var e;(null===(e=a.current)||void 0===e?void 0:e.value)&&(a.current.value="")},[]);return t===l?null:(0,i.jsxs)("div",{className:s.default.wrap,children:[(0,i.jsx)("input",{className:s.default.input,type:"file",accept:v,multiple:!0,onChange:e=>n(e,d),ref:a}),(0,i.jsx)("div",{className:s.default.buttonContainer,children:(0,i.jsxs)("div",{className:s.default.buttonContent,children:[(0,i.jsx)(o.n,{width:24,height:24,src:u.Z}),(0,i.jsx)("div",{className:s.default.counter,children:`${t}/${l}`})]})})]})}function p(e){let{dataList:t=[],onChange:l}=e,n=e=>{let n=[...t];n.splice(e,1),"function"==typeof l&&l(n)};return(0,i.jsx)(i.Fragment,{children:t.map((e,t)=>(0,i.jsxs)("div",{className:s.default.cover,children:[(0,i.jsx)("div",{className:s.default.close,onClick:()=>n(t)}),(0,i.jsx)("img",{className:s.default.image,src:e.Url})]},e.Uri))})}function f(e){let t=(0,d.Z)(),{maxLength:l=4,value:r=[],onChange:o}=e;return(0,i.jsxs)("div",{className:s.default.container,children:[(0,i.jsx)(p,{dataList:r,onChange:o}),(0,i.jsx)(m,{onUpload:(e,i)=>{let{files:u}=e.target;if(u.length>l){c.F.info(`当前上传图片数量大于 ${l}`);return}for(let e=0;e10485760){c.F.info("当前上传图片尺寸大于10M");return}if(!v.includes(u[e].type)){c.F.info("当前上传图片是不支持的类型");return}}if(!t){c.F.info("图片上传服务不可用,请稍后再试");return}t.uploadFile(u).then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o([...r,...e.map((e,t)=>(0,a._)((0,n._)({},e),{Url:window.URL.createObjectURL(u[t])}))]),"function"==typeof i&&i()}).catch(()=>c.F.info("图片上传失败,请重试"))},currentLength:r.length,maxLength:l})]})}},356426:function(e,t,l){l.d(t,{_:function(){return o}});var n=l(320165);l(101199);var a=l(656837),i=l(469935),r=l.n(i);let o=e=>{let{text:t,required:l=!1,className:i}=e;return(0,n.jsxs)("div",{className:r()(a.default.container,i),children:[(0,n.jsx)("div",{className:a.default.text,children:t}),l&&(0,n.jsx)("div",{className:a.default.icon,children:"*"})]})}},277837:function(e,t,l){l.d(t,{n:function(){return s}});var n=l(629686),a=l(320165),i=l(101199),r=l(867910),o=l(469935),u=l.n(o);let s=i.memo(e=>{let{src:t,width:l=18,height:i=18,color:o,viewBox:s,className:d="",onClick:c=()=>void 0,style:v={}}=e,m=o?(0,n._)({fill:o},v):(0,n._)({},v);return(0,a.jsx)(t,(0,n._)({className:u()(o?"":r.default.svg,d),width:l,height:i,viewBox:s||"0 0 36 36",onClick:c},m))})},39711:function(e,t,l){l.d(t,{K:function(){return u}});var n=l(320165),a=l(101199),i=l(469935),r=l.n(i),o=l(818439);let u=e=>{let{value:t="",onChange:l,placeholder:i,maxLength:u,width:s,className:d,minHeight:c}=e,v=a.useRef(null),m=a.useCallback(e=>{let t=e.target.value;t.length<=u&&l(t)},[l]);return(0,n.jsxs)("div",{style:{width:s},className:r()(o.default.textareaContainer,d),children:[(0,n.jsx)("textarea",{value:t,ref:v,style:{minHeight:c},onChange:m,onKeyDown:e=>e.stopPropagation(),placeholder:i,className:o.default.textarea}),void 0!==u&&(0,n.jsxs)("div",{className:r()(o.default.count,{[o.default.overflow]:t.length>u}),children:[t.length,"/",u]})]})}},974976:function(e,t,l){l.d(t,{F:function(){return x}});var n,a=l(480333),i=l(629686),r=l(402748);l(374954),l(490629);var o=l(320165),u=l(469935),s=l.n(u),d=l(101199),c=l(890710),v=l(880327),m=l(497329);let p=null,f=null,h=null,g=null,_={text:"",duration:3e3};class x extends(n=d.Component){static create(e){if(p)return e&&e(p);h=document.body,!document.querySelector("#toastContainer")&&((g=document.createElement("div")).className=m.default.toastWrapper,g.id="toastContainer"),h.appendChild(g),c.render((0,o.jsx)(x,{ref:t=>{p=t,e&&e(p)}}),g)}static info(e,t){let l=(0,i._)({},_);"string"==typeof e?(l.text=e,l.root=t):"object"==typeof e&&null!==e&&(l=(0,i._)((0,r._)((0,i._)({},_),{root:t}),e));let n=document.fullscreenElement||document.getElementsByClassName("xgplayer-fullscreen-parent")[0];(0,v.r)()&&n&&(l.root=n),this.textList.push(l),this.create(e=>{!f&&e&&e.handleShowToast()})}handleShowToast(){f&&(clearTimeout(f),f=null);let e=x.textList.shift();this.setState({showToast:!0,options:e}),f=setTimeout(()=>{x.textList.length?this.handleCloseToast(()=>{setTimeout(this.handleShowToast.bind(this),50)}):(this.handleCloseToast(),this.destroy()),f=null},e.duration)}handleCloseToast(e){this.setState({showToast:!1},()=>e&&e())}destroy(){h.removeChild(g),p=null}render(){let{showToast:e,options:t}=this.state,l=e&&t&&(0,o.jsx)("div",{className:s()(m.default.toast,t.className,{[m.default.parentToastWrapper]:t.root||(0,v.r)()}),children:t.text});return(0,o.jsx)(d.Fragment,{children:t&&t.root?c.createPortal(l,t.root):l})}constructor(...e){super(...e),(0,a._)(this,"state",{showToast:!1})}}(0,a._)(x,"textList",[])},837095:function(e,t,l){let n;var a=l(480333);l(679308);var i=l(911429),r=l(330620),o=l.n(r);class u{initUploader(e,t){let{token:l,service_id:n,origin:a,template:i}=e,r=JSON.parse(l);this.bytedUploader=new(o())({userId:t,appId:1128,stsToken:r,imageConfig:{serviceId:n}}),this.uploaderOptions={stsToken:r,serviceId:n,origin:a,template:i}}uploadFile(e){let t=this.bytedUploader.addImageFile({file:Array.from(e).map(e=>new Blob([e])),stsToken:this.uploaderOptions.stsToken});return this.bytedUploader.start(t),new Promise((e,t)=>{this.bytedUploader.on("complete",t=>{e(t.uploadResult)}),this.bytedUploader.on("error",e=>{t(e.extra)})})}constructor(e){(0,a._)(this,"bytedUploader",null),(0,a._)(this,"uploaderOptions",null),(0,i.U2)("/aweme/v1/report/upload/auth/",{}).then(t=>{let{token:l,service_id:n,origin:a,template:i,status_code:r}=t;if(0===r)this.initUploader({token:l,service_id:n,origin:a,template:i},e.userId)})}}t.Z=function(e){return!n&&(n=new u({userId:e})),n}},499117:function(e,t,l){l.r(t),l.d(t,{ChatWhilePlayEntry:function(){return x}}),l("490629");var n=l("320165"),a=l("101199"),i=l("469935"),r=l.n(i),o=l("966473"),u=l("72430"),s=l("499059"),d=l("601034"),c=l("414061"),v=l("273372"),m=l("649310"),p=l("365169"),f=l("717248"),h=l("575559"),g=l("542046");let _=()=>{let{im:e=0}=s.Le.getConfig(s.gI.UnReadCount)||{};return e||0},x=e=>{let{awemeInfo:t,className:l}=e,[i,s]=(0,a.useState)(1),[x,y]=(0,a.useState)(!1),[C,j]=(0,a.useState)(_),{isFullScreen:b,isCssFullScreen:k,isClientMiniWin:N}=(0,a.useContext)(m.C),{isWebMiniWin:w,isListenVideoMiniWin:S}=(0,p.Iq)(e=>{let{isWebMiniWin:t,isListenVideoMiniWin:l}=e;return{isWebMiniWin:t,isListenVideoMiniWin:l}}),E=N||w||S,P=(0,o.x)(()=>{var e;(0,g.G)("chat_while_play_show",{enter_from:(0,d.yW)(),group_id:null!==(e=null==t?void 0:t.awemeId)&&void 0!==e?e:""})}),L=(b||k)&&!E;if((0,a.useEffect)(()=>{let e=P.current;if(!!L&&!!e)return h.J.addVideoEntryAnchor(e),()=>{h.J.removeVideoEntryAnchor(e)}},[L,P]),(0,a.useEffect)(()=>{let e=()=>j(_());e();let t=c.listen(c.EVENT.updateUnReadCount,e);return()=>null==t?void 0:t()},[]),(0,a.useEffect)(()=>{var e;let t=null===(e=P.current)||void 0===e?void 0:e.parentElement;if(!t)return;let{MaxHeight:l,MiniIocn:n}=u.nl,a=()=>{let e=t.offsetHeight;if(!e)return;let a=1;e>l?a=e/850:e<=n+72&&(a=.72),s(a);let i=t.getBoundingClientRect().top,r=e=>{let t=null==e?void 0:e.getBoundingClientRect();return(null==t?void 0:t.height)?t.top-i:1/0},o=Math.min(r(t.querySelector('.positionBox [data-e2e="video-avatar"]')),r(t.querySelector(".positionBox .ai-douyin-entry")));y(o<44+40*a+8)};a();let i=v.Z.bind(t,a),r=t.querySelector(".positionBox"),o=r?v.Z.bind(r,a):null;return()=>{null==i||i(),null==o||o()}},[P,b,k,E]),!b&&!k||E)return null;let I=C>0?` (${C>99?"99+":C})`:"";return(0,n.jsxs)("div",{ref:P,className:r()(f.default.chatWhilePlayEntry,l,{[f.default.collideShifted]:x}),style:{transform:`scale(${i})`,transformOrigin:"right top"},onClick:()=>{var e;if((0,g.G)("chat_while_play_click",{enter_from:(0,d.yW)(),group_id:null!==(e=null==t?void 0:t.awemeId)&&void 0!==e?e:""}),h.J.isWindowOpen){h.J.closeWindow();return}h.J.openWindow({enterMethod:"full_screen_video",popupMode:c.ImPopupMode.VideoEntry})},children:[(0,n.jsx)("img",{className:f.default.chatIcon,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAY1JREFUeAHtloFxgzAMRcVdB2AERmAEj8AGZYPSCcgGZQPSCZJOkBEYgW5AN1Dlwz6EC24SG5Pc+d3pOLAtfyRLABCJRCKRhyaxDSJiSpc3MgHb8ZkkyRHugQSeMAxiTUNiEZfTpVO3Z7If8I8gy8i+KIrF0oQXy2Iu6JscvINnKAg9uEAOLiwNNXhE+mO+S7gHWSTyLZmjCjxAfjKyQflswQXljIt8vXKdfLlSZUEYYy3zl4Ert4hUwmoVIWmFMZ4zPw34whA5qCrn4wLnZ7Zfig7zsTjuKjLH6ewMSlRF1uGcI45N3lxfsjklbIEhcolqZR3PgFt7uUKkWBAmNxeWNR9sbg5bY6Srs50nFT2NW1u5QWDKUn34Z26L07nNIBQ4Ve3FModH+gAhwbGCNenKnD5IYaxsnqKletHH99YVnHrg2XjO28oJ9oI2b3QBGM9bFr0M9gLnPVGoZ+Hbig2c2k2j7ntdGLtGT4Pjt1cLqncvDBMSUuBfwrcVG6xYHie1Jqo4tv8RiEQiT8QveawuGqN2pYwAAAAASUVORK5CYII=",alt:""}),(0,n.jsxs)("span",{className:f.default.chatLabel,children:["消息",I]})]})}},670018:function(e,t,l){l.d(t,{p7:function(){return a}});var n=l(502615),a={PictureInPictureSettingPlugin:"PictureInPictureSettingPlugin",PlayClaritySettingPlugin:"PlayClaritySettingPlugin",EnterDetail:"EnterDetail",PageFullScreenPlugin:"PageFullScreenPlugin",ImmersiveSwitchSettingPlugin:"ImmersiveSwitchSettingPlugin",WatchLaterPlugin:"WatchLaterPlugin",ChapterPlugin:"ChapterPlugin",SearchAutoPlaySettingPlugin:"SearchAutoPlaySettingPlugin",InnerAutoPlayPlugin:"InnerAutoPlayPlugin",AutoPlaySettingPlugin:"AutoPlaySettingPlugin",PlayBackSettingPlugin:"PlayBackSettingPlugin",SoundGuideTooltipPlugin:"SoundGuideTooltipPlugin",SettingListPlugin:"SettingListPlugin",DanmakuPlugin:"DanmakuPlugin",PreviewExtText:"PreviewExtText",Fullscreen:"fullscreen",Volume:"volume",Keyboard:"keyboard",BitrateSelector:"BitrateSelector",PIP:"PIP",PictureProgressPlugin:"PictureProgressPlugin",PipPlugin:"Pip"};n.PZ.CONTROL_LEFT},579002:function(e,t,l){l.d(t,{y:function(){return v}}),l(490629),l(374954),l(706056);var n=l(101199),a=l(250532),i=l(414061),r=l(745285),o=l(889429),u=l(540129),s=l(670018),d=l(250146),c=l(87897);let v=e=>{let{player:t,isLogin:l,isNoPlayer:v,isActive:m}=e,p=(0,c._)(),f=(null==p?void 0:p.useShortcutKeyEdit)||0,h=(null==p?void 0:p.rmShortcutKeyList)||[],[g,_]=(0,n.useState)(!1),x=(0,n.useCallback)(e=>{_(e);let t="shortcutList";e?(0,a.o)({pausePlayControlShortcut:!0,pauseCustomShortcut:!0,pauseGlobalShortcut:!0},t):(0,a.m)(t)},[]),y=(0,n.useCallback)(e=>{var t,l,n,a,i,r,o,d,c,v,m,p,f,h,g,_,x,y,C,j,b,k,N,w;let S=`小窗模式${u.SHORTCUT_KEY.pip.badgeText?`${u.SHORTCUT_KEY.pip.badgeText}`:""}`,E=`进入全屏${u.SHORTCUT_KEY.fullscreen.badgeText?`${u.SHORTCUT_KEY.fullscreen.badgeText}`:""}`,P=`退出全屏${u.SHORTCUT_KEY.fullscreen.badgeText?`${u.SHORTCUT_KEY.fullscreen.badgeText}`:""}`,L=null==e?void 0:null===(a=e.getPlugin)||void 0===a?void 0:null===(n=a.call(e,s.p7.PIP))||void 0===n?void 0:null===(l=n.root)||void 0===l?void 0:null===(t=l.querySelector)||void 0===t?void 0:t.call(l,".xg-tips");(null==e?void 0:null===(o=e.getPlugin)||void 0===o?void 0:null===(r=o.call(e,s.p7.PIP))||void 0===r?void 0:null===(i=r.i18n)||void 0===i?void 0:i.PIP)&&(e.getPlugin(s.p7.PIP).i18n.PIP=S),(null==e?void 0:null===(d=e.i18n)||void 0===d?void 0:d.PIP)&&(e.i18n.PIP=S),L&&(L.innerHTML=S);let I=null==e?void 0:null===(p=e.getPlugin)||void 0===p?void 0:null===(m=p.call(e,s.p7.Fullscreen))||void 0===m?void 0:null===(v=m.root)||void 0===v?void 0:null===(c=v.querySelector)||void 0===c?void 0:c.call(v,'[lang-key="FULLSCREEN_TIPS"]'),A=null==e?void 0:null===(_=e.getPlugin)||void 0===_?void 0:null===(g=_.call(e,s.p7.Fullscreen))||void 0===g?void 0:null===(h=g.root)||void 0===h?void 0:null===(f=h.querySelector)||void 0===f?void 0:f.call(h,'[lang-key="EXITFULLSCREEN_TIPS"]');(null==e?void 0:null===(C=e.getPlugin)||void 0===C?void 0:null===(y=C.call(e,s.p7.Fullscreen))||void 0===y?void 0:null===(x=y.i18n)||void 0===x?void 0:x.FULLSCREEN_TIPS)&&(e.getPlugin(s.p7.Fullscreen).i18n.FULLSCREEN_TIPS=E),(null==e?void 0:null===(j=e.i18n)||void 0===j?void 0:j.FULLSCREEN_TIPS)&&(e.i18n.FULLSCREEN_TIPS=E),(null==e?void 0:null===(N=e.getPlugin)||void 0===N?void 0:null===(k=N.call(e,s.p7.Fullscreen))||void 0===k?void 0:null===(b=k.i18n)||void 0===b?void 0:b.EXITFULLSCREEN_TIPS)&&(e.getPlugin(s.p7.Fullscreen).i18n.EXITFULLSCREEN_TIPS=P),(null==e?void 0:null===(w=e.i18n)||void 0===w?void 0:w.EXITFULLSCREEN_TIPS)&&(e.i18n.EXITFULLSCREEN_TIPS=P),I&&(I.innerHTML=E),A&&(A.innerHTML=P)},[]);(0,n.useEffect)(()=>{if(!!f&&!!l)y(t)},[l,t,f]),(0,n.useEffect)(()=>{if(!f||!l)return()=>{};let e=i.listen(i.EVENT.shortcutListModalVisibleChange,e=>{_(e),!e&&(y(t),[s.p7.AutoPlaySettingPlugin,s.p7.ImmersiveSwitchSettingPlugin,s.p7.PictureInPictureSettingPlugin,s.p7.WatchLaterPlugin,s.p7.PageFullScreenPlugin,s.p7.DanmakuPlugin,s.p7.Fullscreen,s.p7.InnerAutoPlayPlugin,s.p7.PIP,s.p7.PipPlugin].forEach(e=>{var l,n,a;null==t||null===(a=t.getPlugin)||void 0===a||null===(n=a.call(t,e))||void 0===n||null===(l=n.renderRoot)||void 0===l||l.call(n)}))});return()=>{e()}},[l,t,f]);let C=(0,n.useCallback)(async()=>{let e=[...h||[]];!((0,r.ZV)()&&!(0,o.NN)())&&e.push("pip"),x(!0),await (0,d.Ci)({rmShortcutKeyList:e}),y(t),[s.p7.AutoPlaySettingPlugin,s.p7.ImmersiveSwitchSettingPlugin,s.p7.PictureInPictureSettingPlugin,s.p7.WatchLaterPlugin,s.p7.PageFullScreenPlugin,s.p7.DanmakuPlugin,s.p7.Fullscreen,s.p7.InnerAutoPlayPlugin,s.p7.PIP,s.p7.PipPlugin].forEach(e=>{var l,n,a;null==t||null===(a=t.getPlugin)||void 0===a||null===(n=a.call(t,e))||void 0===n||null===(l=n.renderRoot)||void 0===l||l.call(n)}),x(!1)},[t,h]),j=(0,n.useCallback)(e=>{[s.p7.PIP,s.p7.PipPlugin,s.p7.Fullscreen].includes(null==e?void 0:e.pluginName)&&y(t)},[t]);return(0,n.useEffect)(()=>{let e=[...h||[]];!((0,r.ZV)()&&!(0,o.NN)())&&e.push("pip"),(null==e?void 0:e.length)&&(x(!0),e.forEach(e=>{u.SHORTCUT_KEY[e]&&(u.SHORTCUT_KEY[e].code=null,u.SHORTCUT_KEY[e].badgeText="")}),x(!1))},[h]),(0,n.useEffect)(()=>{l&&f&&(v||t)&&C()},[v,t,l,f,h]),(0,n.useEffect)(()=>l&&f&&t&&m?(null==t||t.on("icon_mouseenter",j),()=>{null==t||t.off("icon_mouseenter",j)}):()=>{},[m,t,l,f,h,j]),{isShortcutListShow:g}}},904711:function(e,t,l){l.d(t,{R:function(){return U},d:function(){return D}});var n=l(629686);l(490629),l(679308);var a=l(320165),i=l(101199),r=l(469935),o=l.n(r),u=l(908219),s=l.n(u),d=l(48795),c=l(689222),v=l(612582),m=l(966473),p=l(935372),f=l(123622),h=l(386206),g=l(759894),_=l(601034),x=l(414061),y=l(499059),C=l(250532),j=l(880327),b=l(642613),k=l(330224),N=l(341623),w=l(176992),S=l(414644),E=l(983218),P=l(746517),L=l(396868),I=l(464844),A=l(475392),T=l(956662),M=l(212627),R=l(87339),F=l(316213);let O=e=>{let{danmaku:t,useDanmakuItem:l}=e,{allEmojiListMapped:n}=(0,I.b)(),{like:r,isDanmuAuthor:u,isAwemeAuthor:s,deleteHandler:d,reportHandler:c,likeHandler:v}=l(t),{danmakuId:m,text:p}=t,[f,g]=(0,i.useState)(null);return(0,i.useEffect)(()=>{n&&g((0,T.vI)({danmakuId:m,text:p,emojiListMapped:n}))},[n,p,m]),(0,a.jsxs)("li",{className:w.default.danmakuLi,children:[(0,a.jsx)("div",{className:w.default.timeLi,children:(0,h.$y)(t.offsetTime)}),(0,a.jsx)("div",{className:w.default.textLi,children:f}),(0,a.jsxs)("div",{className:w.default.interaction,children:[(0,a.jsx)("div",{className:o()(w.default.icon,w.default.likeIcon,{[w.default.isLike]:r}),onClick:v,children:(0,a.jsx)("svg",{className:w.default.iconLike,width:"14",height:"13",viewBox:"0 0 14 13",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M9.88448 0.398438C8.76117 0.398438 7.74021 0.852731 7.11838 1.71269C6.26503 0.852731 5.24305 0.398438 4.12177 0.398438C1.98145 0.398438 0.203125 2.19879 0.203125 4.34121C0.203125 4.48708 0.210222 4.5534 0.203125 4.56025C0.214278 5.05421 0.454581 5.94437 0.647185 6.31825C1.94356 9.04193 6.0401 11.9265 6.23271 12.1134C6.42531 12.3004 6.61792 12.4873 7.00313 12.4873C7.38833 12.4873 7.58094 12.3004 7.77354 12.1134C7.96615 11.9265 11.5463 9.30121 13.1116 6.75067C13.1796 6.57644 13.2242 6.49033 13.3421 6.31259C13.4168 6.12907 13.4919 5.96279 13.5726 5.8745C13.7149 5.3828 13.795 5.01066 13.8031 4.56025C13.797 4.54746 13.8031 4.48609 13.8031 4.34121C13.8031 2.19978 12.0238 0.398438 9.88448 0.398438Z",fillOpacity:"0.8"})})}),!u&&(0,a.jsx)("div",{className:o()(w.default.icon,w.default.report),onClick:c,children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.13316 1.23494L13.8226 11.7956C14.3266 12.7751 13.6965 14 12.6888 14H1.3112C0.303482 14 -0.326644 12.7751 0.177387 11.7956L5.86554 1.23494C6.36957 0.25502 7.62913 0.25502 8.13316 1.23494ZM7.00041 12.3C6.30991 12.3 5.75 11.7407 5.75 11.05C5.75 10.3593 6.30991 9.8 7.00041 9.8C7.69009 9.8 8.25 10.3593 8.25 11.05C8.25 11.7407 7.69009 12.3 7.00041 12.3ZM7 4.2C6.44772 4.2 6 4.64772 6 5.2V7.7C6 8.25228 6.44772 8.7 7 8.7C7.55228 8.7 8 8.25228 8 7.7V5.2C8 4.64772 7.55228 4.2 7 4.2Z",fillOpacity:"0.8"})})}),(s||u)&&(0,a.jsx)("div",{className:o()(w.default.icon,w.default.deleteIcon),onClick:d,children:(0,a.jsx)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.39844 0.199219H3.59844L3.19844 0.999219H1.39844C0.846153 0.999219 0.398438 1.44693 0.398438 1.99922V3.39922H11.5984V1.99922C11.5984 1.44693 11.1507 0.999219 10.5984 0.999219H8.79844L8.39844 0.199219ZM1.19844 4.99922H10.7984L10.4418 12.8446C10.4176 13.3787 9.97749 13.7992 9.44286 13.7992H2.55402C2.01939 13.7992 1.57932 13.3787 1.55505 12.8446L1.19844 4.99922Z"})})})]})]})},U=e=>{let{player:t,loginDispatch:l,isLogin:r,awemeInfo:u,userUid:d,className:c,userInfo:m,targetMountEl:h,onClick:y,abtestData:C,totalCountRef:j}=e,[b,N]=(0,i.useState)(!1),[S,E]=(0,i.useState)([]),{logParams:I}=(0,A.Y)();return(0,a.jsxs)("div",{className:o()(w.default.container,c),children:[(0,a.jsxs)("div",{className:o()(w.default.danmukuList),onClick:()=>{!h&&(document.body.style.overflow="hidden"),v.YY.replaceCurrentTask({id:"danmuList"}),M.Z.sendLog("clickDanmakuList",(0,n._)({enter_from:(0,g.mo)(),enter_from_merge:(0,_.yW)(),group_id:null==u?void 0:u.awemeId,player_display_mode:(0,g.Ok)()},I)),N(!0),setTimeout(()=>{x.emit(x.EVENT.videoStopPlayNext)},100),null==y||y()},children:[(0,a.jsx)("div",{children:"弹幕列表"}),(0,a.jsx)(F.z,{svg:(0,a.jsx)(k.Z,{style:{fontSize:"12px"}})})]}),b&&(0,a.jsx)(D,{awemeId:null==u?void 0:u.awemeId,setIsShowModal:N,useDanmakuItem:e=>{let{awemeId:a}=u,o=null==u?void 0:u.authorInfo.uid,c=(null==e?void 0:e.userId)===d,v=d===(null==u?void 0:u.authorInfo.uid),{danmakuId:h,diggType:y}=e,[C,b]=(0,i.useState)(!!y),k=(0,i.useRef)(!!y),[N,w]=(0,i.useState)(r);(0,i.useEffect)(()=>{k.current=C},[C]),(0,i.useEffect)(()=>{let e=()=>{w(!0)};return t&&t.on(R.Ks.updateLogin,e),()=>{t.off(R.Ks.updateLogin,e)}},[t,a]);let S=(0,i.useCallback)(s()(async()=>{if(N){b(e=>!e),E(e=>{let t=e.findIndex(e=>e.danmakuId===h);return e[t].diggType=e[t].diggType?0:1,[...e]});let{statusCode:e}=await (0,f.ob)({danmakuId:h,awemeId:a,type:k.current?0:1});0===e&&M.Z.sendLog(k.current?"cancelLikeDanmaku":"likeDanmaku",(0,n._)({enter_from:(0,g.mo)(),enter_from_merge:(0,_.yW)(),group_id:a,author_id:o,danmaku_id:h,enter_method:"list"},I))}else(0,P.default)({success:async()=>{l({type:"updateUserInfo"}),t.emit(R.Ks.updateLogin);let{statusCode:e}=await (0,f.ob)({danmakuId:h,awemeId:a,type:1});0===e&&(b(e=>!e),E(e=>{let t=e.findIndex(e=>e.danmakuId===h);return e[t].diggType=e[t].diggType?0:1,[...e]}))},headerText:"登录后可为弹幕点赞",enterMethod:"like_danmaku"})},500),[h,N,a,I]),A=(0,i.useCallback)(()=>{var t,n,a;(0,p.m)({title:"举报弹幕",type:"danmaku",object_id:h,owner_id:null==m?void 0:null===(t=m.info)||void 0===t?void 0:t.uid,owner_sec_id:(null==m?void 0:null===(n=m.info)||void 0===n?void 0:n.secUid)||"",onClose:()=>{x.emit(x.EVENT.videoRemoveStopPlayNext)},logParams:{enter_method:"list"},loginDispatch:l,userInfo:null==m?void 0:m.info,pipeline_id:"",enter_from:(0,_.yW)(),isOrigin:!0}),M.Z.sendLog("reportDanmaku",{enter_from:(0,_.yW)(),group_id:null==u?void 0:u.awemeId,author_id:null==u?void 0:null===(a=u.authorInfo)||void 0===a?void 0:a.uid,danmaku_id:h,danmaku_user_id:null==e?void 0:e.userId,enter_method:"list",is_exposed_like:0})},[h,m,t]),T=(0,i.useCallback)(async()=>{if(null==t?void 0:t.danmaku){var e,l;L.F.info({text:"已删除弹幕",elTarget:(null===(e=document)||void 0===e?void 0:e.fullscreenElement)?null===(l=document)||void 0===l?void 0:l.fullscreenElement:document.body}),E(e=>{let t=e.findIndex(e=>e.danmakuId===h);return e.splice(t,1),[...e]})}let{statusCode:i}=await (0,f.YO)({userType:c?1:2,danmakuId:h});0===i&&(j.current=j.current-1,M.Z.sendLog("deleteDanmaku",(0,n._)({enter_from:(0,g.mo)(),enter_from_merge:(0,_.yW)(),group_id:a,author_id:o,danmaku_id:h,enter_method:"list"},I)))},[h,a,t,o,c,I]);return{like:C,isAwemeAuthor:v,isDanmuAuthor:c,likeHandler:S,reportHandler:A,deleteHandler:T}},targetMountEl:h,danmakuList:S,setDanmakuList:E})]})},D=e=>{let{awemeId:t,targetMountEl:l,setIsShowModal:r,useDanmakuItem:u,danmakuList:s,setDanmakuList:p}=e,[h,k]=(0,i.useState)(!1),[P,L]=(0,i.useState)(!0),I=(0,i.useRef)(!0),T=(0,i.useRef)(0),{logParams:R}=(0,A.Y)(),U=(0,i.useCallback)(async()=>{if(h||!I.current)return;k(!0);let e=3,l=async()=>{e--;let n=await (0,f.JV)({awemeId:t,offset:T.current,count:50}),a=new Promise(e=>{p(t=>{var l;if((null==n?void 0:null===(l=n.danmakuList)||void 0===l?void 0:l.length)>0){let l=[...t,...n.danmakuList];return e(l.length),l}return e(t.length),t})});if(null==n?void 0:n.hasMore)return 0!==e&&(T.current+=50,!!(await a>=50)||await l());return!1};L(await l()),k(!1)},[t,h,P]);(0,i.useEffect)(()=>{I.current=P},[P]);let D=(0,i.useCallback)(async()=>{p([]),await L(!0),T.current=0,await U()},[U]),Z=(0,i.useCallback)(e=>{let{target:t}=e;t.scrollHeight,t.scrollTop,t.clientHeight,t.scrollHeight-t.scrollTopx.listen(x.EVENT.hideModal,()=>r(!1)),[]),(0,i.useEffect)(()=>(D(),y.Le.setConfig(y.gI.IsShowDanmakuListModal,!0),(0,C.o)({pauseCustomShortcut:!0,pauseGlobalShortcut:!0,pausePlayControlShortcut:!0},"DanmakuList"),()=>{y.Le.setConfig(y.gI.IsShowDanmakuListModal,!1),(0,C.m)("DanmakuList")}),[]);let H=(0,m.x)((()=>{M.Z.sendLog("danmakuListShow",(0,n._)({enter_from:(0,g.mo)(),enter_from_merge:(0,_.yW)(),group_id:t},R))}).bind(null));return(0,a.jsxs)(d.Modal,{ref:e=>{e&&(e.onwheel=e=>e.preventDefault())},modalContentClass:o()(w.default.modal,{[w.default.mountEl]:!!l}),bodyStyle:{height:"100%"},afterClose:()=>{document.body.style.overflow="",x.emit(x.EVENT.videoRemoveStopPlayNext),r(!1),v.YY.finishTask("danmuList")},getPopupContainer:(0,j.r)()?()=>(0,b.W)()||l:void 0,visible:!0,hasCancel:!1,footer:null,closeOnEsc:!1,centered:!0,closable:!1,zIndex:9999,children:[(0,a.jsxs)("div",{className:w.default.header,ref:H,children:[(0,a.jsx)("div",{children:"弹幕列表"}),(0,a.jsx)(F.z,{svg:(0,a.jsx)(N.Z,{style:{fontSize:"37px",marginRight:"-11px",opacity:"0.8"}}),onClick:()=>{document.body.style.overflow="",x.emit(x.EVENT.videoRemoveStopPlayNext),r(!1),v.YY.finishTask("danmuList")}})]}),(0,a.jsx)(c.i,{className:w.default.divider}),(0,a.jsxs)("div",{className:w.default.content,children:[(0,a.jsxs)("div",{className:w.default.danmakuHeader,children:[(0,a.jsx)("div",{className:w.default.time,children:"时间"}),(0,a.jsx)("div",{className:w.default.text,children:"弹幕内容"})]}),(null==s?void 0:s.length)>0&&(0,a.jsxs)("ul",{ref:e=>{e&&(e.onwheel=e=>e.stopPropagation())},className:w.default.danmakuList,onScroll:Z,onWheel:e=>e.stopPropagation(),children:[s.map(e=>(0,a.jsx)(O,{danmaku:e,useDanmakuItem:u},e.danmakuId)),h&&(0,a.jsx)(E.gb,{className:o()(w.default.defaultLoading),text:"加载中"}),!P&&(0,a.jsx)("li",{className:w.default.noMore,children:"暂时没有更多了"})]}),(null==s?void 0:s.length)<=0&&h&&(0,a.jsx)(E.gb,{className:o()(w.default.centerLoading),text:"加载中"}),(null==s?void 0:s.length)<=0&&!h&&(0,a.jsx)(S.gi,{className:w.default.error,title:"",desc:"暂时没有更多了"})]})]})}},87339:function(e,t,l){l.d(t,{AY:function(){return g},IK:function(){return a},JO:function(){return d},Ks:function(){return v},Kt:function(){return u},NY:function(){return p},Rz:function(){return s},SW:function(){return n},Te:function(){return f},WK:function(){return m},eG:function(){return _},lE:function(){return h},sZ:function(){return c},th:function(){return o},tj:function(){return i},uR:function(){return r}});let n=32,a="scroll",i=0,r=.5,o=12e3,u=20,s=40,d=1,c=5e3,v={updateLogin:"updateLogin",bulletHover:"bullet_hover",ratechange:"ratechange",clearCache:"clearCache",reportIdChange:"reportIdChange",danmakuInit:"danmakuInit",danmakuInputFocus:"danmakuInputFocus"},m=[{desc:"一行",value:.1,key:1,log:.1},{desc:"两行",value:.2,key:5,log:.2},{desc:"25%",value:.25,key:2,log:.4},{desc:"50%",value:.5,key:3,log:.5},{desc:"80%",value:.8,key:4,log:.8}],p=[{desc:"超小",value:16,key:5,log:-1},{desc:"小号",value:20,key:1,log:0},{desc:"适中",value:24,key:2,log:1},{desc:"大号",value:28,key:3,log:2},{desc:"超大",value:32,key:4,log:3}],f=[{desc:"超小",value:16,key:5,log:-1},{desc:"小号",value:16,key:1,log:0},{desc:"适中",value:20,key:2,log:1},{desc:"大号",value:24,key:3,log:2},{desc:"超大",value:28,key:4,log:3}],h=[{desc:"超小",value:20,key:5,log:-1},{desc:"小号",value:24,key:1,log:0},{desc:"适中",value:28,key:2,log:1},{desc:"大号",value:32,key:3,log:2},{desc:"超大",value:32,key:4,log:3}],g=[{desc:"较慢",value:18e3,key:1,log:0},{desc:"适中",value:14400,key:2,log:1},{desc:"较快",value:10800,key:3,log:2}],_={CLOSE:0,OPEN:1,SIMPLE_MODE:2}},475392:function(e,t,l){l.d(t,{G:function(){return a},Y:function(){return i}});var n=l(101199);let a=(0,n.createContext)({logParams:{}}),i=()=>(0,n.useContext)(a)},464844:function(e,t,l){l.d(t,{b:function(){return u}}),l(490629);var n=l(101199),a=l(208112);let i=(0,a.kv)(),r=e=>Object.values(e).filter(e=>(null==e?void 0:e.hide)!==1),o=r(i),u=()=>{let[e,t]=(0,n.useState)(o),[l,i]=(0,n.useState)(o);(0,n.useEffect)(()=>{let e=!1;return(async()=>{let l;let{statusCode:n,data:u=[]}=await (0,a.zk)();0===n?(l=r(u),!e&&(t(l),i(Object.values(u)))):l=o})(),()=>{e=!0}},[]);let u=(0,n.useMemo)(()=>{let t=new Map;return null==e||e.forEach(e=>{t.set(e.name,e.img)}),t},[e]),s=(0,n.useMemo)(()=>{let e=new Map;return null==l||l.forEach(t=>{e.set(t.name,t.img)}),e},[l]);return{emojiList:e,emojiListMapped:u,allEmojiList:l,allEmojiListMapped:s}}},212627:function(e,t,l){var n=l(624508);t.Z=new n.h({hover_danmaku_switch:{eventName:"hover_danmaku_switch",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_danmaku_setting:{eventName:"hover_danmaku_setting",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_emoji_tab:{eventName:"hover_emoji_tab",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_danmaku_input:{eventName:"hover_danmaku_input",params:{enter_from:""}},danmakuPubShow:{eventName:"danmaku_pub_show",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_switch_status:0,is_post:0}},inputDanmaku:{eventName:"input_danmaku",params:{enter_from:"",enter_from_merge:""}},emojiTabShow:{eventName:"emoji_tab_show",params:{enter_from:"",enter_method:"",enter_from_merge:""}},clickEmoji:{eventName:"click_emoji",params:{enter_from:"",enter_method:"",click_method:"",enter_from_merge:""}},danmakuPubDone:{eventName:"danmaku_pub_done",params:{enter_from:"",click_method:"",group_id:"",author_id:"",danmaku_id:"",video_time:0,video_pct:0,danmaku_pub_duration:0,danmaku_input_duration:0,is_author:0,emoji_id:"",video_scale:0,item_duration_ms:0,enter_from_merge:""}},firstDanmakuShow:{eventName:"first_danmaku_show",params:{enter_from:"",group_id:"",author_id:"",danmaku_id:"",video_time:0,video_pct:0,video_scale:0,item_duration_ms:0,enter_from_merge:"",danmaku_readdata_times:-1,danmaku_attach_times:-1,danmaku_startmove_times:-1}},danmakuPlayResult:{eventName:"danmaku_play_result",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_count:0,danmaku_pub_count:0,danmaku_play_count:0,speed_value:0,area_value:0,size_value:0,opacity_value:0,speed_video:0,play_time:0,browser_height:0,browser_width:0,browser_ratio:0,rate:0,video_scale:0,item_duration_ms:0}},danmakuSwitch:{eventName:"danmaku_switch",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",action:"",click_method:"",video_scale:0,item_duration_ms:0,danmaku_switch_status:"",off_range:""}},enterDanmakuSetting:{eventName:"enter_danmaku_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",player_display_mode:""}},danmakuOpacitySetting:{eventName:"danmaku_opacity_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",opacity_value:80,pre_value:80,player_display_mode:""}},danmakuSizeSetting:{eventName:"danmaku_size_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",size_value:1,pre_value:1,browser_height:0,browser_width:0,browser_ratio:0,rate:0,player_display_mode:""}},danmakuSpeedSetting:{eventName:"danmaku_speed_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",speed_value:1,pre_value:1,player_display_mode:""}},danmakuAreaSetting:{eventName:"danmaku_area_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",area_value:.25,pre_value:.25,browser_height:0,browser_width:0,browser_ratio:0,rate:0,player_display_mode:""}},clickDanmakuDefaultSetting:{eventName:"click_danmaku_default_setting",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",pre_speed_value:1,pre_area_value:.25,pre_size_value:1,pre_opacity_value:80,player_display_mode:""}},pickDanmaku:{eventName:"pick_danmaku",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_id:""}},likeDanmaku:{eventName:"like_danmaku",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_id:"",enter_method:""}},cancelLikeDanmaku:{eventName:"cancel_like_danmaku",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_id:"",enter_method:""}},deleteDanmaku:{eventName:"delete_danmaku",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:"",danmaku_id:"",enter_method:""}},clickDanmakuList:{eventName:"click_danmaku_list",params:{enter_from:"",enter_from_merge:"",group_id:"",player_display_mode:""}},danmakuListShow:{eventName:"danmaku_list_show",params:{enter_from:"",enter_from_merge:"",group_id:""}},reportDanmaku:{eventName:"report_danmaku",params:{enter_from:"",group_id:"",author_id:"",danmaku_id:"",danmaku_user_id:"",enter_method:"",is_exposed_like:0}},danmakuImpression:{eventName:"danmaku_impression",params:{enter_from:"",enter_from_merge:"",group_id:"",danmaku_id_list:"",video_time_list:""}},danmakuSettingStatus:{eventName:"danmaku_setting_status",params:{danmaku_switch_status:"",danmaku_switch_source:"",speed_value:0,area_value:0,size_value:0,opacity_value:0,enter_from:"",enter_from_merge:""}},danmakuRequest:{eventName:"danmaku_request",params:{enter_from:"",group_id:"",start_time:0,end_time:0}},danmakuResponse:{eventName:"danmaku_response",params:{enter_from:"",group_id:"",start_time:0,end_time:0,status_code:-1,http_code:-1,danmaku_count:-1,danmaku_main_status:-1}},danmakuSendClick:{eventName:"danmaku_send_click",params:{enter_from:"",group_id:"",content:""}},danmakuInputContent:{eventName:"danmaku_input_content",params:{enter_from:"",group_id:"",content:""}},closeAllDanmakuGuideTagShow:{eventName:"close_all_danmaku_guide_tag_show",params:{enter_from:"",group_id:"",author_id:""}},closeAllDanmakuSwitch:{eventName:"close_all_danmaku_switch",params:{enter_from:"",group_id:"",author_id:""}}})},956662:function(e,t,l){l.d(t,{AS:function(){return r},UW:function(){return u},mY:function(){return o},vI:function(){return i}}),l(374954),l(591964);var n=l(320165);l(101199);var a=l(107245);let i=e=>{let{text:t,emojiListMapped:l,danmakuId:a}=e;if(!l)return t;let i=[],r=-1,o=0,u=0;for(let e=0;e0&&(u+=1,i.push((0,n.jsx)("span",{children:t.substring(o,r)},`${a}_${u}`))),u+=1,i.push((0,n.jsx)("img",{src:l.get(s)},`img_${a}_${u}`)),o=e+1)}else"["===t[e]&&(r=e);return o{let{text:t,emojiListMapped:l}=e;if(!l)return{emojiCount:0,text:t};let n={emojiCount:0,text:""},a=-1,i=0;for(let e=0;e0&&(n.text=n.text+t.substring(i,a)),n.emojiCount=n.emojiCount+1,i=e+1)}else"["===t[e]&&(a=e);return i2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=e;try{return l&&(i+=String(n)),(0,a.mt)(i,`${t} sans-serif`).widths.reduce((e,t)=>e+t,0)+t+18}catch(e){}return 0},u=e=>null==e?void 0:e.stopPropagation()},661540:function(e,t,l){var n=l(629686),a=l(402748),i=l(320165),r=l(101199);let o=(0,r.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,a._)((0,n._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{d:"M16.292 9.364a1.929 1.929 0 1 0-2.727 2.727l5.637 5.637-5.637 5.637a1.928 1.928 0 1 0 2.727 2.727l6.985-6.985.016-.015a1.929 1.929 0 0 0 0-2.728l-7-7z",fill:"#0A0C20"})})));t.Z=o}}]);