@univerjs/thread-comment-ui 0.3.0-alpha.1 → 0.3.0-nightly.202410101606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1,3 +1 @@
1
- (function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("dayjs"),require("@univerjs/thread-comment"),require("@univerjs/core"),require("@univerjs/ui"),require("rxjs"),require("@univerjs/design"),require("react"),require("clsx"),require("@univerjs/docs"),require("@univerjs/docs-ui"),require("@univerjs/engine-render")):typeof define=="function"&&define.amd?define(["exports","dayjs","@univerjs/thread-comment","@univerjs/core","@univerjs/ui","rxjs","@univerjs/design","react","clsx","@univerjs/docs","@univerjs/docs-ui","@univerjs/engine-render"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global.UniverThreadCommentUi={},global.dayjs,global.UniverThreadComment,global.UniverCore,global.UniverUi,global.rxjs,global.UniverDesign,global.React,global.clsx,global.UniverDocs,global.UniverDocsUi,global.UniverEngineRender))})(this,function(exports2,dayjs,threadComment$2,core,ui,rxjs,design,React,cs,docs,docsUi,engineRender){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);var _a,_b;function getDT(){return dayjs().format("YYYY/MM/DD HH:mm")}__name(getDT,"getDT");const THREAD_COMMENT_PANEL="thread-comment-panel",PLUGIN_NAME="UNIVER_THREAD_COMMENT_UI_PLUGIN";var __defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$1(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp$1(target,key,result),result},"__decorateClass$1"),__decorateParam$1=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$1");exports2.ThreadCommentPanelService=(_a=class extends core.Disposable{constructor(_sidebarService,_univerInstanceService){super();__publicField(this,"_panelVisible",!1);__publicField(this,"_panelVisible$",new rxjs.BehaviorSubject(!1));__publicField(this,"_activeCommentId");__publicField(this,"_activeCommentId$",new rxjs.BehaviorSubject(void 0));__publicField(this,"panelVisible$",this._panelVisible$.asObservable());__publicField(this,"activeCommentId$",this._activeCommentId$.asObservable());this._sidebarService=_sidebarService,this._univerInstanceService=_univerInstanceService,this._init(),this.disposeWithMe(()=>{this._activeCommentId$.complete(),this._panelVisible$.complete()})}_init(){this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe(opt=>{opt.visible||this.setPanelVisible(!1)})),this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(core.UniverInstanceType.UNIVER_SHEET).pipe(rxjs.filter(sheet=>!sheet)).subscribe(()=>{this._sidebarService.close()}))}get panelVisible(){return this._panelVisible}get activeCommentId(){return this._activeCommentId}setPanelVisible(visible){this._panelVisible=visible,this._panelVisible$.next(visible)}setActiveComment(commentInfo){this._activeCommentId=commentInfo,this._activeCommentId$.next(commentInfo)}},__name(_a,"ThreadCommentPanelService"),_a),exports2.ThreadCommentPanelService=__decorateClass$1([__decorateParam$1(0,core.Inject(ui.ISidebarService)),__decorateParam$1(1,core.IUniverInstanceService)],exports2.ThreadCommentPanelService);const ToggleSheetCommentPanelOperation={id:"thread-comment-ui.operation.toggle-panel",type:core.CommandType.OPERATION,handler(accessor){const sidebarService=accessor.get(ui.ISidebarService),panelService=accessor.get(exports2.ThreadCommentPanelService);return panelService.panelVisible?(sidebarService.close(),panelService.setPanelVisible(!1)):(sidebarService.open({header:{title:"threadCommentUI.panel.title"},children:{label:THREAD_COMMENT_PANEL},width:330}),panelService.setPanelVisible(!0)),!0}},SetActiveCommentOperation={id:"thread-comment-ui.operation.set-active-comment",type:core.CommandType.OPERATION,handler(accessor,params){return accessor.get(exports2.ThreadCommentPanelService).setActiveComment(params),!0}},_ThreadCommentMentionDataService=class _ThreadCommentMentionDataService{constructor(){__publicField(this,"dataSource");__publicField(this,"renderSuggestion");__publicField(this,"trigger","@")}async getMentions(search,unitId,subUnitId){return this.dataSource?this.dataSource.getMentions(search,unitId,subUnitId):[]}};__name(_ThreadCommentMentionDataService,"ThreadCommentMentionDataService");let ThreadCommentMentionDataService=_ThreadCommentMentionDataService;const IThreadCommentMentionDataService=core.createIdentifier("thread-comment.mention-data.service"),PLUGIN_CONFIG_KEY="thread-comment-ui.config",defaultPluginConfig={};var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__defNormalProp2=__name((obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,"__defNormalProp"),__decorateClass=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp2(target,key,result),result},"__decorateClass"),__decorateParam=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam"),__publicField2=__name((obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value),"__publicField");exports2.UniverThreadCommentUIPlugin=(_b=class extends core.Plugin{constructor(_config=defaultPluginConfig,_injector,_commandService,_configService){super(),this._config=_config,this._injector=_injector,this._commandService=_commandService,this._configService=_configService;const{menu,...rest}=this._config;menu&&this._configService.setConfig("menu",menu,{merge:!0}),this._configService.setConfig(PLUGIN_CONFIG_KEY,rest)}onStarting(){var _a2;core.mergeOverrideWithDependencies([[exports2.ThreadCommentPanelService],[IThreadCommentMentionDataService,{useClass:ThreadCommentMentionDataService}]],(_a2=this._config)==null?void 0:_a2.overrides).forEach(dep=>{this._injector.add(dep)}),[ToggleSheetCommentPanelOperation,SetActiveCommentOperation].forEach(command=>{this._commandService.registerCommand(command)})}},__name(_b,"UniverThreadCommentUIPlugin"),_b),__publicField2(exports2.UniverThreadCommentUIPlugin,"pluginName",PLUGIN_NAME),__publicField2(exports2.UniverThreadCommentUIPlugin,"type",core.UniverInstanceType.UNIVER_UNKNOWN),exports2.UniverThreadCommentUIPlugin=__decorateClass([core.DependentOn(threadComment$2.UniverThreadCommentPlugin),__decorateParam(1,core.Inject(core.Injector)),__decorateParam(2,core.ICommandService),__decorateParam(3,core.IConfigService)],exports2.UniverThreadCommentUIPlugin);var __assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t},__assign.apply(this,arguments)},__rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},IconBase=React.forwardRef(function(props,ref){var icon=props.icon,id=props.id,className=props.className,extend=props.extend,restProps=__rest(props,["icon","id","className","extend"]),cls="univerjs-icon univerjs-icon-".concat(id," ").concat(className||"").trim(),idSuffix=React.useRef("_".concat(generateShortUuid()));return render(icon,"".concat(id),{defIds:icon.defIds,idSuffix:idSuffix.current},__assign({ref,className:cls},restProps),extend)});function render(node,id,runtimeProps,rootProps,extend){return React.createElement(node.tag,__assign(__assign({key:id},replaceRuntimeIdsAndExtInAttrs(node,runtimeProps,extend)),rootProps),(replaceRuntimeIdsInDefs(node,runtimeProps).children||[]).map(function(child,index){return render(child,"".concat(id,"-").concat(node.tag,"-").concat(index),runtimeProps,void 0,extend)}))}__name(render,"render");function replaceRuntimeIdsAndExtInAttrs(node,runtimeProps,extend){var attrs=__assign({},node.attrs);extend!=null&&extend.colorChannel1&&attrs.fill==="colorChannel1"&&(attrs.fill=extend.colorChannel1);var defIds=runtimeProps.defIds;return!defIds||defIds.length===0||(node.tag==="use"&&attrs["xlink:href"]&&(attrs["xlink:href"]=attrs["xlink:href"]+runtimeProps.idSuffix),Object.entries(attrs).forEach(function(_a2){var key=_a2[0],value=_a2[1];typeof value=="string"&&(attrs[key]=value.replace(/url\(#(.*)\)/,"url(#$1".concat(runtimeProps.idSuffix,")")))})),attrs}__name(replaceRuntimeIdsAndExtInAttrs,"replaceRuntimeIdsAndExtInAttrs");function replaceRuntimeIdsInDefs(node,runtimeProps){var _a2,defIds=runtimeProps.defIds;return!defIds||defIds.length===0?node:node.tag==="defs"&&(!((_a2=node.children)===null||_a2===void 0)&&_a2.length)?__assign(__assign({},node),{children:node.children.map(function(child){return typeof child.attrs.id=="string"&&defIds&&defIds.indexOf(child.attrs.id)>-1?__assign(__assign({},child),{attrs:__assign(__assign({},child.attrs),{id:child.attrs.id+runtimeProps.idSuffix})}):child})}):node}__name(replaceRuntimeIdsInDefs,"replaceRuntimeIdsInDefs");function generateShortUuid(){return Math.random().toString(36).substring(2,8)}__name(generateShortUuid,"generateShortUuid"),IconBase.displayName="UniverIcon";var element$5={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z",fillRule:"evenodd",clipRule:"evenodd"}}]},DeleteSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"delete-single",ref,icon:element$5}))});DeleteSingle.displayName="DeleteSingle";var element$4={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"}}]},IncreaseSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"increase-single",ref,icon:element$4}))});IncreaseSingle.displayName="IncreaseSingle";var element$3={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 9C3.55228 9 4 8.55228 4 8 4 7.44772 3.55228 7 3 7 2.44772 7 2 7.44772 2 8 2 8.55228 2.44772 9 3 9zM8 9C8.55228 9 9 8.55228 9 8 9 7.44772 8.55228 7 8 7 7.44772 7 7 7.44772 7 8 7 8.55228 7.44772 9 8 9zM13 9C13.5523 9 14 8.55228 14 8 14 7.44772 13.5523 7 13 7 12.4477 7 12 7.44772 12 8 12 8.55228 12.4477 9 13 9z"}}]},MoreHorizontalSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"more-horizontal-single",ref,icon:element$3}))});MoreHorizontalSingle.displayName="MoreHorizontalSingle";var element$2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{stroke:"currentColor",d:"M7.48389 10.3267V12.1905C7.48389 12.7428 7.9316 13.1905 8.48389 13.1905H11.2216L12.2955 14.2644L13.3695 13.1905H14.1593C14.7116 13.1905 15.1593 12.7428 15.1593 12.1905V8.46289C15.1593 7.91061 14.7116 7.46289 14.1593 7.46289H12.2955",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.2}},{tag:"path",attrs:{stroke:"currentColor",d:"M0.840332 3.73535C0.840332 2.63078 1.73576 1.73535 2.84033 1.73535H10.2955C11.4001 1.73535 12.2955 2.63078 12.2955 3.73535V8.32676C12.2955 9.43132 11.4001 10.3268 10.2955 10.3268H5.6014L4.1695 11.7587L3.05978 10.3268H2.84033C1.73576 10.3268 0.840332 9.43133 0.840332 8.32676V3.73535Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.2}},{tag:"path",attrs:{stroke:"currentColor",d:"M6.41016 6.1311H6.76813M8.91626 6.1311H9.27424M3.90454 6.1311H4.26252",strokeLinecap:"round",strokeWidth:1.2}}]},ReplyToCommentSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"reply-to-comment-single",ref,icon:element$2}))});ReplyToCommentSingle.displayName="ReplyToCommentSingle";var element$1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6106 15.4036C12.4766 15.4036 15.6106 12.2696 15.6106 8.40356C15.6106 4.53757 12.4766 1.40356 8.6106 1.40356C4.7446 1.40356 1.6106 4.53757 1.6106 8.40356C1.6106 12.2696 4.7446 15.4036 8.6106 15.4036ZM12.3351 6.82773C12.5694 6.59342 12.5694 6.21352 12.3351 5.9792C12.1007 5.74489 11.7208 5.74489 11.4865 5.9792L7.91079 9.55494L6.33506 7.9792C6.10074 7.74489 5.72084 7.74489 5.48653 7.9792C5.25221 8.21352 5.25221 8.59342 5.48653 8.82773L7.48653 10.8277C7.72084 11.062 8.10074 11.062 8.33506 10.8277L12.3351 6.82773Z",fillRule:"evenodd",clipRule:"evenodd"}}]},ResolvedSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"resolved-single",ref,icon:element$1}))});ResolvedSingle.displayName="ResolvedSingle";var element={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"circle",attrs:{cx:8.73,cy:8.4,r:6.4,stroke:"currentColor",strokeWidth:1.2}},{tag:"path",attrs:{stroke:"currentColor",d:"M6.02637 8.40356L8.02637 10.4036L12.0264 6.40356",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.2}}]},SolveSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"solve-single",ref,icon:element}))});SolveSingle.displayName="SolveSingle";const styles$2={threadCommentEditorButtons:"univer-thread-comment-editor-buttons",threadCommentEditorSuggestion:"univer-thread-comment-editor-suggestion",threadCommentEditorSuggestionActive:"univer-thread-comment-editor-suggestionActive",threadCommentEditorSuggestionIcon:"univer-thread-comment-editor-suggestion-icon"},parseMentions=__name(text=>{const regex=/@\[(.*?)\]\((.*?)\)|(\w+)/g;let match,lastIndex=0;const result=[];for(;(match=regex.exec(text))!==null;)match.index>lastIndex&&result.push({type:"text",content:text.substring(lastIndex,match.index)}),match[1]&&match[2]?result.push({type:"mention",content:{label:match[1],id:match[2]}}):match[3]&&result.push({type:"text",content:match[3]}),lastIndex=regex.lastIndex;return lastIndex<text.length&&result.push({type:"text",content:text.substring(lastIndex)}),result},"parseMentions"),transformTextNode2Text=__name(nodes=>nodes.map(item=>{switch(item.type){case"mention":return`@[${item.content.label}](${item.content.id})`;default:return item.content}}).join(""),"transformTextNode2Text"),transformDocument2TextNodes=__name(doc=>{const{dataStream,customRanges}=doc,end=dataStream.length-2,textNodes=[];let lastIndex=0;return customRanges==null||customRanges.forEach(range=>{lastIndex<range.startIndex&&textNodes.push({type:"text",content:dataStream.slice(lastIndex,range.startIndex)}),textNodes.push({type:"mention",content:{label:dataStream.slice(range.startIndex,range.endIndex).slice(1,-1),id:range.rangeId}}),lastIndex=range.endIndex}),textNodes.push({type:"text",content:dataStream.slice(lastIndex,end)}),textNodes},"transformDocument2TextNodes"),transformTextNodes2Document=__name(nodes=>{let str="";const customRanges=[];return nodes.forEach(node=>{switch(node.type){case"text":str+=node.content;break;case"mention":{const start=str.length;str+=`${node.content.label}`;const end=str.length;customRanges.push({rangeId:node.content.id,rangeType:core.CustomRangeType.MENTION,startIndex:start,endIndex:end});break}}}),str+=`
2
- \r`,{textRuns:[],paragraphs:[{startIndex:str.length-2,paragraphStyle:{}}],sectionBreaks:[{startIndex:str.length-1}],dataStream:str,customRanges}},"transformTextNodes2Document"),transformMention=__name(mention=>({display:mention.label,id:`${mention.id}`,raw:mention}),"transformMention"),defaultRenderSuggestion=__name((mention,search,highlightedDisplay,index,focused)=>{var _a2,_b2;const icon=(_a2=mention.raw)==null?void 0:_a2.icon;return React.createElement("div",{className:styles$2.threadCommentEditorSuggestion},icon?React.createElement("img",{className:styles$2.threadCommentEditorSuggestionIcon,src:icon}):null,React.createElement("div",null,(_b2=mention.display)!=null?_b2:mention.id))},"defaultRenderSuggestion"),ThreadCommentEditor=React.forwardRef((props,ref)=>{var _a2,_b2;const{comment,onSave,id,onCancel,autoFocus,unitId,subUnitId}=props,mentionDataService=core.useDependency(IThreadCommentMentionDataService),commandService=core.useDependency(core.ICommandService),localeService=core.useDependency(core.LocaleService),[localComment,setLocalComment]=React.useState({...comment}),[editing,setEditing]=React.useState(!1),inputRef=React.useRef(null),docSelectionManagerService=core.useDependency(docs.DocSelectionManagerService),docSelectionRenderService=(_a2=core.useDependency(engineRender.IRenderManagerService).getCurrentTypeOfRenderer(core.UniverInstanceType.UNIVER_DOC))==null?void 0:_a2.with(docsUi.DocSelectionRenderService);React.useImperativeHandle(ref,()=>({reply(text){var _a3;setLocalComment({...comment,text,attachments:[]}),(_a3=inputRef.current)==null||_a3.inputElement.focus()}}));const handleSave=__name(()=>{var _a3;localComment.text&&(onSave==null||onSave({...localComment,text:localComment.text}),setEditing(!1),setLocalComment({text:void 0}),(_a3=inputRef.current)==null||_a3.inputElement.blur())},"handleSave");return React.createElement("div",{className:styles$2.threadCommentEditor,onClick:__name(e=>e.preventDefault(),"onClick")},React.createElement(design.Mentions,{ref:inputRef,autoFocus,style:{width:"100%"},placeholder:localeService.t("threadCommentUI.editor.placeholder"),value:localComment!=null&&localComment.text?transformTextNode2Text(transformDocument2TextNodes(localComment.text)):"",onChange:__name(e=>{e.target.value||setLocalComment({...comment,text:void 0}),setLocalComment==null||setLocalComment({...comment,text:transformTextNodes2Document(parseMentions(e.target.value))})},"onChange"),onFocus:__name(()=>{const activeRange=docSelectionManagerService.getActiveTextRange();activeRange&&activeRange.collapsed&&(docSelectionRenderService==null||docSelectionRenderService.removeAllRanges()),docSelectionRenderService==null||docSelectionRenderService.blur(),setEditing(!0)},"onFocus")},React.createElement(design.Mention,{key:mentionDataService.trigger,trigger:mentionDataService.trigger,data:__name((query,callback)=>mentionDataService.getMentions(query,unitId,subUnitId).then(res=>res.map(transformMention)).then(callback),"data"),displayTransform:__name((id2,label)=>`@${label} `,"displayTransform"),renderSuggestion:(_b2=mentionDataService.renderSuggestion)!=null?_b2:defaultRenderSuggestion})),editing?React.createElement("div",{className:styles$2.threadCommentEditorButtons},React.createElement(design.Button,{style:{marginRight:12},onClick:__name(()=>{onCancel==null||onCancel(),setEditing(!1),setLocalComment({text:void 0}),commandService.executeCommand(SetActiveCommentOperation.id)},"onClick")},localeService.t("threadCommentUI.editor.cancel")),React.createElement(design.Button,{type:"primary",disabled:!localComment.text,onClick:handleSave},localeService.t(id?"threadCommentUI.editor.save":"threadCommentUI.editor.reply"))):null)}),styles$1={threadComment:"univer-thread-comment",threadCommentActive:"univer-thread-comment-active",threadCommentContent:"univer-thread-comment-content",threadCommentHighlight:"univer-thread-comment-highlight",threadCommentIconContainer:"univer-thread-comment-icon-container",threadCommentIcon:"univer-thread-comment-icon",threadCommentTitle:"univer-thread-comment-title",threadCommentTitlePosition:"univer-thread-comment-title-position",threadCommentTitleHighlight:"univer-thread-comment-title-highlight",threadCommentTitlePositionText:"univer-thread-comment-title-position-text",threadCommentUsername:"univer-thread-comment-username",threadCommentItem:"univer-thread-comment-item",threadCommentItemHead:"univer-thread-comment-item-head",threadCommentItemTitle:"univer-thread-comment-item-title",threadCommentItemTitlePosition:"univer-thread-comment-item-title-position",threadCommentItemTitleHighlight:"univer-thread-comment-item-title-highlight",threadCommentItemTime:"univer-thread-comment-item-time",threadCommentItemContent:"univer-thread-comment-item-content",threadCommentItemAt:"univer-thread-comment-item-at"},MOCK_ID="__mock__",ThreadCommentItem=__name(props=>{const{item,unitId,subUnitId,editing,onEditingChange,onReply,resolved,isRoot,onClose,onDeleteComment}=props,commandService=core.useDependency(core.ICommandService),localeService=core.useDependency(core.LocaleService),userManagerService=core.useDependency(core.UserManagerService),user=userManagerService.getUser(item.personId),currentUser=ui.useObservable(userManagerService.currentUser$),isCommentBySelf=(currentUser==null?void 0:currentUser.userID)===item.personId,isMock=item.id===MOCK_ID,[showReply,setShowReply]=React.useState(!1),handleDeleteItem=__name(()=>{(onDeleteComment==null?void 0:onDeleteComment(item))!==!1&&(commandService.executeCommand(isRoot?threadComment$2.DeleteCommentTreeCommand.id:threadComment$2.DeleteCommentCommand.id,{unitId,subUnitId,commentId:item.id}),isRoot&&(onClose==null||onClose()))},"handleDeleteItem");return React.createElement("div",{className:styles$1.threadCommentItem,onMouseLeave:__name(()=>setShowReply(!1),"onMouseLeave"),onMouseEnter:__name(()=>setShowReply(!0),"onMouseEnter")},React.createElement("img",{className:styles$1.threadCommentItemHead,src:user==null?void 0:user.avatar}),React.createElement("div",{className:styles$1.threadCommentItemTitle},React.createElement("div",{className:styles$1.threadCommentUsername},(user==null?void 0:user.name)||" "),React.createElement("div",null,isMock||resolved?null:showReply?React.createElement("div",{className:styles$1.threadCommentIcon,onClick:__name(()=>onReply(user),"onClick")},React.createElement(ReplyToCommentSingle,null)):null,isCommentBySelf&&!isMock&&!resolved?React.createElement(design.Dropdown,{overlay:React.createElement(design.Menu,null,React.createElement(design.MenuItem,{key:"edit",onClick:__name(()=>onEditingChange==null?void 0:onEditingChange(!0),"onClick")},localeService.t("threadCommentUI.item.edit")),React.createElement(design.MenuItem,{key:"delete",onClick:handleDeleteItem},localeService.t("threadCommentUI.item.delete")))},React.createElement("div",{className:styles$1.threadCommentIcon},React.createElement(MoreHorizontalSingle,null))):null)),React.createElement("div",{className:styles$1.threadCommentItemTime},item.dT),editing?React.createElement(ThreadCommentEditor,{id:item.id,comment:item,onCancel:__name(()=>onEditingChange==null?void 0:onEditingChange(!1),"onCancel"),autoFocus:!0,unitId,subUnitId,onSave:__name(({text,attachments})=>{onEditingChange==null||onEditingChange(!1),commandService.executeCommand(threadComment$2.UpdateCommentCommand.id,{unitId,subUnitId,payload:{commentId:item.id,text,attachments}})},"onSave")}):React.createElement("div",{className:styles$1.threadCommentItemContent},transformDocument2TextNodes(item.text).map((item2,i)=>{switch(item2.type){case"mention":return React.createElement("a",{className:styles$1.threadCommentItemAt,key:i},"@",item2.content.label," ");default:return item2.content}})))},"ThreadCommentItem"),ThreadCommentTree=__name(props=>{var _a2,_b2,_c;const{id,unitId,subUnitId,refStr,showEdit=!0,onClick,showHighlight,onClose,getSubUnitName,prefix,autoFocus,onMouseEnter,onMouseLeave,onAddComment,onDeleteComment,onResolve}=props,threadCommentModel=core.useDependency(threadComment$2.ThreadCommentModel),[isHover,setIsHover]=React.useState(!1),[editingId,setEditingId]=React.useState("");ui.useObservable(threadCommentModel.commentMap$);const comments=id?threadCommentModel.getCommentWithChildren(unitId,subUnitId,id):null,commandService=core.useDependency(core.ICommandService),userManagerService=core.useDependency(core.UserManagerService),resolved=comments==null?void 0:comments.root.resolved,currentUser=ui.useObservable(userManagerService.currentUser$),editorRef=React.useRef(null),renderComments=[...comments?[comments.root]:[{id:MOCK_ID,text:{dataStream:`
3
- \r`},personId:(_a2=currentUser==null?void 0:currentUser.userID)!=null?_a2:"",ref:refStr!=null?refStr:"",dT:"",unitId,subUnitId,threadId:""}],...(_b2=comments==null?void 0:comments.children)!=null?_b2:[]],scroller=React.useRef(null),handleResolve=__name(e=>{e.stopPropagation(),resolved?commandService.executeCommand(SetActiveCommentOperation.id,{unitId,subUnitId,commentId:id}):commandService.executeCommand(SetActiveCommentOperation.id),commandService.executeCommand(threadComment$2.ResolveCommentCommand.id,{unitId,subUnitId,commentId:id,resolved:!resolved}),onResolve==null||onResolve(!resolved)},"handleResolve"),handleDeleteRoot=__name(e=>{e.stopPropagation(),commandService.executeCommand(SetActiveCommentOperation.id),!(comments!=null&&comments.root&&(onDeleteComment==null?void 0:onDeleteComment(comments.root))===!1)&&(commandService.executeCommand(threadComment$2.DeleteCommentTreeCommand.id,{unitId,subUnitId,commentId:id}),onClose==null||onClose())},"handleDeleteRoot");React.useEffect(()=>onMouseLeave==null?void 0:onMouseLeave(),[]);const subUnitName=getSubUnitName((_c=comments==null?void 0:comments.root.subUnitId)!=null?_c:subUnitId),editorVisible=showEdit&&!editingId&&!resolved,title=`${refStr||(comments==null?void 0:comments.root.ref)||""}${subUnitName?" · ":""}${subUnitName}`;return React.createElement("div",{className:cs(styles$1.threadComment,{[styles$1.threadCommentActive]:!resolved&&(showHighlight||isHover||prefix==="cell")}),onClick,id:`${prefix}-${unitId}-${subUnitId}-${id}`,onMouseEnter:__name(()=>{onMouseEnter==null||onMouseEnter(),setIsHover(!0)},"onMouseEnter"),onMouseLeave:__name(()=>{onMouseLeave==null||onMouseLeave(),setIsHover(!1)},"onMouseLeave")},!resolved&&showHighlight?React.createElement("div",{className:styles$1.threadCommentHighlight}):null,React.createElement("div",{className:styles$1.threadCommentTitle},React.createElement("div",{className:styles$1.threadCommentTitlePosition},React.createElement("div",{className:styles$1.threadCommentTitleHighlight}),React.createElement(design.Tooltip,{showIfEllipsis:!0,title},React.createElement("div",{className:styles$1.threadCommentTitlePositionText},title))),comments?React.createElement("div",{className:styles$1.threadCommentIconContainer},React.createElement("div",{onClick:handleResolve,className:styles$1.threadCommentIcon,style:{color:resolved?"rgb(var(--green-500))":""}},resolved?React.createElement(ResolvedSingle,null):React.createElement(SolveSingle,null)),(currentUser==null?void 0:currentUser.userID)===comments.root.personId?React.createElement("div",{className:styles$1.threadCommentIcon,onClick:handleDeleteRoot},React.createElement(DeleteSingle,null)):null):null),React.createElement("div",{className:styles$1.threadCommentContent,ref:scroller},renderComments.map(item=>React.createElement(ThreadCommentItem,{onClose,unitId,subUnitId,item,key:item.id,isRoot:item.id===(comments==null?void 0:comments.root.id),editing:editingId===item.id,resolved:comments==null?void 0:comments.root.resolved,onEditingChange:__name(editing=>{setEditingId(editing?item.id:"")},"onEditingChange"),onReply:__name(user=>{user&&requestAnimationFrame(()=>{var _a3;(_a3=editorRef.current)==null||_a3.reply(transformTextNodes2Document([{type:"mention",content:{id:user.userID,label:user.name}}]))})},"onReply"),onAddComment,onDeleteComment}))),editorVisible?React.createElement("div",null,React.createElement(ThreadCommentEditor,{key:`${autoFocus}`,ref:editorRef,unitId,subUnitId,onSave:__name(async({text,attachments})=>{const comment={text,attachments,dT:getDT(),id:core.generateRandomId(),ref:refStr,personId:currentUser==null?void 0:currentUser.userID,parentId:comments==null?void 0:comments.root.id,unitId,subUnitId,threadId:comments==null?void 0:comments.root.threadId};(onAddComment==null?void 0:onAddComment(comment))!==!1&&(await commandService.executeCommand(threadComment$2.AddCommentCommand.id,{unitId,subUnitId,comment}),scroller.current&&(scroller.current.scrollTop=scroller.current.scrollHeight))},"onSave"),autoFocus:autoFocus||!comments,onCancel:__name(()=>{comments||onClose==null||onClose()},"onCancel")})):null)},"ThreadCommentTree"),styles={threadCommentPanel:"univer-thread-comment-panel",threadComment:"univer-thread-comment",threadCommentPanelForms:"univer-thread-comment-panel-forms",select:"univer-select",threadCommentPanelEmpty:"univer-thread-comment-panel-empty",threadCommentPanelAdd:"univer-thread-comment-panel-add",threadCommentPanelSolved:"univer-thread-comment-panel-solved"},ThreadCommentPanel=__name(props=>{const{unitId,subUnitId$,type,onAdd,getSubUnitName,onResolve,sortComments,onItemLeave,onItemEnter,disableAdd,tempComment,onAddComment,onDeleteComment,showComments}=props,[unit,setUnit]=React.useState("all"),[status,setStatus]=React.useState("all"),localeService=core.useDependency(core.LocaleService),userService=core.useDependency(core.UserManagerService),threadCommentModel=core.useDependency(threadComment$2.ThreadCommentModel),[unitComments,setUnitComments]=React.useState(()=>threadCommentModel.getUnit(unitId)),panelService=core.useDependency(exports2.ThreadCommentPanelService),activeCommentId=ui.useObservable(panelService.activeCommentId$),update=ui.useObservable(threadCommentModel.commentUpdate$),commandService=core.useDependency(core.ICommandService),subUnitId=ui.useObservable(subUnitId$),shouldScroll=React.useRef(!0),prefix="panel",currentUser=ui.useObservable(userService.currentUser$),comments=React.useMemo(()=>{var _a2,_b2;const allComments=(unit==="all"?unitComments.map(i=>i[1]).flat():(_b2=(_a2=unitComments.find(i=>i[0]===subUnitId))==null?void 0:_a2[1])!=null?_b2:[]).filter(i=>!i.parentId),sort=sortComments!=null?sortComments:a=>a,res=allComments;if(showComments){const map=new Map;return res.forEach(comment=>{map.set(comment.id,comment)}),[...showComments,""].map(id=>map.get(id)).filter(Boolean)}else return sort(res)},[showComments,unit,unitComments,sortComments,subUnitId]),commentsSorted=React.useMemo(()=>[...comments.filter(comment=>!comment.resolved),...comments.filter(comment=>comment.resolved)],[comments]),statuedComments=React.useMemo(()=>status==="resolved"?commentsSorted.filter(comment=>comment.resolved):status==="unsolved"?commentsSorted.filter(comment=>!comment.resolved):status==="concern_me"&&currentUser!=null&&currentUser.userID?commentsSorted.map(comment=>threadCommentModel.getCommentWithChildren(comment.unitId,comment.subUnitId,comment.id)).map(comment=>comment!=null&&comment.relativeUsers.has(currentUser.userID)?comment.root:null).filter(Boolean):commentsSorted,[commentsSorted,currentUser==null?void 0:currentUser.userID,status,threadCommentModel]),renderComments=tempComment?[tempComment,...statuedComments]:statuedComments,unSolvedComments=renderComments.filter(comment=>!comment.resolved),solvedComments=renderComments.filter(comment=>comment.resolved),isFiltering=status!=="all"||unit!=="all",onReset=__name(()=>{setStatus("all"),setUnit("all")},"onReset");React.useEffect(()=>{unitId&&setUnitComments(threadCommentModel.getUnit(unitId))},[unitId,threadCommentModel,update]),React.useEffect(()=>{var _a2;if(!activeCommentId)return;if(!shouldScroll.current){shouldScroll.current=!0;return}const{unitId:unitId2,subUnitId:subUnitId2,commentId}=activeCommentId,id=`${prefix}-${unitId2}-${subUnitId2}-${commentId}`;(_a2=document.getElementById(id))==null||_a2.scrollIntoView({block:"center"})},[activeCommentId]);const renderComment=__name(comment=>React.createElement(ThreadCommentTree,{prefix,getSubUnitName,key:comment.id,id:comment.id,unitId:comment.unitId,subUnitId:comment.subUnitId,refStr:comment.ref,type,showEdit:(activeCommentId==null?void 0:activeCommentId.commentId)===comment.id,showHighlight:(activeCommentId==null?void 0:activeCommentId.commentId)===comment.id,onClick:__name(()=>{shouldScroll.current=!1,comment.resolved?commandService.executeCommand(SetActiveCommentOperation.id):commandService.executeCommand(SetActiveCommentOperation.id,{unitId:comment.unitId,subUnitId:comment.subUnitId,commentId:comment.id,temp:!1})},"onClick"),onMouseEnter:__name(()=>onItemEnter==null?void 0:onItemEnter(comment),"onMouseEnter"),onMouseLeave:__name(()=>onItemLeave==null?void 0:onItemLeave(comment),"onMouseLeave"),onAddComment,onDeleteComment,onResolve:__name(resolved=>onResolve==null?void 0:onResolve(comment.id,resolved),"onResolve")}),"renderComment");return React.createElement("div",{className:styles.threadCommentPanel},React.createElement("div",{className:styles.threadCommentPanelForms},type===core.UniverInstanceType.UNIVER_SHEET?React.createElement(design.Select,{borderless:!0,value:unit,onChange:__name(e=>setUnit(e),"onChange"),options:[{value:"current",label:localeService.t("threadCommentUI.filter.sheet.current")},{value:"all",label:localeService.t("threadCommentUI.filter.sheet.all")}]}):null,React.createElement(design.Select,{borderless:!0,value:status,onChange:__name(e=>setStatus(e),"onChange"),options:[{value:"all",label:localeService.t("threadCommentUI.filter.status.all")},{value:"resolved",label:localeService.t("threadCommentUI.filter.status.resolved")},{value:"unsolved",label:localeService.t("threadCommentUI.filter.status.unsolved")},{value:"concern_me",label:localeService.t("threadCommentUI.filter.status.concernMe")}]})),unSolvedComments.map(renderComment),solvedComments.length?React.createElement("div",{className:styles.threadCommentPanelSolved},"已解决"):null,solvedComments.map(renderComment),renderComments.length?null:React.createElement("div",{className:styles.threadCommentPanelEmpty},isFiltering?localeService.t("threadCommentUI.panel.filterEmpty"):localeService.t("threadCommentUI.panel.empty"),isFiltering?React.createElement(design.Button,{onClick:onReset,type:"link"},localeService.t("threadCommentUI.panel.reset")):React.createElement(design.Button,{id:"thread-comment-add",className:styles.threadCommentPanelAdd,type:"primary",onClick:onAdd,disabled:disableAdd},React.createElement(IncreaseSingle,null),localeService.t("threadCommentUI.panel.addComment"))))},"ThreadCommentPanel");exports2.IThreadCommentMentionDataService=IThreadCommentMentionDataService,exports2.SetActiveCommentOperation=SetActiveCommentOperation,exports2.THREAD_COMMENT_PANEL=THREAD_COMMENT_PANEL,exports2.ThreadCommentPanel=ThreadCommentPanel,exports2.ThreadCommentTree=ThreadCommentTree,exports2.ToggleSheetCommentPanelOperation=ToggleSheetCommentPanelOperation,exports2.getDT=getDT,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
1
+ function _0x5976(){var _0x156cf8=['value','symbol','__decorateClass','onReset','threadCommentTitleHighlight','getMentions','set','threadCommentTitlePosition','YYYY/MM/DD\x20HH:mm','string','threadCommentTitlePositionText','object','edit','UniverInstanceType','IConfigService','transformTextNodes2Document','UniverThreadCommentUIPlugin','unsolved','UniverEngineRender','forwardRef','UniverThreadComment','has','trigger','_init','univer-thread-comment-item-at','ThreadCommentPanelService','substring','raw','useObservable','threadCommentUI.filter.status.unsolved','Injector','UniverCore','threadCommentUI.panel.addComment','Dropdown','personId','@univerjs/thread-comment','onFocus','CustomRangeType','disposeWithMe','univer-thread-comment-item-title-highlight','LocaleService','transformTextNode2Text','name','setActiveComment','threadCommentUI.panel.reset','useState','sidebarOptions$','threadComment','parseMentions','parentId','amd','join','rxjs','threadCommentIconContainer','handleSave','threadCommentUI.editor.cancel','center','evenodd','threadCommentUsername','complete','handleDeleteItem','target','commentUpdate$','_activeCommentId','UniverThreadCommentUi','M0.840332\x203.73535C0.840332\x202.63078\x201.73576\x201.73535\x202.84033\x201.73535H10.2955C11.4001\x201.73535\x2012.2955\x202.63078\x2012.2955\x203.73535V8.32676C12.2955\x209.43132\x2011.4001\x2010.3268\x2010.2955\x2010.3268H5.6014L4.1695\x2011.7587L3.05978\x2010.3268H2.84033C1.73576\x2010.3268\x200.840332\x209.43133\x200.840332\x208.32676V3.73535Z','Plugin','__decorateParam$1','defaultRenderSuggestion','univer-thread-comment-item-title','@univerjs/engine-render','threadCommentEditorSuggestion','1186908zpJeGH','getUnit','activeCommentId','@univerjs/ui','hasOwnProperty','display','UniverIcon','div','propertyIsEnumerable','UniverDocs','link','replace','menu','DeleteCommentCommand','data','Select','dayjs','mergeOverrideWithDependencies','@univerjs/docs-ui','threadCommentUI.editor.reply','svg','getOwnPropertyDescriptor','delete-single','trim','@univerjs/design','univer-thread-comment-active','threadCommentUI.editor.save','asObservable','subUnitId','function','univer-thread-comment','threadCommentEditorButtons','indexOf','ThreadCommentItem','DependentOn','threadCommentItemTitle','threadCommentIcon','label','activeCommentId$','ICommandService','map','getCommentWithChildren','content','已解决','_config','onChange','ThreadCommentPanel','_panelVisible$','currentColor','3042860RJJWyz','none','threadCommentHighlight','M5.3313\x201.4667C5.3313\x201.13533\x205.59993.866699\x205.9313.866699H10.069C10.4004.866699\x2010.669\x201.13533\x2010.669\x201.4667\x2010.669\x201.79807\x2010.4004\x202.0667\x2010.069\x202.0667H5.9313C5.59993\x202.0667\x205.3313\x201.79807\x205.3313\x201.4667zM1.09985\x203.64443C1.09985\x203.31306\x201.36848\x203.04443\x201.69985\x203.04443H14.2999C14.6312\x203.04443\x2014.8999\x203.31306\x2014.8999\x203.64443\x2014.8999\x203.9758\x2014.6312\x204.24443\x2014.2999\x204.24443H1.69985C1.36848\x204.24443\x201.09985\x203.9758\x201.09985\x203.64443zM6.12398\x208.30171C6.35829\x208.0674\x206.73819\x208.0674\x206.97251\x208.30171L8.00007\x209.32928\x209.02764\x208.30171C9.26195\x208.0674\x209.64185\x208.0674\x209.87617\x208.30171\x2010.1105\x208.53603\x2010.1105\x208.91593\x209.87617\x209.15024L8.8486\x2010.1778\x209.87617\x2011.2054C10.1105\x2011.4397\x2010.1105\x2011.8196\x209.87617\x2012.0539\x209.64185\x2012.2882\x209.26195\x2012.2882\x209.02764\x2012.0539L8.00007\x2011.0263\x206.97251\x2012.0539C6.73819\x2012.2882\x206.35829\x2012.2882\x206.12398\x2012.0539\x205.88966\x2011.8196\x205.88966\x2011.4397\x206.12398\x2011.2054L7.15154\x2010.1778\x206.12398\x209.15024C5.88966\x208.91593\x205.88966\x208.53603\x206.12398\x208.30171z','entries','threadCommentItemTime','displayName','5831ezzgfj','transformMention','primary','__defNormalProp','concat','pipe','with','UpdateCommentCommand','extend','setConfig','_activeCommentId$','visible','univer-thread-comment-editor-buttons','27764856EMYHBa','getDT','thread-comment-ui.config','MoreHorizontalSingle','threadCommentUI.filter.sheet.current','createElement','current','currentUser$','Button','M8.6\x201.99991C8.60001\x201.66854\x208.33138\x201.39991\x208.00001\x201.3999C7.66864\x201.3999\x207.40001\x201.66853\x207.4\x201.9999L7.39996\x207.3999H1.9999C1.66853\x207.3999\x201.3999\x207.66853\x201.3999\x207.9999C1.3999\x208.33127\x201.66853\x208.5999\x201.9999\x208.5999H7.39995L7.3999\x2013.9999C7.3999\x2014.3313\x207.66853\x2014.5999\x207.9999\x2014.5999C8.33127\x2014.5999\x208.5999\x2014.3313\x208.5999\x2013.9999L8.59995\x208.5999H13.9999C14.3313\x208.5999\x2014.5999\x208.33127\x2014.5999\x207.9999C14.5999\x207.66853\x2014.3313\x207.3999\x2013.9999\x207.3999H8.59996L8.6\x201.99991Z','fill','className','thread-comment-ui.operation.toggle-panel','9165416eRXnCi','more-horizontal-single','SolveSingle','UNIVER_UNKNOWN','univer-thread-comment-title-position','index','Disposable','tag','forEach','M6.41016\x206.1311H6.76813M8.91626\x206.1311H9.27424M3.90454\x206.1311H4.26252','reply','round','react','replaceRuntimeIdsAndExtInAttrs','React','generateRandomId','onEditingChange','3850556jSqeeo','registerCommand','renderSuggestion','0\x200\x2016\x2016','path','UNIVER_SHEET','pluginName','all','@univerjs/core','onCancel','IncreaseSingle','threadCommentUI.panel.filterEmpty','delete','getUser','subscribe','ToggleSheetCommentPanelOperation','getCurrentTypeOfRenderer','ISidebarService','createIdentifier','univer-thread-comment-item-time','threadCommentPanel','Module','DocSelectionManagerService','slice','11316vdVVUK','executeCommand','toStringTag','3IPAZAu','setPanelVisible','get','children','resolved-single','useMemo','scrollIntoView','DeleteCommentTreeCommand','generateShortUuid','univer-thread-comment-panel-forms','colorChannel1','format','onSave','push','UserManagerService','3387535wxKhtY','getOwnPropertySymbols','univer-thread-comment-highlight','__publicField','IThreadCommentMentionDataService','ResolvedSingle','1em','threadCommentPanelForms','Tooltip','M4.75332\x205.22217C3.86966\x205.22217\x203.15332\x205.93851\x203.15332\x206.82217V12.5331C3.15332\x2013.9691\x204.31738\x2015.1332\x205.75332\x2015.1332H10.2465C11.6825\x2015.1332\x2012.8465\x2013.9691\x2012.8465\x2012.5331V6.82217C12.8465\x205.93851\x2012.1302\x205.22217\x2011.2465\x205.22217H4.75332ZM4.35332\x206.82217C4.35332\x206.60125\x204.53241\x206.42217\x204.75332\x206.42217H11.2465C11.4674\x206.42217\x2011.6465\x206.60125\x2011.6465\x206.82217V12.5331C11.6465\x2013.3063\x2011.0197\x2013.9332\x2010.2465\x2013.9332H5.75332C4.98012\x2013.9332\x204.35332\x2013.3063\x204.35332\x2012.5331V6.82217Z','dataSource','filter','_sidebarService','Inject','focus','clsx','ReplyToCommentSingle','ThreadCommentModel','defineProperty','thread-comment-add','onStarting','url(#$1','onClick','@univerjs/docs','CommandType','defIds','_commandService','ThreadCommentMentionDataService','increase-single','mention','rgb(var(--green-500))','random','SetActiveCommentOperation','DeleteSingle','ResolveCommentCommand','defs','assign','univer-thread-comment-editor-suggestionActive','M8.6106\x2015.4036C12.4766\x2015.4036\x2015.6106\x2012.2696\x2015.6106\x208.40356C15.6106\x204.53757\x2012.4766\x201.40356\x208.6106\x201.40356C4.7446\x201.40356\x201.6106\x204.53757\x201.6106\x208.40356C1.6106\x2012.2696\x204.7446\x2015.4036\x208.6106\x2015.4036ZM12.3351\x206.82773C12.5694\x206.59342\x2012.5694\x206.21352\x2012.3351\x205.9792C12.1007\x205.74489\x2011.7208\x205.74489\x2011.4865\x205.9792L7.91079\x209.55494L6.33506\x207.9792C6.10074\x207.74489\x205.72084\x207.74489\x205.48653\x207.9792C5.25221\x208.21352\x205.25221\x208.59342\x205.48653\x208.82773L7.48653\x2010.8277C7.72084\x2011.062\x208.10074\x2011.062\x208.33506\x2010.8277L12.3351\x206.82773Z','useImperativeHandle','univer-thread-comment-panel-add','root','displayTransform','M3\x209C3.55228\x209\x204\x208.55228\x204\x208\x204\x207.44772\x203.55228\x207\x203\x207\x202.44772\x207\x202\x207.44772\x202\x208\x202\x208.55228\x202.44772\x209\x203\x209zM8\x209C8.55228\x209\x209\x208.55228\x209\x208\x209\x207.44772\x208.55228\x207\x208\x207\x207.44772\x207\x207\x207.44772\x207\x208\x207\x208.55228\x207.44772\x209\x208\x209zM13\x209C13.5523\x209\x2014\x208.55228\x2014\x208\x2014\x207.44772\x2013.5523\x207\x2013\x207\x2012.4477\x207\x2012\x207.44772\x2012\x208\x2012\x208.55228\x2012.4477\x209\x2013\x209z','replaceRuntimeIdsInDefs','\x20·\x20','attrs','open','panelVisible','M6.02637\x208.40356L8.02637\x2010.4036L12.0264\x206.40356','0\x200\x2017\x2017','UniverThreadCommentPlugin','inputElement','M7.48389\x2010.3267V12.1905C7.48389\x2012.7428\x207.9316\x2013.1905\x208.48389\x2013.1905H11.2216L12.2955\x2014.2644L13.3695\x2013.1905H14.1593C14.7116\x2013.1905\x2015.1593\x2012.7428\x2015.1593\x2012.1905V8.46289C15.1593\x207.91061\x2014.7116\x207.46289\x2014.1593\x207.46289H12.2955','getCurrentTypeOfUnit$','AddCommentCommand','UNIVER_DOC','userID','getActiveTextRange','threadCommentUI.panel.title','startIndex','_univerInstanceService','call','univer-select','endIndex','UniverUi','close','_configService','collapsed','length','threadCommentUI.panel.empty','_panelVisible','add','UniverDocsUi','idSuffix','reply-to-comment-single','overrides','flat','exec','IUniverInstanceService','unitId','onMouseEnter','img','useRef','UniverDesign','threadCommentTitle','preventDefault','text','threadCommentUI.item.edit','type','univer-thread-comment-panel','ThreadCommentTree','Menu','handleDeleteRoot','MenuItem','getElementById','find','use','resolved','threadCommentEditorSuggestionIcon','threadCommentActive','next','stopPropagation','icon','threadCommentItemContent','threadCommentEditor','_injector','useEffect','threadCommentUI.filter.sheet.all','concern_me','useDependency','xlink:href','then','blur','univer-thread-comment-editor-suggestion','ref','render','BehaviorSubject','prototype'];_0x5976=function(){return _0x156cf8;};return _0x5976();}function _0x2bf7(_0x37c0a2,_0x13568c){var _0x597624=_0x5976();return _0x2bf7=function(_0x2bf727,_0x4d510d){_0x2bf727=_0x2bf727-0x198;var _0x39ee4d=_0x597624[_0x2bf727];return _0x39ee4d;},_0x2bf7(_0x37c0a2,_0x13568c);}(function(_0x24e4b1,_0x35335e){var _0x5adf67=_0x2bf7,_0x39155b=_0x24e4b1();while(!![]){try{var _0x3dac5e=parseInt(_0x5adf67(0x28a))/0x1+parseInt(_0x5adf67(0x2bb))/0x2+-parseInt(_0x5adf67(0x1bc))/0x3*(-parseInt(_0x5adf67(0x1a1))/0x4)+parseInt(_0x5adf67(0x1cb))/0x5+-parseInt(_0x5adf67(0x1b9))/0x6*(parseInt(_0x5adf67(0x2c2))/0x7)+parseInt(_0x5adf67(0x2dc))/0x8+-parseInt(_0x5adf67(0x2cf))/0x9;if(_0x3dac5e===_0x35335e)break;else _0x39155b['push'](_0x39155b['shift']());}catch(_0x43d3cb){_0x39155b['push'](_0x39155b['shift']());}}}(_0x5976,0xcc9fb),function(_0x4ab939,_0x461569){var _0x2f59f8=_0x2bf7;typeof exports==_0x2f59f8(0x24d)&&typeof module<'u'?_0x461569(exports,require(_0x2f59f8(0x29a)),require(_0x2f59f8(0x265)),require(_0x2f59f8(0x1a9)),require(_0x2f59f8(0x28d)),require(_0x2f59f8(0x276)),require('@univerjs/design'),require(_0x2f59f8(0x19c)),require(_0x2f59f8(0x1da)),require(_0x2f59f8(0x1e2)),require(_0x2f59f8(0x29c)),require(_0x2f59f8(0x288))):typeof define==_0x2f59f8(0x2a7)&&define[_0x2f59f8(0x274)]?define(['exports','dayjs','@univerjs/thread-comment',_0x2f59f8(0x1a9),_0x2f59f8(0x28d),'rxjs',_0x2f59f8(0x2a2),_0x2f59f8(0x19c),_0x2f59f8(0x1da),_0x2f59f8(0x1e2),_0x2f59f8(0x29c),_0x2f59f8(0x288)],_0x461569):(_0x4ab939=typeof globalThis<'u'?globalThis:_0x4ab939||self,_0x461569(_0x4ab939[_0x2f59f8(0x282)]={},_0x4ab939['dayjs'],_0x4ab939[_0x2f59f8(0x256)],_0x4ab939[_0x2f59f8(0x261)],_0x4ab939[_0x2f59f8(0x20c)],_0x4ab939[_0x2f59f8(0x276)],_0x4ab939[_0x2f59f8(0x21f)],_0x4ab939[_0x2f59f8(0x19e)],_0x4ab939[_0x2f59f8(0x1da)],_0x4ab939[_0x2f59f8(0x293)],_0x4ab939[_0x2f59f8(0x214)],_0x4ab939[_0x2f59f8(0x254)]));}(this,function(_0x13a078,_0x57113a,_0x3e6ecf,_0x47b9d7,_0x3b8f1f,_0x2ca7ef,_0x553326,_0x279818,_0x5c7352,_0x2e8ad3,_0x3c2022,_0xbece32){'use strict';var _0x374c66=_0x2bf7;var _0x139ec5=Object[_0x374c66(0x1dd)],_0x268c38=(_0xeb5807,_0x3d051b,_0x4f776f)=>_0x3d051b in _0xeb5807?_0x139ec5(_0xeb5807,_0x3d051b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f776f}):_0xeb5807[_0x3d051b]=_0x4f776f,_0x1d94d6=(_0x453170,_0xecbd59)=>_0x139ec5(_0x453170,_0x374c66(0x26c),{'value':_0xecbd59,'configurable':!0x0}),_0x471517=(_0x23302d,_0x8803ed,_0x4a1350)=>_0x268c38(_0x23302d,typeof _0x8803ed!=_0x374c66(0x243)?_0x8803ed+'':_0x8803ed,_0x4a1350),_0x5833b1,_0x581886;function _0x454632(){var _0x5e223d=_0x374c66;return _0x57113a()[_0x5e223d(0x1c7)](_0x5e223d(0x24a));}_0x1d94d6(_0x454632,_0x374c66(0x2d0));const _0x266418='thread-comment-panel',_0xe56a2c='UNIVER_THREAD_COMMENT_UI_PLUGIN';var _0x22a9dc=Object[_0x374c66(0x1dd)],_0x2f30d4=Object['getOwnPropertyDescriptor'],_0x5bdab3=_0x1d94d6((_0xf2274c,_0x5b4df5,_0x19aa34,_0x277e99)=>{var _0x15b268=_0x374c66;for(var _0x41e257=_0x277e99>0x1?void 0x0:_0x277e99?_0x2f30d4(_0x5b4df5,_0x19aa34):_0x5b4df5,_0x1401a9=_0xf2274c[_0x15b268(0x210)]-0x1,_0x599fdb;_0x1401a9>=0x0;_0x1401a9--)(_0x599fdb=_0xf2274c[_0x1401a9])&&(_0x41e257=(_0x277e99?_0x599fdb(_0x5b4df5,_0x19aa34,_0x41e257):_0x599fdb(_0x41e257))||_0x41e257);return _0x277e99&&_0x41e257&&_0x22a9dc(_0x5b4df5,_0x19aa34,_0x41e257),_0x41e257;},'__decorateClass$1'),_0x17f633=_0x1d94d6((_0x2c229d,_0x42aea1)=>(_0x494ec9,_0x3d11fd)=>_0x42aea1(_0x494ec9,_0x3d11fd,_0x2c229d),_0x374c66(0x285));_0x13a078[_0x374c66(0x25b)]=(_0x5833b1=class extends _0x47b9d7[_0x374c66(0x2e2)]{constructor(_0x229b64,_0x2ba516){var _0x106222=_0x374c66;super(),_0x471517(this,_0x106222(0x212),!0x1),_0x471517(this,'_panelVisible$',new _0x2ca7ef['BehaviorSubject'](!0x1)),_0x471517(this,_0x106222(0x281)),_0x471517(this,_0x106222(0x2cc),new _0x2ca7ef[(_0x106222(0x240))](void 0x0)),_0x471517(this,'panelVisible$',this[_0x106222(0x2b9)]['asObservable']()),_0x471517(this,'activeCommentId$',this['_activeCommentId$'][_0x106222(0x2a5)]()),(this['_sidebarService']=_0x229b64,this[_0x106222(0x208)]=_0x2ba516,this[_0x106222(0x259)](),this[_0x106222(0x268)](()=>{var _0x539d40=_0x106222;this[_0x539d40(0x2cc)][_0x539d40(0x27d)](),this['_panelVisible$'][_0x539d40(0x27d)]();}));}['_init'](){var _0x21021a=_0x374c66;this[_0x21021a(0x268)](this[_0x21021a(0x1d7)][_0x21021a(0x270)][_0x21021a(0x1af)](_0x4fedda=>{var _0x277311=_0x21021a;_0x4fedda[_0x277311(0x2cd)]||this['setPanelVisible'](!0x1);})),this['disposeWithMe'](this[_0x21021a(0x208)][_0x21021a(0x201)](_0x47b9d7[_0x21021a(0x24f)]['UNIVER_SHEET'])[_0x21021a(0x2c7)](_0x2ca7ef[_0x21021a(0x1d6)](_0x1edf6f=>!_0x1edf6f))[_0x21021a(0x1af)](()=>{var _0x555c12=_0x21021a;this[_0x555c12(0x1d7)][_0x555c12(0x20d)]();}));}get[_0x374c66(0x1fb)](){return this['_panelVisible'];}get[_0x374c66(0x28c)](){var _0x1e9237=_0x374c66;return this[_0x1e9237(0x281)];}[_0x374c66(0x1bd)](_0x163baa){var _0x7f8065=_0x374c66;this[_0x7f8065(0x212)]=_0x163baa,this['_panelVisible$'][_0x7f8065(0x230)](_0x163baa);}[_0x374c66(0x26d)](_0x599ce6){var _0x28f12f=_0x374c66;this['_activeCommentId']=_0x599ce6,this[_0x28f12f(0x2cc)][_0x28f12f(0x230)](_0x599ce6);}},_0x1d94d6(_0x5833b1,_0x374c66(0x25b)),_0x5833b1),_0x13a078[_0x374c66(0x25b)]=_0x5bdab3([_0x17f633(0x0,_0x47b9d7[_0x374c66(0x1d8)](_0x3b8f1f[_0x374c66(0x1b2)])),_0x17f633(0x1,_0x47b9d7[_0x374c66(0x21a)])],_0x13a078[_0x374c66(0x25b)]);const _0x18968b={'id':_0x374c66(0x2db),'type':_0x47b9d7[_0x374c66(0x1e3)]['OPERATION'],'handler'(_0x2f7b3f){var _0x298458=_0x374c66;const _0x1ee3fb=_0x2f7b3f[_0x298458(0x1be)](_0x3b8f1f['ISidebarService']),_0x136e0a=_0x2f7b3f['get'](_0x13a078[_0x298458(0x25b)]);return _0x136e0a[_0x298458(0x1fb)]?(_0x1ee3fb[_0x298458(0x20d)](),_0x136e0a[_0x298458(0x1bd)](!0x1)):(_0x1ee3fb[_0x298458(0x1fa)]({'header':{'title':_0x298458(0x206)},'children':{'label':_0x266418},'width':0x14a}),_0x136e0a[_0x298458(0x1bd)](!0x0)),!0x0;}},_0x265ed4={'id':'thread-comment-ui.operation.set-active-comment','type':_0x47b9d7[_0x374c66(0x1e3)]['OPERATION'],'handler'(_0xbe042d,_0x35088a){return _0xbe042d['get'](_0x13a078['ThreadCommentPanelService'])['setActiveComment'](_0x35088a),!0x0;}},_0x1aef14=class _0x22aad6{constructor(){var _0x1f049f=_0x374c66;_0x471517(this,_0x1f049f(0x1d5)),_0x471517(this,_0x1f049f(0x1a3)),_0x471517(this,_0x1f049f(0x258),'@');}async[_0x374c66(0x247)](_0x48a661,_0x425af4,_0x460284){var _0x40276f=_0x374c66;return this['dataSource']?this[_0x40276f(0x1d5)][_0x40276f(0x247)](_0x48a661,_0x425af4,_0x460284):[];}};_0x1d94d6(_0x1aef14,_0x374c66(0x1e6));let _0x3166d2=_0x1aef14;const _0x3335db=_0x47b9d7[_0x374c66(0x1b3)]('thread-comment.mention-data.service'),_0x1d715b=_0x374c66(0x2d1),_0x2ccdbf={};var _0x452f14=Object[_0x374c66(0x1dd)],_0x1c4a49=Object[_0x374c66(0x29f)],_0x4ff933=_0x1d94d6((_0x2c840c,_0x4d8e7b,_0x4bb11c)=>_0x4d8e7b in _0x2c840c?_0x452f14(_0x2c840c,_0x4d8e7b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bb11c}):_0x2c840c[_0x4d8e7b]=_0x4bb11c,_0x374c66(0x2c5)),_0x137d85=_0x1d94d6((_0x2882ae,_0x504aac,_0x47dd36,_0x38b363)=>{var _0x1f4f01=_0x374c66;for(var _0xb03472=_0x38b363>0x1?void 0x0:_0x38b363?_0x1c4a49(_0x504aac,_0x47dd36):_0x504aac,_0x3fdeac=_0x2882ae[_0x1f4f01(0x210)]-0x1,_0x341918;_0x3fdeac>=0x0;_0x3fdeac--)(_0x341918=_0x2882ae[_0x3fdeac])&&(_0xb03472=(_0x38b363?_0x341918(_0x504aac,_0x47dd36,_0xb03472):_0x341918(_0xb03472))||_0xb03472);return _0x38b363&&_0xb03472&&_0x452f14(_0x504aac,_0x47dd36,_0xb03472),_0xb03472;},_0x374c66(0x244)),_0x34dc08=_0x1d94d6((_0x2b6b1e,_0x1086c8)=>(_0x188c8d,_0x36cb0f)=>_0x1086c8(_0x188c8d,_0x36cb0f,_0x2b6b1e),'__decorateParam'),_0x3ec076=_0x1d94d6((_0x185dfe,_0x1707ec,_0x356654)=>_0x4ff933(_0x185dfe,typeof _0x1707ec!=_0x374c66(0x243)?_0x1707ec+'':_0x1707ec,_0x356654),_0x374c66(0x1ce));_0x13a078[_0x374c66(0x252)]=(_0x581886=class extends _0x47b9d7[_0x374c66(0x284)]{constructor(_0x11977f=_0x2ccdbf,_0x339deb,_0x11dc61,_0x3c4a65){var _0x20c8a6=_0x374c66;super(),this[_0x20c8a6(0x2b6)]=_0x11977f,this[_0x20c8a6(0x235)]=_0x339deb,this[_0x20c8a6(0x1e5)]=_0x11dc61,this[_0x20c8a6(0x20e)]=_0x3c4a65;const {menu:_0x217f2d,..._0x3ddd8a}=this[_0x20c8a6(0x2b6)];_0x217f2d&&this[_0x20c8a6(0x20e)][_0x20c8a6(0x2cb)](_0x20c8a6(0x296),_0x217f2d,{'merge':!0x0}),this[_0x20c8a6(0x20e)]['setConfig'](_0x1d715b,_0x3ddd8a);}[_0x374c66(0x1df)](){var _0x2a9da5=_0x374c66,_0x22638c;_0x47b9d7[_0x2a9da5(0x29b)]([[_0x13a078[_0x2a9da5(0x25b)]],[_0x3335db,{'useClass':_0x3166d2}]],(_0x22638c=this[_0x2a9da5(0x2b6)])==null?void 0x0:_0x22638c[_0x2a9da5(0x217)])['forEach'](_0x27bc5d=>{var _0x17b208=_0x2a9da5;this['_injector'][_0x17b208(0x213)](_0x27bc5d);}),[_0x18968b,_0x265ed4]['forEach'](_0x30e1cd=>{var _0x264c2e=_0x2a9da5;this[_0x264c2e(0x1e5)][_0x264c2e(0x1a2)](_0x30e1cd);});}},_0x1d94d6(_0x581886,_0x374c66(0x252)),_0x581886),_0x3ec076(_0x13a078['UniverThreadCommentUIPlugin'],_0x374c66(0x1a7),_0xe56a2c),_0x3ec076(_0x13a078[_0x374c66(0x252)],_0x374c66(0x224),_0x47b9d7[_0x374c66(0x24f)][_0x374c66(0x2df)]),_0x13a078[_0x374c66(0x252)]=_0x137d85([_0x47b9d7[_0x374c66(0x2ac)](_0x3e6ecf[_0x374c66(0x1fe)]),_0x34dc08(0x1,_0x47b9d7['Inject'](_0x47b9d7[_0x374c66(0x260)])),_0x34dc08(0x2,_0x47b9d7[_0x374c66(0x2b1)]),_0x34dc08(0x3,_0x47b9d7[_0x374c66(0x250)])],_0x13a078[_0x374c66(0x252)]);var _0x558692=function(){var _0x46b08c=_0x374c66;return _0x558692=Object[_0x46b08c(0x1ef)]||function(_0x3bae3d){var _0x513e9e=_0x46b08c;for(var _0x417af1,_0x586cc8=0x1,_0x56f2e0=arguments[_0x513e9e(0x210)];_0x586cc8<_0x56f2e0;_0x586cc8++){_0x417af1=arguments[_0x586cc8];for(var _0x1dbcfe in _0x417af1)Object[_0x513e9e(0x241)][_0x513e9e(0x28e)]['call'](_0x417af1,_0x1dbcfe)&&(_0x3bae3d[_0x1dbcfe]=_0x417af1[_0x1dbcfe]);}return _0x3bae3d;},_0x558692['apply'](this,arguments);},_0x347e38=function(_0x10ad09,_0x628771){var _0x3c22a3=_0x374c66,_0x47fb37={};for(var _0x3bca3b in _0x10ad09)Object[_0x3c22a3(0x241)][_0x3c22a3(0x28e)][_0x3c22a3(0x209)](_0x10ad09,_0x3bca3b)&&_0x628771[_0x3c22a3(0x2aa)](_0x3bca3b)<0x0&&(_0x47fb37[_0x3bca3b]=_0x10ad09[_0x3bca3b]);if(_0x10ad09!=null&&typeof Object[_0x3c22a3(0x1cc)]=='function'){for(var _0x480e79=0x0,_0x3bca3b=Object[_0x3c22a3(0x1cc)](_0x10ad09);_0x480e79<_0x3bca3b[_0x3c22a3(0x210)];_0x480e79++)_0x628771['indexOf'](_0x3bca3b[_0x480e79])<0x0&&Object[_0x3c22a3(0x241)][_0x3c22a3(0x292)][_0x3c22a3(0x209)](_0x10ad09,_0x3bca3b[_0x480e79])&&(_0x47fb37[_0x3bca3b[_0x480e79]]=_0x10ad09[_0x3bca3b[_0x480e79]]);}return _0x47fb37;},_0x246f7f=_0x279818[_0x374c66(0x255)](function(_0x3e5219,_0x5d55e3){var _0x48cf68=_0x374c66,_0x54a9e1=_0x3e5219[_0x48cf68(0x232)],_0x1ec1ef=_0x3e5219['id'],_0x281f32=_0x3e5219[_0x48cf68(0x2da)],_0x23ed4=_0x3e5219['extend'],_0x3299f1=_0x347e38(_0x3e5219,[_0x48cf68(0x232),'id',_0x48cf68(0x2da),_0x48cf68(0x2ca)]),_0x451ea6='univerjs-icon\x20univerjs-icon-'[_0x48cf68(0x2c6)](_0x1ec1ef,'\x20')[_0x48cf68(0x2c6)](_0x281f32||'')[_0x48cf68(0x2a1)](),_0x5d714b=_0x279818[_0x48cf68(0x21e)]('_'[_0x48cf68(0x2c6)](_0x318dd2()));return _0x294357(_0x54a9e1,''['concat'](_0x1ec1ef),{'defIds':_0x54a9e1[_0x48cf68(0x1e4)],'idSuffix':_0x5d714b[_0x48cf68(0x2d5)]},_0x558692({'ref':_0x5d55e3,'className':_0x451ea6},_0x3299f1),_0x23ed4);});function _0x294357(_0xb67d4b,_0x1372c9,_0x895b2,_0x58f8c7,_0x29f48e){var _0x991cd8=_0x374c66;return _0x279818[_0x991cd8(0x2d4)](_0xb67d4b[_0x991cd8(0x2e3)],_0x558692(_0x558692({'key':_0x1372c9},_0x33eac2(_0xb67d4b,_0x895b2,_0x29f48e)),_0x58f8c7),(_0x133dbf(_0xb67d4b,_0x895b2)[_0x991cd8(0x1bf)]||[])['map'](function(_0x120fef,_0x3c51b3){var _0x5c0604=_0x991cd8;return _0x294357(_0x120fef,''[_0x5c0604(0x2c6)](_0x1372c9,'-')[_0x5c0604(0x2c6)](_0xb67d4b[_0x5c0604(0x2e3)],'-')[_0x5c0604(0x2c6)](_0x3c51b3),_0x895b2,void 0x0,_0x29f48e);}));}_0x1d94d6(_0x294357,_0x374c66(0x23f));function _0x33eac2(_0x4ebebe,_0x256a0f,_0x3a6f96){var _0x57e228=_0x374c66,_0x2d2a9e=_0x558692({},_0x4ebebe['attrs']);_0x3a6f96!=null&&_0x3a6f96[_0x57e228(0x1c6)]&&_0x2d2a9e[_0x57e228(0x2d9)]==='colorChannel1'&&(_0x2d2a9e[_0x57e228(0x2d9)]=_0x3a6f96['colorChannel1']);var _0x4e46e0=_0x256a0f[_0x57e228(0x1e4)];return!_0x4e46e0||_0x4e46e0['length']===0x0||(_0x4ebebe[_0x57e228(0x2e3)]===_0x57e228(0x22c)&&_0x2d2a9e['xlink:href']&&(_0x2d2a9e[_0x57e228(0x23a)]=_0x2d2a9e[_0x57e228(0x23a)]+_0x256a0f[_0x57e228(0x215)]),Object[_0x57e228(0x2bf)](_0x2d2a9e)['forEach'](function(_0x44623e){var _0x418cf1=_0x57e228,_0x537e35=_0x44623e[0x0],_0x2cea99=_0x44623e[0x1];typeof _0x2cea99=='string'&&(_0x2d2a9e[_0x537e35]=_0x2cea99[_0x418cf1(0x295)](/url\(#(.*)\)/,_0x418cf1(0x1e0)['concat'](_0x256a0f[_0x418cf1(0x215)],')')));})),_0x2d2a9e;}_0x1d94d6(_0x33eac2,_0x374c66(0x19d));function _0x133dbf(_0x4373f6,_0x21e78f){var _0x5ee21c=_0x374c66,_0x20a477,_0xbc5668=_0x21e78f[_0x5ee21c(0x1e4)];return!_0xbc5668||_0xbc5668[_0x5ee21c(0x210)]===0x0?_0x4373f6:_0x4373f6[_0x5ee21c(0x2e3)]===_0x5ee21c(0x1ee)&&(!((_0x20a477=_0x4373f6['children'])===null||_0x20a477===void 0x0)&&_0x20a477[_0x5ee21c(0x210)])?_0x558692(_0x558692({},_0x4373f6),{'children':_0x4373f6[_0x5ee21c(0x1bf)][_0x5ee21c(0x2b2)](function(_0x5bd10b){var _0x2934eb=_0x5ee21c;return typeof _0x5bd10b[_0x2934eb(0x1f9)]['id']==_0x2934eb(0x24b)&&_0xbc5668&&_0xbc5668[_0x2934eb(0x2aa)](_0x5bd10b['attrs']['id'])>-0x1?_0x558692(_0x558692({},_0x5bd10b),{'attrs':_0x558692(_0x558692({},_0x5bd10b['attrs']),{'id':_0x5bd10b[_0x2934eb(0x1f9)]['id']+_0x21e78f['idSuffix']})}):_0x5bd10b;})}):_0x4373f6;}_0x1d94d6(_0x133dbf,_0x374c66(0x1f7));function _0x318dd2(){var _0x586793=_0x374c66;return Math[_0x586793(0x1ea)]()['toString'](0x24)[_0x586793(0x25c)](0x2,0x8);}_0x1d94d6(_0x318dd2,_0x374c66(0x1c4)),_0x246f7f[_0x374c66(0x2c1)]=_0x374c66(0x290);var _0x52edc1={'tag':_0x374c66(0x29e),'attrs':{'fill':_0x374c66(0x2bc),'viewBox':_0x374c66(0x1a4),'width':_0x374c66(0x1d1),'height':_0x374c66(0x1d1)},'children':[{'tag':'path','attrs':{'fill':_0x374c66(0x2ba),'d':_0x374c66(0x2be)}},{'tag':_0x374c66(0x1a5),'attrs':{'fill':_0x374c66(0x2ba),'d':_0x374c66(0x1d4),'fillRule':_0x374c66(0x27b),'clipRule':_0x374c66(0x27b)}}]},_0x3cf18b=_0x279818[_0x374c66(0x255)](function(_0x1993c8,_0xe4b241){var _0x3e0459=_0x374c66;return _0x279818['createElement'](_0x246f7f,Object[_0x3e0459(0x1ef)]({},_0x1993c8,{'id':_0x3e0459(0x2a0),'ref':_0xe4b241,'icon':_0x52edc1}));});_0x3cf18b[_0x374c66(0x2c1)]=_0x374c66(0x1ec);var _0x5b9e34={'tag':_0x374c66(0x29e),'attrs':{'fill':'none','viewBox':_0x374c66(0x1a4),'width':_0x374c66(0x1d1),'height':_0x374c66(0x1d1)},'children':[{'tag':_0x374c66(0x1a5),'attrs':{'fill':_0x374c66(0x2ba),'d':_0x374c66(0x2d8)}}]},_0x8304d7=_0x279818[_0x374c66(0x255)](function(_0x1f7107,_0x50078d){var _0x1a4b23=_0x374c66;return _0x279818['createElement'](_0x246f7f,Object[_0x1a4b23(0x1ef)]({},_0x1f7107,{'id':_0x1a4b23(0x1e7),'ref':_0x50078d,'icon':_0x5b9e34}));});_0x8304d7['displayName']=_0x374c66(0x1ab);var _0x2dd77f={'tag':_0x374c66(0x29e),'attrs':{'fill':_0x374c66(0x2bc),'viewBox':_0x374c66(0x1a4),'width':_0x374c66(0x1d1),'height':'1em'},'children':[{'tag':_0x374c66(0x1a5),'attrs':{'fill':_0x374c66(0x2ba),'d':_0x374c66(0x1f6)}}]},_0x28ee11=_0x279818[_0x374c66(0x255)](function(_0x3ec981,_0x4d0180){var _0x2ee667=_0x374c66;return _0x279818['createElement'](_0x246f7f,Object[_0x2ee667(0x1ef)]({},_0x3ec981,{'id':_0x2ee667(0x2dd),'ref':_0x4d0180,'icon':_0x2dd77f}));});_0x28ee11[_0x374c66(0x2c1)]=_0x374c66(0x2d2);var _0x19ad33={'tag':_0x374c66(0x29e),'attrs':{'fill':_0x374c66(0x2bc),'viewBox':_0x374c66(0x1a4),'width':_0x374c66(0x1d1),'height':_0x374c66(0x1d1)},'children':[{'tag':_0x374c66(0x1a5),'attrs':{'stroke':_0x374c66(0x2ba),'d':_0x374c66(0x200),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}},{'tag':_0x374c66(0x1a5),'attrs':{'stroke':_0x374c66(0x2ba),'d':_0x374c66(0x283),'strokeLinecap':_0x374c66(0x19b),'strokeLinejoin':_0x374c66(0x19b),'strokeWidth':1.2}},{'tag':_0x374c66(0x1a5),'attrs':{'stroke':'currentColor','d':_0x374c66(0x199),'strokeLinecap':'round','strokeWidth':1.2}}]},_0x381e6a=_0x279818[_0x374c66(0x255)](function(_0x20ed10,_0x56d61a){var _0x306e83=_0x374c66;return _0x279818[_0x306e83(0x2d4)](_0x246f7f,Object[_0x306e83(0x1ef)]({},_0x20ed10,{'id':_0x306e83(0x216),'ref':_0x56d61a,'icon':_0x19ad33}));});_0x381e6a[_0x374c66(0x2c1)]=_0x374c66(0x1db);var _0x4154ab={'tag':_0x374c66(0x29e),'attrs':{'fill':_0x374c66(0x2bc),'viewBox':_0x374c66(0x1fd),'width':_0x374c66(0x1d1),'height':_0x374c66(0x1d1)},'children':[{'tag':_0x374c66(0x1a5),'attrs':{'fill':_0x374c66(0x2ba),'d':_0x374c66(0x1f1),'fillRule':_0x374c66(0x27b),'clipRule':'evenodd'}}]},_0x57aee7=_0x279818['forwardRef'](function(_0x9e764,_0x58080d){var _0xf04dfc=_0x374c66;return _0x279818['createElement'](_0x246f7f,Object[_0xf04dfc(0x1ef)]({},_0x9e764,{'id':_0xf04dfc(0x1c0),'ref':_0x58080d,'icon':_0x4154ab}));});_0x57aee7[_0x374c66(0x2c1)]=_0x374c66(0x1d0);var _0x4e8225={'tag':'svg','attrs':{'fill':_0x374c66(0x2bc),'viewBox':_0x374c66(0x1fd),'width':'1em','height':_0x374c66(0x1d1)},'children':[{'tag':'circle','attrs':{'cx':8.73,'cy':8.4,'r':6.4,'stroke':_0x374c66(0x2ba),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x374c66(0x2ba),'d':_0x374c66(0x1fc),'strokeLinecap':'round','strokeLinejoin':_0x374c66(0x19b),'strokeWidth':1.2}}]},_0x387e87=_0x279818[_0x374c66(0x255)](function(_0x4564e7,_0x194818){var _0x468036=_0x374c66;return _0x279818[_0x468036(0x2d4)](_0x246f7f,Object[_0x468036(0x1ef)]({},_0x4564e7,{'id':'solve-single','ref':_0x194818,'icon':_0x4e8225}));});_0x387e87[_0x374c66(0x2c1)]=_0x374c66(0x2de);const _0x54f45c={'threadCommentEditorButtons':_0x374c66(0x2ce),'threadCommentEditorSuggestion':_0x374c66(0x23d),'threadCommentEditorSuggestionActive':_0x374c66(0x1f0),'threadCommentEditorSuggestionIcon':'univer-thread-comment-editor-suggestion-icon'},_0x97c090=_0x1d94d6(_0x5e156d=>{var _0x5d75a5=_0x374c66;const _0x431487=/@\[(.*?)\]\((.*?)\)|(\w+)/g;let _0x8e4855,_0x4d0f86=0x0;const _0xe0cf06=[];for(;(_0x8e4855=_0x431487[_0x5d75a5(0x219)](_0x5e156d))!==null;)_0x8e4855[_0x5d75a5(0x2e1)]>_0x4d0f86&&_0xe0cf06[_0x5d75a5(0x1c9)]({'type':'text','content':_0x5e156d['substring'](_0x4d0f86,_0x8e4855[_0x5d75a5(0x2e1)])}),_0x8e4855[0x1]&&_0x8e4855[0x2]?_0xe0cf06[_0x5d75a5(0x1c9)]({'type':_0x5d75a5(0x1e8),'content':{'label':_0x8e4855[0x1],'id':_0x8e4855[0x2]}}):_0x8e4855[0x3]&&_0xe0cf06[_0x5d75a5(0x1c9)]({'type':_0x5d75a5(0x222),'content':_0x8e4855[0x3]}),_0x4d0f86=_0x431487['lastIndex'];return _0x4d0f86<_0x5e156d[_0x5d75a5(0x210)]&&_0xe0cf06['push']({'type':_0x5d75a5(0x222),'content':_0x5e156d['substring'](_0x4d0f86)}),_0xe0cf06;},_0x374c66(0x272)),_0x5617f4=_0x1d94d6(_0x5bc527=>_0x5bc527[_0x374c66(0x2b2)](_0x4fdf5f=>{var _0x1dd89a=_0x374c66;switch(_0x4fdf5f[_0x1dd89a(0x224)]){case'mention':return'@['+_0x4fdf5f['content']['label']+']('+_0x4fdf5f['content']['id']+')';default:return _0x4fdf5f[_0x1dd89a(0x2b4)];}})[_0x374c66(0x275)](''),_0x374c66(0x26b)),_0x541dbb=_0x1d94d6(_0x1aa50e=>{var _0x3d4662=_0x374c66;const {dataStream:_0xcc207c,customRanges:_0x2d35c3}=_0x1aa50e,_0x3eeeb0=_0xcc207c[_0x3d4662(0x210)]-0x2,_0x107e0c=[];let _0x4c4af3=0x0;return _0x2d35c3==null||_0x2d35c3[_0x3d4662(0x198)](_0xc7a58a=>{var _0x403044=_0x3d4662;_0x4c4af3<_0xc7a58a[_0x403044(0x207)]&&_0x107e0c['push']({'type':_0x403044(0x222),'content':_0xcc207c[_0x403044(0x1b8)](_0x4c4af3,_0xc7a58a[_0x403044(0x207)])}),_0x107e0c['push']({'type':_0x403044(0x1e8),'content':{'label':_0xcc207c[_0x403044(0x1b8)](_0xc7a58a['startIndex'],_0xc7a58a[_0x403044(0x20b)])[_0x403044(0x1b8)](0x1,-0x1),'id':_0xc7a58a['rangeId']}}),_0x4c4af3=_0xc7a58a['endIndex'];}),_0x107e0c[_0x3d4662(0x1c9)]({'type':'text','content':_0xcc207c[_0x3d4662(0x1b8)](_0x4c4af3,_0x3eeeb0)}),_0x107e0c;},'transformDocument2TextNodes'),_0x581f72=_0x1d94d6(_0x3c6224=>{var _0x236e00=_0x374c66;let _0x2a93e7='';const _0x390039=[];return _0x3c6224[_0x236e00(0x198)](_0x3ad77c=>{var _0x136853=_0x236e00;switch(_0x3ad77c[_0x136853(0x224)]){case _0x136853(0x222):_0x2a93e7+=_0x3ad77c[_0x136853(0x2b4)];break;case _0x136853(0x1e8):{const _0x25c65b=_0x2a93e7[_0x136853(0x210)];_0x2a93e7+='\x1f'+_0x3ad77c[_0x136853(0x2b4)][_0x136853(0x2af)]+'\x1e';const _0x5469bb=_0x2a93e7[_0x136853(0x210)];_0x390039['push']({'rangeId':_0x3ad77c[_0x136853(0x2b4)]['id'],'rangeType':_0x47b9d7[_0x136853(0x267)]['MENTION'],'startIndex':_0x25c65b,'endIndex':_0x5469bb});break;}}}),_0x2a93e7+='\x0a\x0d',{'textRuns':[],'paragraphs':[{'startIndex':_0x2a93e7[_0x236e00(0x210)]-0x2,'paragraphStyle':{}}],'sectionBreaks':[{'startIndex':_0x2a93e7[_0x236e00(0x210)]-0x1}],'dataStream':_0x2a93e7,'customRanges':_0x390039};},_0x374c66(0x251)),_0x16e469=_0x1d94d6(_0x1b222f=>({'display':_0x1b222f[_0x374c66(0x2af)],'id':''+_0x1b222f['id'],'raw':_0x1b222f}),_0x374c66(0x2c3)),_0x23f038=_0x1d94d6((_0x45a82a,_0x42b218,_0x189661,_0xca8314,_0x306a1e)=>{var _0x881a74=_0x374c66,_0xae4fbc,_0x3b7a04;const _0x544273=(_0xae4fbc=_0x45a82a[_0x881a74(0x25d)])==null?void 0x0:_0xae4fbc['icon'];return _0x279818['createElement'](_0x881a74(0x291),{'className':_0x54f45c[_0x881a74(0x289)]},_0x544273?_0x279818[_0x881a74(0x2d4)](_0x881a74(0x21d),{'className':_0x54f45c[_0x881a74(0x22e)],'src':_0x544273}):null,_0x279818['createElement']('div',null,(_0x3b7a04=_0x45a82a[_0x881a74(0x28f)])!=null?_0x3b7a04:_0x45a82a['id']));},_0x374c66(0x286)),_0x45ce21=_0x279818[_0x374c66(0x255)]((_0x32db4d,_0x59f3c3)=>{var _0x4e32d0=_0x374c66,_0x1cf8ae,_0x28415e;const {comment:_0x20ce5c,onSave:_0x2adb27,id:_0x2e5eb2,onCancel:_0xca72a5,autoFocus:_0x5040d2,unitId:_0x2d6232,subUnitId:_0x27fd10}=_0x32db4d,_0x355306=_0x47b9d7[_0x4e32d0(0x239)](_0x3335db),_0xdf89ad=_0x47b9d7[_0x4e32d0(0x239)](_0x47b9d7[_0x4e32d0(0x2b1)]),_0x23ae1a=_0x47b9d7[_0x4e32d0(0x239)](_0x47b9d7[_0x4e32d0(0x26a)]),[_0x49c703,_0x15537f]=_0x279818['useState']({..._0x20ce5c}),[_0xbc7866,_0x436a8f]=_0x279818[_0x4e32d0(0x26f)](!0x1),_0x4edec9=_0x279818['useRef'](null),_0x58b6ef=_0x47b9d7['useDependency'](_0x2e8ad3[_0x4e32d0(0x1b7)]),_0x183f96=(_0x1cf8ae=_0x47b9d7[_0x4e32d0(0x239)](_0xbece32['IRenderManagerService'])[_0x4e32d0(0x1b1)](_0x47b9d7['UniverInstanceType'][_0x4e32d0(0x203)]))==null?void 0x0:_0x1cf8ae[_0x4e32d0(0x2c8)](_0x3c2022['DocSelectionRenderService']);_0x279818[_0x4e32d0(0x1f2)](_0x59f3c3,()=>({'reply'(_0xd1dcea){var _0x9b56c2=_0x4e32d0,_0x234963;_0x15537f({..._0x20ce5c,'text':_0xd1dcea,'attachments':[]}),(_0x234963=_0x4edec9[_0x9b56c2(0x2d5)])==null||_0x234963[_0x9b56c2(0x1ff)][_0x9b56c2(0x1d9)]();}}));const _0xfaf15f=_0x1d94d6(()=>{var _0x2c1223=_0x4e32d0,_0x5e453d;_0x49c703[_0x2c1223(0x222)]&&(_0x2adb27==null||_0x2adb27({..._0x49c703,'text':_0x49c703[_0x2c1223(0x222)]}),_0x436a8f(!0x1),_0x15537f({'text':void 0x0}),(_0x5e453d=_0x4edec9[_0x2c1223(0x2d5)])==null||_0x5e453d[_0x2c1223(0x1ff)][_0x2c1223(0x23c)]());},_0x4e32d0(0x278));return _0x279818[_0x4e32d0(0x2d4)]('div',{'className':_0x54f45c[_0x4e32d0(0x234)],'onClick':_0x1d94d6(_0x1d4bb3=>_0x1d4bb3[_0x4e32d0(0x221)](),_0x4e32d0(0x1e1))},_0x279818['createElement'](_0x553326['Mentions'],{'ref':_0x4edec9,'autoFocus':_0x5040d2,'style':{'width':'100%'},'placeholder':_0x23ae1a['t']('threadCommentUI.editor.placeholder'),'value':_0x49c703!=null&&_0x49c703[_0x4e32d0(0x222)]?_0x5617f4(_0x541dbb(_0x49c703[_0x4e32d0(0x222)])):'','onChange':_0x1d94d6(_0x524182=>{var _0x1693c9=_0x4e32d0;_0x524182[_0x1693c9(0x27f)][_0x1693c9(0x242)]||_0x15537f({..._0x20ce5c,'text':void 0x0}),_0x15537f==null||_0x15537f({..._0x20ce5c,'text':_0x581f72(_0x97c090(_0x524182[_0x1693c9(0x27f)][_0x1693c9(0x242)]))});},_0x4e32d0(0x2b7)),'onFocus':_0x1d94d6(()=>{var _0x4388c4=_0x4e32d0;const _0x53a515=_0x58b6ef[_0x4388c4(0x205)]();_0x53a515&&_0x53a515[_0x4388c4(0x20f)]&&(_0x183f96==null||_0x183f96['removeAllRanges']()),_0x183f96==null||_0x183f96[_0x4388c4(0x23c)](),_0x436a8f(!0x0);},_0x4e32d0(0x266))},_0x279818['createElement'](_0x553326['Mention'],{'key':_0x355306[_0x4e32d0(0x258)],'trigger':_0x355306[_0x4e32d0(0x258)],'data':_0x1d94d6((_0x5dff0b,_0x3bf11d)=>_0x355306[_0x4e32d0(0x247)](_0x5dff0b,_0x2d6232,_0x27fd10)['then'](_0xf88ff2=>_0xf88ff2[_0x4e32d0(0x2b2)](_0x16e469))[_0x4e32d0(0x23b)](_0x3bf11d),_0x4e32d0(0x298)),'displayTransform':_0x1d94d6((_0x94e3d,_0x5a1c31)=>'@'+_0x5a1c31+'\x20',_0x4e32d0(0x1f5)),'renderSuggestion':(_0x28415e=_0x355306['renderSuggestion'])!=null?_0x28415e:_0x23f038})),_0xbc7866?_0x279818[_0x4e32d0(0x2d4)](_0x4e32d0(0x291),{'className':_0x54f45c[_0x4e32d0(0x2a9)]},_0x279818[_0x4e32d0(0x2d4)](_0x553326['Button'],{'style':{'marginRight':0xc},'onClick':_0x1d94d6(()=>{var _0x1d0405=_0x4e32d0;_0xca72a5==null||_0xca72a5(),_0x436a8f(!0x1),_0x15537f({'text':void 0x0}),_0xdf89ad[_0x1d0405(0x1ba)](_0x265ed4['id']);},_0x4e32d0(0x1e1))},_0x23ae1a['t'](_0x4e32d0(0x279))),_0x279818[_0x4e32d0(0x2d4)](_0x553326[_0x4e32d0(0x2d7)],{'type':_0x4e32d0(0x2c4),'disabled':!_0x49c703[_0x4e32d0(0x222)],'onClick':_0xfaf15f},_0x23ae1a['t'](_0x2e5eb2?_0x4e32d0(0x2a4):_0x4e32d0(0x29d)))):null);}),_0x34db6c={'threadComment':_0x374c66(0x2a8),'threadCommentActive':_0x374c66(0x2a3),'threadCommentContent':'univer-thread-comment-content','threadCommentHighlight':_0x374c66(0x1cd),'threadCommentIconContainer':'univer-thread-comment-icon-container','threadCommentIcon':'univer-thread-comment-icon','threadCommentTitle':'univer-thread-comment-title','threadCommentTitlePosition':_0x374c66(0x2e0),'threadCommentTitleHighlight':'univer-thread-comment-title-highlight','threadCommentTitlePositionText':'univer-thread-comment-title-position-text','threadCommentUsername':'univer-thread-comment-username','threadCommentItem':'univer-thread-comment-item','threadCommentItemHead':'univer-thread-comment-item-head','threadCommentItemTitle':_0x374c66(0x287),'threadCommentItemTitlePosition':'univer-thread-comment-item-title-position','threadCommentItemTitleHighlight':_0x374c66(0x269),'threadCommentItemTime':_0x374c66(0x1b4),'threadCommentItemContent':'univer-thread-comment-item-content','threadCommentItemAt':_0x374c66(0x25a)},_0x30c121='__mock__',_0x14a124=_0x1d94d6(_0xf0299=>{var _0x121ede=_0x374c66;const {item:_0x3839b8,unitId:_0x501e94,subUnitId:_0x1db021,editing:_0x224999,onEditingChange:_0x3d075f,onReply:_0x1898dc,resolved:_0x175dc3,isRoot:_0x3036d9,onClose:_0x3e611b,onDeleteComment:_0x16b4b2}=_0xf0299,_0xe9dff7=_0x47b9d7[_0x121ede(0x239)](_0x47b9d7[_0x121ede(0x2b1)]),_0x56a54f=_0x47b9d7[_0x121ede(0x239)](_0x47b9d7[_0x121ede(0x26a)]),_0x4de8cd=_0x47b9d7[_0x121ede(0x239)](_0x47b9d7[_0x121ede(0x1ca)]),_0x16ac83=_0x4de8cd[_0x121ede(0x1ae)](_0x3839b8['personId']),_0x1a8727=_0x3b8f1f[_0x121ede(0x25e)](_0x4de8cd[_0x121ede(0x2d6)]),_0x100de2=(_0x1a8727==null?void 0x0:_0x1a8727[_0x121ede(0x204)])===_0x3839b8[_0x121ede(0x264)],_0x27da72=_0x3839b8['id']===_0x30c121,[_0x19542e,_0x17f4fa]=_0x279818[_0x121ede(0x26f)](!0x1),_0x2d44c4=_0x1d94d6(()=>{var _0x2aabdd=_0x121ede;(_0x16b4b2==null?void 0x0:_0x16b4b2(_0x3839b8))!==!0x1&&(_0xe9dff7[_0x2aabdd(0x1ba)](_0x3036d9?_0x3e6ecf[_0x2aabdd(0x1c3)]['id']:_0x3e6ecf[_0x2aabdd(0x297)]['id'],{'unitId':_0x501e94,'subUnitId':_0x1db021,'commentId':_0x3839b8['id']}),_0x3036d9&&(_0x3e611b==null||_0x3e611b()));},_0x121ede(0x27e));return _0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),{'className':_0x34db6c['threadCommentItem'],'onMouseLeave':_0x1d94d6(()=>_0x17f4fa(!0x1),'onMouseLeave'),'onMouseEnter':_0x1d94d6(()=>_0x17f4fa(!0x0),_0x121ede(0x21c))},_0x279818[_0x121ede(0x2d4)](_0x121ede(0x21d),{'className':_0x34db6c['threadCommentItemHead'],'src':_0x16ac83==null?void 0x0:_0x16ac83['avatar']}),_0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),{'className':_0x34db6c[_0x121ede(0x2ad)]},_0x279818[_0x121ede(0x2d4)]('div',{'className':_0x34db6c[_0x121ede(0x27c)]},(_0x16ac83==null?void 0x0:_0x16ac83['name'])||'\x20'),_0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),null,_0x27da72||_0x175dc3?null:_0x19542e?_0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),{'className':_0x34db6c[_0x121ede(0x2ae)],'onClick':_0x1d94d6(()=>_0x1898dc(_0x16ac83),_0x121ede(0x1e1))},_0x279818['createElement'](_0x381e6a,null)):null,_0x100de2&&!_0x27da72&&!_0x175dc3?_0x279818['createElement'](_0x553326[_0x121ede(0x263)],{'overlay':_0x279818['createElement'](_0x553326[_0x121ede(0x227)],null,_0x279818[_0x121ede(0x2d4)](_0x553326[_0x121ede(0x229)],{'key':_0x121ede(0x24e),'onClick':_0x1d94d6(()=>_0x3d075f==null?void 0x0:_0x3d075f(!0x0),'onClick')},_0x56a54f['t'](_0x121ede(0x223))),_0x279818[_0x121ede(0x2d4)](_0x553326[_0x121ede(0x229)],{'key':_0x121ede(0x1ad),'onClick':_0x2d44c4},_0x56a54f['t']('threadCommentUI.item.delete')))},_0x279818['createElement'](_0x121ede(0x291),{'className':_0x34db6c[_0x121ede(0x2ae)]},_0x279818['createElement'](_0x28ee11,null))):null)),_0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),{'className':_0x34db6c[_0x121ede(0x2c0)]},_0x3839b8['dT']),_0x224999?_0x279818[_0x121ede(0x2d4)](_0x45ce21,{'id':_0x3839b8['id'],'comment':_0x3839b8,'onCancel':_0x1d94d6(()=>_0x3d075f==null?void 0x0:_0x3d075f(!0x1),_0x121ede(0x1aa)),'autoFocus':!0x0,'unitId':_0x501e94,'subUnitId':_0x1db021,'onSave':_0x1d94d6(({text:_0x3bee44,attachments:_0x19f2e5})=>{var _0x1d521e=_0x121ede;_0x3d075f==null||_0x3d075f(!0x1),_0xe9dff7[_0x1d521e(0x1ba)](_0x3e6ecf[_0x1d521e(0x2c9)]['id'],{'unitId':_0x501e94,'subUnitId':_0x1db021,'payload':{'commentId':_0x3839b8['id'],'text':_0x3bee44,'attachments':_0x19f2e5}});},_0x121ede(0x1c8))}):_0x279818[_0x121ede(0x2d4)](_0x121ede(0x291),{'className':_0x34db6c[_0x121ede(0x233)]},_0x541dbb(_0x3839b8[_0x121ede(0x222)])[_0x121ede(0x2b2)]((_0xa307a1,_0x8a914a)=>{var _0x1cc454=_0x121ede;switch(_0xa307a1[_0x1cc454(0x224)]){case _0x1cc454(0x1e8):return _0x279818[_0x1cc454(0x2d4)]('a',{'className':_0x34db6c['threadCommentItemAt'],'key':_0x8a914a},'@',_0xa307a1[_0x1cc454(0x2b4)][_0x1cc454(0x2af)],'\x20');default:return _0xa307a1[_0x1cc454(0x2b4)];}})));},_0x374c66(0x2ab)),_0x5e0b16=_0x1d94d6(_0x3fa1dd=>{var _0x417735=_0x374c66,_0x4dd3ea,_0x15b662,_0x3cc911;const {id:_0x1daa3d,unitId:_0x12f006,subUnitId:_0x3d6f9a,refStr:_0xaa58a6,showEdit:showEdit=!0x0,onClick:_0x304a57,showHighlight:_0x56158e,onClose:_0x460dd2,getSubUnitName:_0xc79b34,prefix:_0x3d3fd4,autoFocus:_0x49fe47,onMouseEnter:_0x2d08e5,onMouseLeave:_0x5bcf8c,onAddComment:_0x45398b,onDeleteComment:_0x1a6fac,onResolve:_0x406509}=_0x3fa1dd,_0x319154=_0x47b9d7['useDependency'](_0x3e6ecf[_0x417735(0x1dc)]),[_0xda0c22,_0x2d93a1]=_0x279818[_0x417735(0x26f)](!0x1),[_0x5e9fa6,_0x28cfbb]=_0x279818[_0x417735(0x26f)]('');_0x3b8f1f[_0x417735(0x25e)](_0x319154['commentMap$']);const _0x2fc248=_0x1daa3d?_0x319154[_0x417735(0x2b3)](_0x12f006,_0x3d6f9a,_0x1daa3d):null,_0x1f459c=_0x47b9d7[_0x417735(0x239)](_0x47b9d7[_0x417735(0x2b1)]),_0x203c0c=_0x47b9d7[_0x417735(0x239)](_0x47b9d7[_0x417735(0x1ca)]),_0x31b3d0=_0x2fc248==null?void 0x0:_0x2fc248[_0x417735(0x1f4)][_0x417735(0x22d)],_0x44f4a4=_0x3b8f1f[_0x417735(0x25e)](_0x203c0c['currentUser$']),_0x191a2c=_0x279818['useRef'](null),_0x9c76a2=[..._0x2fc248?[_0x2fc248[_0x417735(0x1f4)]]:[{'id':_0x30c121,'text':{'dataStream':'\x0a\x0d'},'personId':(_0x4dd3ea=_0x44f4a4==null?void 0x0:_0x44f4a4[_0x417735(0x204)])!=null?_0x4dd3ea:'','ref':_0xaa58a6!=null?_0xaa58a6:'','dT':'','unitId':_0x12f006,'subUnitId':_0x3d6f9a,'threadId':''}],...(_0x15b662=_0x2fc248==null?void 0x0:_0x2fc248['children'])!=null?_0x15b662:[]],_0x1733dc=_0x279818[_0x417735(0x21e)](null),_0x20aa6e=_0x1d94d6(_0x2b6e6a=>{var _0x50d740=_0x417735;_0x2b6e6a[_0x50d740(0x231)](),_0x31b3d0?_0x1f459c[_0x50d740(0x1ba)](_0x265ed4['id'],{'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'commentId':_0x1daa3d}):_0x1f459c[_0x50d740(0x1ba)](_0x265ed4['id']),_0x1f459c[_0x50d740(0x1ba)](_0x3e6ecf[_0x50d740(0x1ed)]['id'],{'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'commentId':_0x1daa3d,'resolved':!_0x31b3d0}),_0x406509==null||_0x406509(!_0x31b3d0);},'handleResolve'),_0xeded06=_0x1d94d6(_0x709833=>{var _0x4599fd=_0x417735;_0x709833[_0x4599fd(0x231)](),_0x1f459c[_0x4599fd(0x1ba)](_0x265ed4['id']),!(_0x2fc248!=null&&_0x2fc248['root']&&(_0x1a6fac==null?void 0x0:_0x1a6fac(_0x2fc248[_0x4599fd(0x1f4)]))===!0x1)&&(_0x1f459c[_0x4599fd(0x1ba)](_0x3e6ecf[_0x4599fd(0x1c3)]['id'],{'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'commentId':_0x1daa3d}),_0x460dd2==null||_0x460dd2());},_0x417735(0x228));_0x279818[_0x417735(0x236)](()=>_0x5bcf8c==null?void 0x0:_0x5bcf8c(),[]);const _0x2d5431=_0xc79b34((_0x3cc911=_0x2fc248==null?void 0x0:_0x2fc248[_0x417735(0x1f4)][_0x417735(0x2a6)])!=null?_0x3cc911:_0x3d6f9a),_0x51cb97=showEdit&&!_0x5e9fa6&&!_0x31b3d0,_0x5ef6a5=''+(_0xaa58a6||(_0x2fc248==null?void 0x0:_0x2fc248['root'][_0x417735(0x23e)])||'')+(_0x2d5431?_0x417735(0x1f8):'')+_0x2d5431;return _0x279818[_0x417735(0x2d4)](_0x417735(0x291),{'className':_0x5c7352(_0x34db6c[_0x417735(0x271)],{[_0x34db6c[_0x417735(0x22f)]]:!_0x31b3d0&&(_0x56158e||_0xda0c22||_0x3d3fd4==='cell')}),'onClick':_0x304a57,'id':_0x3d3fd4+'-'+_0x12f006+'-'+_0x3d6f9a+'-'+_0x1daa3d,'onMouseEnter':_0x1d94d6(()=>{_0x2d08e5==null||_0x2d08e5(),_0x2d93a1(!0x0);},_0x417735(0x21c)),'onMouseLeave':_0x1d94d6(()=>{_0x5bcf8c==null||_0x5bcf8c(),_0x2d93a1(!0x1);},'onMouseLeave')},!_0x31b3d0&&_0x56158e?_0x279818['createElement']('div',{'className':_0x34db6c[_0x417735(0x2bd)]}):null,_0x279818[_0x417735(0x2d4)]('div',{'className':_0x34db6c[_0x417735(0x220)]},_0x279818[_0x417735(0x2d4)](_0x417735(0x291),{'className':_0x34db6c[_0x417735(0x249)]},_0x279818[_0x417735(0x2d4)]('div',{'className':_0x34db6c[_0x417735(0x246)]}),_0x279818[_0x417735(0x2d4)](_0x553326[_0x417735(0x1d3)],{'showIfEllipsis':!0x0,'title':_0x5ef6a5},_0x279818[_0x417735(0x2d4)]('div',{'className':_0x34db6c[_0x417735(0x24c)]},_0x5ef6a5))),_0x2fc248?_0x279818[_0x417735(0x2d4)](_0x417735(0x291),{'className':_0x34db6c[_0x417735(0x277)]},_0x279818[_0x417735(0x2d4)](_0x417735(0x291),{'onClick':_0x20aa6e,'className':_0x34db6c[_0x417735(0x2ae)],'style':{'color':_0x31b3d0?_0x417735(0x1e9):''}},_0x31b3d0?_0x279818['createElement'](_0x57aee7,null):_0x279818[_0x417735(0x2d4)](_0x387e87,null)),(_0x44f4a4==null?void 0x0:_0x44f4a4['userID'])===_0x2fc248['root']['personId']?_0x279818[_0x417735(0x2d4)](_0x417735(0x291),{'className':_0x34db6c[_0x417735(0x2ae)],'onClick':_0xeded06},_0x279818[_0x417735(0x2d4)](_0x3cf18b,null)):null):null),_0x279818[_0x417735(0x2d4)]('div',{'className':_0x34db6c['threadCommentContent'],'ref':_0x1733dc},_0x9c76a2['map'](_0x3b2997=>_0x279818[_0x417735(0x2d4)](_0x14a124,{'onClose':_0x460dd2,'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'item':_0x3b2997,'key':_0x3b2997['id'],'isRoot':_0x3b2997['id']===(_0x2fc248==null?void 0x0:_0x2fc248['root']['id']),'editing':_0x5e9fa6===_0x3b2997['id'],'resolved':_0x2fc248==null?void 0x0:_0x2fc248['root']['resolved'],'onEditingChange':_0x1d94d6(_0x109fbb=>{_0x28cfbb(_0x109fbb?_0x3b2997['id']:'');},_0x417735(0x1a0)),'onReply':_0x1d94d6(_0x4d8041=>{_0x4d8041&&requestAnimationFrame(()=>{var _0x57b259=_0x2bf7,_0x19d74c;(_0x19d74c=_0x191a2c[_0x57b259(0x2d5)])==null||_0x19d74c[_0x57b259(0x19a)](_0x581f72([{'type':'mention','content':{'id':_0x4d8041[_0x57b259(0x204)],'label':_0x4d8041[_0x57b259(0x26c)]}}]));});},'onReply'),'onAddComment':_0x45398b,'onDeleteComment':_0x1a6fac}))),_0x51cb97?_0x279818['createElement'](_0x417735(0x291),null,_0x279818[_0x417735(0x2d4)](_0x45ce21,{'key':''+_0x49fe47,'ref':_0x191a2c,'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'onSave':_0x1d94d6(async({text:_0x1e6c8a,attachments:_0x334bd0})=>{var _0x2804fd=_0x417735;const _0x800c90={'text':_0x1e6c8a,'attachments':_0x334bd0,'dT':_0x454632(),'id':_0x47b9d7[_0x2804fd(0x19f)](),'ref':_0xaa58a6,'personId':_0x44f4a4==null?void 0x0:_0x44f4a4['userID'],'parentId':_0x2fc248==null?void 0x0:_0x2fc248['root']['id'],'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'threadId':_0x2fc248==null?void 0x0:_0x2fc248['root']['threadId']};(_0x45398b==null?void 0x0:_0x45398b(_0x800c90))!==!0x1&&(await _0x1f459c['executeCommand'](_0x3e6ecf[_0x2804fd(0x202)]['id'],{'unitId':_0x12f006,'subUnitId':_0x3d6f9a,'comment':_0x800c90}),_0x1733dc['current']&&(_0x1733dc['current']['scrollTop']=_0x1733dc[_0x2804fd(0x2d5)]['scrollHeight']));},_0x417735(0x1c8)),'autoFocus':_0x49fe47||!_0x2fc248,'onCancel':_0x1d94d6(()=>{_0x2fc248||_0x460dd2==null||_0x460dd2();},'onCancel')})):null);},'ThreadCommentTree'),_0x24d2a0={'threadCommentPanel':_0x374c66(0x225),'threadComment':_0x374c66(0x2a8),'threadCommentPanelForms':_0x374c66(0x1c5),'select':_0x374c66(0x20a),'threadCommentPanelEmpty':'univer-thread-comment-panel-empty','threadCommentPanelAdd':_0x374c66(0x1f3),'threadCommentPanelSolved':'univer-thread-comment-panel-solved'},_0x3e30ea=_0x1d94d6(_0x36fd72=>{var _0x3f27e9=_0x374c66;const {unitId:_0x3e8887,subUnitId$:_0x28de33,type:_0x5a14b3,onAdd:_0x3c2467,getSubUnitName:_0xbcd5f7,onResolve:_0x1ce492,sortComments:_0x17edf5,onItemLeave:_0xaaa8d8,onItemEnter:_0x5dada0,disableAdd:_0x4831ea,tempComment:_0x3d9746,onAddComment:_0x33f76c,onDeleteComment:_0x5e2ab9,showComments:_0x435ca3}=_0x36fd72,[_0x4be8d5,_0x574b18]=_0x279818[_0x3f27e9(0x26f)](_0x3f27e9(0x1a8)),[_0x55b6c3,_0x5c35d3]=_0x279818[_0x3f27e9(0x26f)](_0x3f27e9(0x1a8)),_0x79ffb1=_0x47b9d7[_0x3f27e9(0x239)](_0x47b9d7[_0x3f27e9(0x26a)]),_0xe2e38=_0x47b9d7[_0x3f27e9(0x239)](_0x47b9d7[_0x3f27e9(0x1ca)]),_0x4880f9=_0x47b9d7[_0x3f27e9(0x239)](_0x3e6ecf['ThreadCommentModel']),[_0x55c519,_0x3dec1e]=_0x279818[_0x3f27e9(0x26f)](()=>_0x4880f9[_0x3f27e9(0x28b)](_0x3e8887)),_0x23d70e=_0x47b9d7['useDependency'](_0x13a078['ThreadCommentPanelService']),_0x43af5f=_0x3b8f1f[_0x3f27e9(0x25e)](_0x23d70e[_0x3f27e9(0x2b0)]),_0x17be4f=_0x3b8f1f['useObservable'](_0x4880f9[_0x3f27e9(0x280)]),_0x1f6913=_0x47b9d7[_0x3f27e9(0x239)](_0x47b9d7[_0x3f27e9(0x2b1)]),_0x53ccf0=_0x3b8f1f['useObservable'](_0x28de33),_0x225f3c=_0x279818[_0x3f27e9(0x21e)](!0x0),_0x137d0e='panel',_0x29dbe1=_0x3b8f1f[_0x3f27e9(0x25e)](_0xe2e38[_0x3f27e9(0x2d6)]),_0x6cfe2d=_0x279818[_0x3f27e9(0x1c1)](()=>{var _0x246144=_0x3f27e9,_0x477596,_0x4f085f;const _0x4f6a58=(_0x4be8d5===_0x246144(0x1a8)?_0x55c519[_0x246144(0x2b2)](_0x5b39aa=>_0x5b39aa[0x1])[_0x246144(0x218)]():(_0x4f085f=(_0x477596=_0x55c519[_0x246144(0x22b)](_0x4d21af=>_0x4d21af[0x0]===_0x53ccf0))==null?void 0x0:_0x477596[0x1])!=null?_0x4f085f:[])[_0x246144(0x1d6)](_0x47ca78=>!_0x47ca78[_0x246144(0x273)]),_0x30e172=_0x17edf5!=null?_0x17edf5:_0x55b7d4=>_0x55b7d4,_0x100578=_0x4f6a58;if(_0x435ca3){const _0x5862b0=new Map();return _0x100578['forEach'](_0x385b54=>{var _0x5397e0=_0x246144;_0x5862b0[_0x5397e0(0x248)](_0x385b54['id'],_0x385b54);}),[..._0x435ca3,''][_0x246144(0x2b2)](_0x4bd319=>_0x5862b0[_0x246144(0x1be)](_0x4bd319))['filter'](Boolean);}else return _0x30e172(_0x100578);},[_0x435ca3,_0x4be8d5,_0x55c519,_0x17edf5,_0x53ccf0]),_0x4740f9=_0x279818['useMemo'](()=>[..._0x6cfe2d[_0x3f27e9(0x1d6)](_0x1c50b3=>!_0x1c50b3['resolved']),..._0x6cfe2d[_0x3f27e9(0x1d6)](_0x5b0e97=>_0x5b0e97['resolved'])],[_0x6cfe2d]),_0x85e50d=_0x279818[_0x3f27e9(0x1c1)](()=>_0x55b6c3===_0x3f27e9(0x22d)?_0x4740f9[_0x3f27e9(0x1d6)](_0x174470=>_0x174470['resolved']):_0x55b6c3==='unsolved'?_0x4740f9[_0x3f27e9(0x1d6)](_0x4dba99=>!_0x4dba99[_0x3f27e9(0x22d)]):_0x55b6c3===_0x3f27e9(0x238)&&_0x29dbe1!=null&&_0x29dbe1[_0x3f27e9(0x204)]?_0x4740f9['map'](_0x4da53b=>_0x4880f9[_0x3f27e9(0x2b3)](_0x4da53b[_0x3f27e9(0x21b)],_0x4da53b[_0x3f27e9(0x2a6)],_0x4da53b['id']))['map'](_0x1df02c=>_0x1df02c!=null&&_0x1df02c['relativeUsers'][_0x3f27e9(0x257)](_0x29dbe1[_0x3f27e9(0x204)])?_0x1df02c[_0x3f27e9(0x1f4)]:null)[_0x3f27e9(0x1d6)](Boolean):_0x4740f9,[_0x4740f9,_0x29dbe1==null?void 0x0:_0x29dbe1[_0x3f27e9(0x204)],_0x55b6c3,_0x4880f9]),_0x4ddb63=_0x3d9746?[_0x3d9746,..._0x85e50d]:_0x85e50d,_0x71f410=_0x4ddb63[_0x3f27e9(0x1d6)](_0x5b2e93=>!_0x5b2e93[_0x3f27e9(0x22d)]),_0x28b154=_0x4ddb63[_0x3f27e9(0x1d6)](_0x173af9=>_0x173af9['resolved']),_0x255292=_0x55b6c3!==_0x3f27e9(0x1a8)||_0x4be8d5!=='all',_0x340869=_0x1d94d6(()=>{var _0x1aa6d8=_0x3f27e9;_0x5c35d3('all'),_0x574b18(_0x1aa6d8(0x1a8));},_0x3f27e9(0x245));_0x279818[_0x3f27e9(0x236)](()=>{var _0x5cae56=_0x3f27e9;_0x3e8887&&_0x3dec1e(_0x4880f9[_0x5cae56(0x28b)](_0x3e8887));},[_0x3e8887,_0x4880f9,_0x17be4f]),_0x279818[_0x3f27e9(0x236)](()=>{var _0x33e3fe=_0x3f27e9,_0xd4ec0e;if(!_0x43af5f)return;if(!_0x225f3c['current']){_0x225f3c[_0x33e3fe(0x2d5)]=!0x0;return;}const {unitId:_0xc3b7b2,subUnitId:_0x24403a,commentId:_0x336246}=_0x43af5f,_0x47cba4=_0x137d0e+'-'+_0xc3b7b2+'-'+_0x24403a+'-'+_0x336246;(_0xd4ec0e=document[_0x33e3fe(0x22a)](_0x47cba4))==null||_0xd4ec0e[_0x33e3fe(0x1c2)]({'block':_0x33e3fe(0x27a)});},[_0x43af5f]);const _0x3782f0=_0x1d94d6(_0x541c0d=>_0x279818['createElement'](_0x5e0b16,{'prefix':_0x137d0e,'getSubUnitName':_0xbcd5f7,'key':_0x541c0d['id'],'id':_0x541c0d['id'],'unitId':_0x541c0d[_0x3f27e9(0x21b)],'subUnitId':_0x541c0d[_0x3f27e9(0x2a6)],'refStr':_0x541c0d['ref'],'type':_0x5a14b3,'showEdit':(_0x43af5f==null?void 0x0:_0x43af5f['commentId'])===_0x541c0d['id'],'showHighlight':(_0x43af5f==null?void 0x0:_0x43af5f['commentId'])===_0x541c0d['id'],'onClick':_0x1d94d6(()=>{var _0x4f2435=_0x3f27e9;_0x225f3c[_0x4f2435(0x2d5)]=!0x1,_0x541c0d['resolved']?_0x1f6913[_0x4f2435(0x1ba)](_0x265ed4['id']):_0x1f6913['executeCommand'](_0x265ed4['id'],{'unitId':_0x541c0d['unitId'],'subUnitId':_0x541c0d['subUnitId'],'commentId':_0x541c0d['id'],'temp':!0x1});},_0x3f27e9(0x1e1)),'onMouseEnter':_0x1d94d6(()=>_0x5dada0==null?void 0x0:_0x5dada0(_0x541c0d),_0x3f27e9(0x21c)),'onMouseLeave':_0x1d94d6(()=>_0xaaa8d8==null?void 0x0:_0xaaa8d8(_0x541c0d),'onMouseLeave'),'onAddComment':_0x33f76c,'onDeleteComment':_0x5e2ab9,'onResolve':_0x1d94d6(_0x362731=>_0x1ce492==null?void 0x0:_0x1ce492(_0x541c0d['id'],_0x362731),'onResolve')}),'renderComment');return _0x279818[_0x3f27e9(0x2d4)](_0x3f27e9(0x291),{'className':_0x24d2a0[_0x3f27e9(0x1b5)]},_0x279818[_0x3f27e9(0x2d4)](_0x3f27e9(0x291),{'className':_0x24d2a0[_0x3f27e9(0x1d2)]},_0x5a14b3===_0x47b9d7[_0x3f27e9(0x24f)][_0x3f27e9(0x1a6)]?_0x279818[_0x3f27e9(0x2d4)](_0x553326[_0x3f27e9(0x299)],{'borderless':!0x0,'value':_0x4be8d5,'onChange':_0x1d94d6(_0x2e0237=>_0x574b18(_0x2e0237),_0x3f27e9(0x2b7)),'options':[{'value':_0x3f27e9(0x2d5),'label':_0x79ffb1['t'](_0x3f27e9(0x2d3))},{'value':_0x3f27e9(0x1a8),'label':_0x79ffb1['t'](_0x3f27e9(0x237))}]}):null,_0x279818[_0x3f27e9(0x2d4)](_0x553326['Select'],{'borderless':!0x0,'value':_0x55b6c3,'onChange':_0x1d94d6(_0x579460=>_0x5c35d3(_0x579460),'onChange'),'options':[{'value':_0x3f27e9(0x1a8),'label':_0x79ffb1['t']('threadCommentUI.filter.status.all')},{'value':_0x3f27e9(0x22d),'label':_0x79ffb1['t']('threadCommentUI.filter.status.resolved')},{'value':_0x3f27e9(0x253),'label':_0x79ffb1['t'](_0x3f27e9(0x25f))},{'value':_0x3f27e9(0x238),'label':_0x79ffb1['t']('threadCommentUI.filter.status.concernMe')}]})),_0x71f410[_0x3f27e9(0x2b2)](_0x3782f0),_0x28b154['length']?_0x279818[_0x3f27e9(0x2d4)](_0x3f27e9(0x291),{'className':_0x24d2a0['threadCommentPanelSolved']},_0x3f27e9(0x2b5)):null,_0x28b154['map'](_0x3782f0),_0x4ddb63['length']?null:_0x279818[_0x3f27e9(0x2d4)](_0x3f27e9(0x291),{'className':_0x24d2a0['threadCommentPanelEmpty']},_0x255292?_0x79ffb1['t'](_0x3f27e9(0x1ac)):_0x79ffb1['t'](_0x3f27e9(0x211)),_0x255292?_0x279818['createElement'](_0x553326[_0x3f27e9(0x2d7)],{'onClick':_0x340869,'type':_0x3f27e9(0x294)},_0x79ffb1['t'](_0x3f27e9(0x26e))):_0x279818[_0x3f27e9(0x2d4)](_0x553326['Button'],{'id':_0x3f27e9(0x1de),'className':_0x24d2a0['threadCommentPanelAdd'],'type':_0x3f27e9(0x2c4),'onClick':_0x3c2467,'disabled':_0x4831ea},_0x279818['createElement'](_0x8304d7,null),_0x79ffb1['t'](_0x3f27e9(0x262)))));},_0x374c66(0x2b8));_0x13a078[_0x374c66(0x1cf)]=_0x3335db,_0x13a078[_0x374c66(0x1eb)]=_0x265ed4,_0x13a078['THREAD_COMMENT_PANEL']=_0x266418,_0x13a078[_0x374c66(0x2b8)]=_0x3e30ea,_0x13a078[_0x374c66(0x226)]=_0x5e0b16,_0x13a078[_0x374c66(0x1b0)]=_0x18968b,_0x13a078[_0x374c66(0x2d0)]=_0x454632,Object[_0x374c66(0x1dd)](_0x13a078,Symbol[_0x374c66(0x1bb)],{'value':_0x374c66(0x1b6)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/thread-comment-ui",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0-nightly.202410101606",
4
4
  "private": false,
5
5
  "description": "Univer common thread comment UI plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -49,26 +49,26 @@
49
49
  "dayjs": ">=1.11.0",
50
50
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
51
51
  "rxjs": ">=7.0.0",
52
- "@univerjs/core": "0.3.0-alpha.1",
53
- "@univerjs/design": "0.3.0-alpha.1",
54
- "@univerjs/docs": "0.3.0-alpha.1",
55
- "@univerjs/docs-ui": "0.3.0-alpha.1",
56
- "@univerjs/engine-render": "0.3.0-alpha.1",
57
- "@univerjs/thread-comment": "0.3.0-alpha.1",
58
- "@univerjs/ui": "0.3.0-alpha.1"
52
+ "@univerjs/core": "0.3.0-nightly.202410101606",
53
+ "@univerjs/design": "0.3.0-nightly.202410101606",
54
+ "@univerjs/docs": "0.3.0-nightly.202410101606",
55
+ "@univerjs/docs-ui": "0.3.0-nightly.202410101606",
56
+ "@univerjs/engine-render": "0.3.0-nightly.202410101606",
57
+ "@univerjs/thread-comment": "0.3.0-nightly.202410101606",
58
+ "@univerjs/ui": "0.3.0-nightly.202410101606"
59
59
  },
60
60
  "dependencies": {
61
61
  "@univerjs/icons": "^0.1.78",
62
62
  "@univerjs/protocol": "0.1.39-alpha.15",
63
63
  "clsx": "^2.1.1",
64
64
  "dayjs": "^1.11.13",
65
- "@univerjs/core": "0.3.0-alpha.1",
66
- "@univerjs/design": "0.3.0-alpha.1",
67
- "@univerjs/docs-ui": "0.3.0-alpha.1",
68
- "@univerjs/docs": "0.3.0-alpha.1",
69
- "@univerjs/engine-render": "0.3.0-alpha.1",
70
- "@univerjs/thread-comment": "0.3.0-alpha.1",
71
- "@univerjs/ui": "0.3.0-alpha.1"
65
+ "@univerjs/core": "0.3.0-nightly.202410101606",
66
+ "@univerjs/design": "0.3.0-nightly.202410101606",
67
+ "@univerjs/docs-ui": "0.3.0-nightly.202410101606",
68
+ "@univerjs/engine-render": "0.3.0-nightly.202410101606",
69
+ "@univerjs/docs": "0.3.0-nightly.202410101606",
70
+ "@univerjs/thread-comment": "0.3.0-nightly.202410101606",
71
+ "@univerjs/ui": "0.3.0-nightly.202410101606"
72
72
  },
73
73
  "devDependencies": {
74
74
  "less": "^4.2.0",
@@ -77,7 +77,7 @@
77
77
  "typescript": "^5.6.2",
78
78
  "vite": "^5.4.8",
79
79
  "vitest": "^2.1.1",
80
- "@univerjs-infra/shared": "0.3.0-alpha.1"
80
+ "@univerjs-infra/shared": "0.3.0"
81
81
  },
82
82
  "univerSpace": {
83
83
  ".": {
@@ -98,7 +98,6 @@
98
98
  "test:watch": "vitest",
99
99
  "coverage": "vitest run --coverage",
100
100
  "lint:types": "tsc --noEmit",
101
- "build": "tsc && vite build",
102
- "sync:cnpm": "cnpm sync"
101
+ "build": "tsc && vite build"
103
102
  }
104
103
  }
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS