@univerjs/docs-hyper-link-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.
@@ -1,5 +1,5 @@
1
- import { Disposable, ICommandService, Injector } from '@univerjs/core';
2
1
  import { MenuConfig, ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
2
+ import { Disposable, ICommandService } from '@univerjs/core';
3
3
  export interface IDocHyperLinkUIConfig {
4
4
  menu: MenuConfig;
5
5
  }
@@ -7,9 +7,8 @@ export declare class DocHyperLinkUIController extends Disposable {
7
7
  private readonly _componentManager;
8
8
  private readonly _commandService;
9
9
  private readonly _menuManagerService;
10
- private readonly _injector;
11
10
  private readonly _shortcutService;
12
- constructor(_componentManager: ComponentManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _injector: Injector, _shortcutService: IShortcutService);
11
+ constructor(_componentManager: ComponentManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService);
13
12
  private _initComponents;
14
13
  private _initCommands;
15
14
  private _initShortcut;
@@ -1,6 +1,6 @@
1
+ import { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';
1
2
  import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
3
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';
4
4
  export declare class UniverDocsHyperLinkUIPlugin extends Plugin {
5
5
  private readonly _config;
6
6
  protected _injector: Injector;
@@ -10,6 +10,7 @@ export declare class UniverDocsHyperLinkUIPlugin extends Plugin {
10
10
  static type: UniverInstanceType;
11
11
  constructor(_config: Partial<IUniverDocsHyperLinkUIConfig> | undefined, _injector: Injector, _renderManagerSrv: IRenderManagerService, _configService: IConfigService);
12
12
  onStarting(): void;
13
+ onReady(): void;
13
14
  onRendered(): void;
14
15
  private _initRenderModule;
15
16
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@univerjs/core"),require("@univerjs/docs-hyper-link"),require("@univerjs/engine-render"),require("@univerjs/docs"),require("@univerjs/docs-ui"),require("rxjs"),require("@univerjs/design"),require("@univerjs/ui"),require("react"),require("clsx")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/docs-hyper-link","@univerjs/engine-render","@univerjs/docs","@univerjs/docs-ui","rxjs","@univerjs/design","@univerjs/ui","react","clsx"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global.UniverDocsHyperLinkUi={},global.UniverCore,global.UniverDocsHyperLink,global.UniverEngineRender,global.UniverDocs,global.UniverDocsUi,global.rxjs,global.UniverDesign,global.UniverUi,global.React,global.clsx))})(this,function(exports2,core,docsHyperLink,engineRender,docs,docsUi,rxjs,design,ui,React,cs){"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,_c,_d,_e,_f;const PLUGIN_CONFIG_KEY="docs-hyper-link-ui.config",defaultPluginConfig={},AddDocHyperLinkCommand={type:core.CommandType.COMMAND,id:"docs.command.add-hyper-link",async handler(accessor,params){if(!params)return!1;const{payload,unitId,selection}=params,commandService=accessor.get(core.ICommandService),id=core.generateRandomId(),doMutation=docsUi.addCustomRangeBySelectionFactory(accessor,{rangeId:id,rangeType:core.CustomRangeType.HYPERLINK,properties:{url:payload},unitId,selection});return doMutation?commandService.syncExecuteCommand(doMutation.id,doMutation.params):!1}},UpdateDocHyperLinkCommand={id:"docs.command.update-hyper-link",type:core.CommandType.COMMAND,handler(accessor,params){var _a2;if(!params)return!1;const{unitId,payload,segmentId}=params,commandService=accessor.get(core.ICommandService),univerInstanceService=accessor.get(core.IUniverInstanceService),currentSelection=accessor.get(docs.DocSelectionManagerService).getActiveTextRange(),doc=univerInstanceService.getUnit(unitId,core.UniverInstanceType.UNIVER_DOC);if(!currentSelection||!doc)return!1;const newId=core.generateRandomId(),textRun=(_a2=core.getBodySlice(doc.getSelfOrHeaderFooterModel(segmentId).getBody(),currentSelection.startOffset,currentSelection.endOffset).textRuns)==null?void 0:_a2[0];textRun&&(textRun.ed=params.label.length+1);const replaceSelection=docsUi.replaceSelectionFactory(accessor,{unitId,body:{dataStream:`${core.DataStreamTreeTokenType.CUSTOM_RANGE_START}${params.label}${core.DataStreamTreeTokenType.CUSTOM_RANGE_END}`,customRanges:[{rangeId:newId,rangeType:core.CustomRangeType.HYPERLINK,startIndex:0,endIndex:params.label.length+1,properties:{url:payload}}],textRuns:textRun?[textRun]:void 0},selection:{startOffset:currentSelection.startOffset,endOffset:currentSelection.endOffset,collapsed:!1,segmentId}});return replaceSelection?commandService.syncExecuteCommand(replaceSelection.id,replaceSelection.params):!1}},styles$1={docsLinkEdit:"univer-docs-link-edit",docsLinkEditTitle:"univer-docs-link-edit-title",docsLinkEditClose:"univer-docs-link-edit-close",docsLinkEditButtons:"univer-docs-link-edit-buttons",docsLinkEditButton:"univer-docs-link-edit-button"};function hasProtocol(urlString){return/^[a-zA-Z]+:\/\//.test(urlString)}__name(hasProtocol,"hasProtocol");function isEmail(url){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(url)}__name(isEmail,"isEmail");function transformUrl(urlStr){return hasProtocol(urlStr)?urlStr:isEmail(urlStr)?`mailto://${urlStr}`:`https://${urlStr}`}__name(transformUrl,"transformUrl");const DocHyperLinkEdit=__name(()=>{var _a2;const hyperLinkService=core.useDependency(DocHyperLinkPopupService),localeService=core.useDependency(core.LocaleService),editing=core.useObservable(hyperLinkService.editingLink$),commandService=core.useDependency(core.ICommandService),univerInstanceService=core.useDependency(core.IUniverInstanceService),renderManagerService=core.useDependency(engineRender.IRenderManagerService),docSelectionManagerService=core.useDependency(docs.DocSelectionManagerService),[link,setLink]=React.useState(""),[label,setLabel]=React.useState(""),[showError,setShowError]=React.useState(!1),isLegal=core.Tools.isLegalUrl(link),doc=editing?univerInstanceService.getUnit(editing.unitId,core.UniverInstanceType.UNIVER_DOC):univerInstanceService.getCurrentUnitForType(core.UniverInstanceType.UNIVER_DOC),docSelectionRenderService=(_a2=renderManagerService.getRenderById(doc.getUnitId()))==null?void 0:_a2.with(docsUi.DocSelectionRenderService);React.useEffect(()=>{var _a3,_b2,_c2,_d2,_e2,_f2,_g,_h,_i;const activeRange=docSelectionManagerService.getActiveTextRange();if(!activeRange)return;if(editing){const body=(_a3=doc==null?void 0:doc.getSelfOrHeaderFooterModel(editing.segmentId))==null?void 0:_a3.getBody(),matchedRange2=(_b2=body==null?void 0:body.customRanges)==null?void 0:_b2.find(i=>(editing==null?void 0:editing.linkId)===i.rangeId);doc&&matchedRange2&&(setLink((_d2=(_c2=matchedRange2.properties)==null?void 0:_c2.url)!=null?_d2:""),setLabel(core.BuildTextUtils.transform.getPlainText(core.getBodySlice(body,matchedRange2.startIndex,matchedRange2.endIndex).dataStream)));return}const matchedRange=(_g=(_f2=(_e2=doc==null?void 0:doc.getSelfOrHeaderFooterModel(activeRange.segmentId))==null?void 0:_e2.getBody())==null?void 0:_f2.customRanges)==null?void 0:_g.find(i=>Math.max(activeRange.startOffset,i.startIndex)<=Math.min(activeRange.endOffset-1,i.endIndex));doc&&matchedRange&&setLink((_i=(_h=matchedRange==null?void 0:matchedRange.properties)==null?void 0:_h.url)!=null?_i:"")},[doc,editing,docSelectionManagerService,univerInstanceService]),React.useEffect(()=>(docSelectionRenderService&&docSelectionRenderService.blurEditor(),()=>{docSelectionRenderService&&docSelectionRenderService.focusEditor()}),[docSelectionRenderService]);const handleCancel=__name(()=>{hyperLinkService.hideEditPopup()},"handleCancel"),handleConfirm=__name(()=>{if(setShowError(!0),!isLegal||!doc)return;const linkFinal=transformUrl(link);if(!editing)commandService.executeCommand(AddDocHyperLinkCommand.id,{unitId:doc.getUnitId(),payload:linkFinal});else{if(!label)return;commandService.executeCommand(UpdateDocHyperLinkCommand.id,{unitId:doc.getUnitId(),payload:linkFinal,linkId:editing.linkId,label,segmentId:editing.segmentId})}hyperLinkService.hideEditPopup()},"handleConfirm");if(doc)return React.createElement("div",{className:styles$1.docsLinkEdit},React.createElement("div",null,editing?React.createElement(design.FormLayout,{label:localeService.t("docLink.edit.label"),error:showError&&!label?localeService.t("docLink.edit.labelError"):""},React.createElement(design.Input,{value:label,onChange:setLabel,autoFocus:!0,onKeyDown:__name(evt=>{evt.keyCode===ui.KeyCode.ENTER&&handleConfirm()},"onKeyDown")})):null,React.createElement(design.FormLayout,{label:localeService.t("docLink.edit.address"),error:showError&&!isLegal?localeService.t("docLink.edit.addressError"):""},React.createElement(design.Input,{value:link,onChange:setLink,autoFocus:!0,onKeyDown:__name(evt=>{evt.keyCode===ui.KeyCode.ENTER&&handleConfirm()},"onKeyDown")}))),React.createElement("div",{className:styles$1.docsLinkEditButtons},React.createElement(design.Button,{className:styles$1.docsLinkEditButton,onClick:handleCancel},localeService.t("docLink.edit.cancel")),React.createElement(design.Button,{disabled:!link,className:styles$1.docsLinkEditButton,type:"primary",onClick:handleConfirm},localeService.t("docLink.edit.confirm"))))},"DocHyperLinkEdit");DocHyperLinkEdit.componentKey="docs-hyper-link-edit";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$3={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.1302 12.4251C4.25802 13.7417 5.36779 14.7708 6.71792 14.7708H11.7179C13.1539 14.7708 14.3179 13.6067 14.3179 12.1708V6.1708C14.3179 4.78586 13.2351 3.65383 11.8698 3.57517C11.742 2.25858 10.6323 1.22949 9.28213 1.22949H4.28213C2.84619 1.22949 1.68213 2.39355 1.68213 3.82949V9.82949C1.68213 11.2144 2.76497 12.3465 4.1302 12.4251ZM10.6583 3.5708H6.71792C5.28198 3.5708 4.11792 4.73486 4.11792 6.1708V11.22C3.4221 11.1387 2.88213 10.5471 2.88213 9.82949V3.82949C2.88213 3.05629 3.50893 2.42949 4.28213 2.42949H9.28213C9.96695 2.42949 10.5369 2.92119 10.6583 3.5708ZM13.1179 6.1708C13.1179 5.3976 12.4911 4.7708 11.7179 4.7708H6.71792C5.94472 4.7708 5.31792 5.3976 5.31792 6.1708V12.1708C5.31792 12.944 5.94472 13.5708 6.71792 13.5708H11.7179C12.4911 13.5708 13.1179 12.944 13.1179 12.1708V6.1708Z",fillRule:"evenodd",clipRule:"evenodd"}}]},CopySingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"copy-single",ref,icon:element$3}))});CopySingle.displayName="CopySingle";var element$2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.9564 2.91332C4.91407 1.87102 3.22413 1.87101 2.18182 2.91333L2.18182 2.91333C1.13953 3.95567 1.13952 5.6456 2.18182 6.68791L8.27777 12.7838C9.72408 14.2302 12.069 14.2302 13.5154 12.7839L13.0911 12.3596L13.5154 12.7839C14.9617 11.3375 14.9617 8.99257 13.5154 7.54626L8.39476 2.42566C8.16044 2.19134 7.78054 2.19134 7.54623 2.42566C7.31191 2.65997 7.31191 3.03987 7.54623 3.27419L12.6668 8.39479L13.0911 7.97052L12.6668 8.39479C13.6445 9.37247 13.6445 10.9576 12.6668 11.9353L13.0399 12.3084L12.6668 11.9353C11.6891 12.913 10.104 12.913 9.1263 11.9353L3.03035 5.83938C2.45668 5.26571 2.45667 4.33556 3.03036 3.76184C3.60403 3.18818 4.53416 3.18817 5.10788 3.76185C5.10788 3.76186 5.10788 3.76186 5.10789 3.76186L11.2038 9.8578L11.601 9.46061L11.2038 9.8578C11.3735 10.0275 11.3735 10.3026 11.2038 10.4723L11.2038 10.4723C11.0341 10.642 10.759 10.642 10.5893 10.4723L5.46874 5.35171C5.23442 5.1174 4.85452 5.1174 4.62021 5.35171C4.38589 5.58602 4.38589 5.96592 4.62021 6.20024L9.74078 11.3208C10.3791 11.9591 11.414 11.9591 12.0523 11.3208C12.0523 11.3208 12.0523 11.3208 12.0523 11.3208M12.0523 11.3208C12.6907 10.6825 12.6906 9.64757 12.0523 9.00927L5.95641 2.91333L5.9564 2.91332",fillRule:"evenodd",clipRule:"evenodd"}}]},LinkSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"link-single",ref,icon:element$2}))});LinkSingle.displayName="LinkSingle";var element$1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z"}}]},UnlinkSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"unlink-single",ref,icon:element$1}))});UnlinkSingle.displayName="UnlinkSingle";var element={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z"}}]},WriteSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"write-single",ref,icon:element}))});WriteSingle.displayName="WriteSingle";const DeleteDocHyperLinkCommand={type:core.CommandType.COMMAND,id:"docs.command.delete-hyper-link",async handler(accessor,params){if(!params)return!1;const{unitId,linkId,segmentId}=params,commandService=accessor.get(core.ICommandService),doMutation=docsUi.deleteCustomRangeFactory(accessor,{unitId,rangeId:linkId,segmentId});return doMutation?await commandService.syncExecuteCommand(doMutation.id,doMutation.params):!1}},shouldDisableAddLink=__name(accessor=>{var _a2;const textSelectionService=accessor.get(docs.DocSelectionManagerService),univerInstanceService=accessor.get(core.IUniverInstanceService),textRanges=textSelectionService.getDocRanges();if(!textRanges.length||textRanges.length>1)return!0;const activeRange=textRanges[0],doc=univerInstanceService.getCurrentUnitForType(core.UniverInstanceType.UNIVER_DOC);if(!doc||!activeRange||activeRange.collapsed)return!0;const body=doc.getSelfOrHeaderFooterModel(activeRange.segmentId).getBody(),paragraphs=body==null?void 0:body.paragraphs;if(!paragraphs)return!0;for(let i=0,len=paragraphs.length;i<len;i++){const p=paragraphs[i];if(activeRange.startOffset<=p.startIndex&&activeRange.endOffset>p.startIndex)return!0;if(p.startIndex>activeRange.endOffset)break}return!core.BuildTextUtils.customRange.getCustomRangesInterestsWithRange(activeRange,(_a2=body.customRanges)!=null?_a2:[]).every(range=>range.rangeType===core.CustomRangeType.HYPERLINK)},"shouldDisableAddLink"),ShowDocHyperLinkEditPopupOperation={type:core.CommandType.OPERATION,id:"doc.operation.show-hyper-link-edit-popup",handler(accessor,params){var _a2;const linkInfo=params==null?void 0:params.link,univerInstanceService=accessor.get(core.IUniverInstanceService);if(shouldDisableAddLink(accessor)&&!linkInfo)return!1;const hyperLinkService=accessor.get(DocHyperLinkPopupService),unitId=(linkInfo==null?void 0:linkInfo.unitId)||((_a2=univerInstanceService.getCurrentUnitForType(core.UniverInstanceType.UNIVER_DOC))==null?void 0:_a2.getUnitId());return unitId?(hyperLinkService.showEditPopup(unitId,linkInfo),!0):!1}},ToggleDocHyperLinkInfoPopupOperation={type:core.CommandType.OPERATION,id:"doc.operation.toggle-hyper-link-info-popup",handler(accessor,params){const hyperLinkService=accessor.get(DocHyperLinkPopupService);return params?(hyperLinkService.showInfoPopup(params),!0):(hyperLinkService.hideInfoPopup(),!0)}},ClickDocHyperLinkOperation={type:core.CommandType.OPERATION,id:"doc.operation.click-hyper-link",handler(accessor,params){var _a2,_b2,_c2;if(!params)return!1;const{unitId,linkId,segmentId}=params,doc=accessor.get(core.IUniverInstanceService).getUnit(unitId,core.UniverInstanceType.UNIVER_DOC),body=doc==null?void 0:doc.getSelfOrHeaderFooterModel(segmentId).getBody(),link=(_c2=(_b2=(_a2=body==null?void 0:body.customRanges)==null?void 0:_a2.find(range=>range.rangeId===linkId&&range.rangeType===core.CustomRangeType.HYPERLINK))==null?void 0:_b2.properties)==null?void 0:_c2.url;return link&&window.open(link,"_blank","noopener noreferrer"),!0}},styles={docLink:"univer-doc-link",docLinkType:"univer-doc-link-type",docLinkContent:"univer-doc-link-content",docLinkContentError:"univer-doc-link-content-error",docLinkUrl:"univer-doc-link-url",docLinkOperations:"univer-doc-link-operations",docLinkOperation:"univer-doc-link-operation",docLinkOperationError:"univer-doc-link-operation-error"},DocLinkPopup=__name(()=>{var _a2,_b2;const hyperLinkService=core.useDependency(DocHyperLinkPopupService),commandService=core.useDependency(core.ICommandService),messageService=core.useDependency(ui.IMessageService),localeService=core.useDependency(core.LocaleService),currentPopup=ui.useObservable(hyperLinkService.showingLink$),univerInstanceService=core.useDependency(core.IUniverInstanceService);if(!currentPopup)return null;const{unitId,linkId,segmentId}=currentPopup,doc=univerInstanceService.getUnit(unitId,core.UniverInstanceType.UNIVER_DOC),body=doc==null?void 0:doc.getSelfOrHeaderFooterModel(segmentId).getBody(),link=(_a2=body==null?void 0:body.customRanges)==null?void 0:_a2.find(range=>range.rangeId===linkId&&range.rangeType===core.CustomRangeType.HYPERLINK);if(!link)return null;const url=(_b2=link.properties)==null?void 0:_b2.url;return React.createElement("div",{className:styles.docLink,onClick:__name(()=>{hyperLinkService.hideInfoPopup()},"onClick")},React.createElement("div",{className:cs(styles.docLinkContent),onClick:__name(()=>window.open(url),"onClick")},React.createElement("div",{className:styles.docLinkType},React.createElement(LinkSingle,null)),React.createElement(design.Tooltip,{showIfEllipsis:!0,title:url},React.createElement("span",{className:styles.docLinkUrl},url))),React.createElement("div",{className:styles.docLinkOperations},React.createElement("div",{className:cs(styles.docLinkOperation),onClick:__name(()=>{navigator.clipboard.writeText(url),messageService.show({content:localeService.t("docLink.info.coped"),type:design.MessageType.Info})},"onClick")},React.createElement(design.Tooltip,{placement:"bottom",title:localeService.t("docLink.info.copy")},React.createElement(CopySingle,null))),React.createElement("div",{className:styles.docLinkOperation,onClick:__name(()=>{commandService.executeCommand(ShowDocHyperLinkEditPopupOperation.id,{link:currentPopup})},"onClick")},React.createElement(design.Tooltip,{placement:"bottom",title:localeService.t("docLink.info.edit")},React.createElement(WriteSingle,null))),React.createElement("div",{className:styles.docLinkOperation,onClick:__name(()=>{commandService.executeCommand(DeleteDocHyperLinkCommand.id,{unitId,linkId:link.rangeId,segmentId})},"onClick")},React.createElement(design.Tooltip,{placement:"bottom",title:localeService.t("docLink.info.cancel")},React.createElement(UnlinkSingle,null)))))},"DocLinkPopup");DocLinkPopup.componentKey="univer.doc.link-info-popup";var __defProp$5=Object.defineProperty,__getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$5=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$5(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$5(target,key,result),result},"__decorateClass$5"),__decorateParam$5=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$5");const SKIT_PLACEHOLDER=0;let DocHyperLinkPopupService=(_a=class extends core.Disposable{constructor(_docCanvasPopupManagerService,_textSelectionManagerService,_univerInstanceService){super();__publicField(this,"_editingLink$",new rxjs.BehaviorSubject(null));__publicField(this,"_showingLink$",new rxjs.BehaviorSubject(null));__publicField(this,"editingLink$",this._editingLink$.asObservable());__publicField(this,"showingLink$",this._showingLink$.asObservable());__publicField(this,"_editPopup",null);__publicField(this,"_infoPopup",null);this._docCanvasPopupManagerService=_docCanvasPopupManagerService,this._textSelectionManagerService=_textSelectionManagerService,this._univerInstanceService=_univerInstanceService,this.disposeWithMe(()=>{this._editingLink$.complete(),this._showingLink$.complete()})}get editing(){return this._editingLink$.value}get showing(){return this._showingLink$.value}showEditPopup(unitId,linkInfo){var _a2,_b2,_c2;this._editPopup&&this._editPopup.dispose(),this._editingLink$.next(linkInfo);let activeRange=this._textSelectionManagerService.getActiveTextRange();if(linkInfo){const{unitId:unitId2,linkId,segmentId,segmentPage}=linkInfo,doc=this._univerInstanceService.getUnit(unitId2,core.UniverInstanceType.UNIVER_DOC),range=(_c2=(_b2=(_a2=doc==null?void 0:doc.getSelfOrHeaderFooterModel(segmentId))==null?void 0:_a2.getBody())==null?void 0:_b2.customRanges)==null?void 0:_c2.find(i=>i.rangeId===linkId);range&&(activeRange={collapsed:!1,startOffset:range.startIndex+SKIT_PLACEHOLDER,endOffset:range.endIndex+1,segmentId,segmentPage},this._textSelectionManagerService.replaceTextRanges([{startOffset:range.startIndex,endOffset:range.endIndex+1}]))}return activeRange?(this._editPopup=this._docCanvasPopupManagerService.attachPopupToRange(activeRange,{componentKey:DocHyperLinkEdit.componentKey,direction:"bottom"},unitId),this._editPopup):null}hideEditPopup(){var _a2;this._editingLink$.next(null),(_a2=this._editPopup)==null||_a2.dispose()}showInfoPopup(info){var _a2,_b2,_c2,_d2,_e2,_f2;const{linkId,unitId,segmentId,segmentPage}=info;if(((_a2=this.showing)==null?void 0:_a2.linkId)===linkId&&((_b2=this.showing)==null?void 0:_b2.unitId)===unitId&&((_c2=this.showing)==null?void 0:_c2.segmentId)===segmentId&&((_d2=this.showing)==null?void 0:_d2.segmentPage)===segmentPage)return;this._infoPopup&&this._infoPopup.dispose();const doc=this._univerInstanceService.getUnit(unitId,core.UniverInstanceType.UNIVER_DOC);if(!doc)return;const range=(_f2=(_e2=doc.getSelfOrHeaderFooterModel(info.segmentId).getBody())==null?void 0:_e2.customRanges)==null?void 0:_f2.find(i=>i.rangeId===linkId);if(this._showingLink$.next({unitId,linkId,segmentId,segmentPage}),!!range)return this._infoPopup=this._docCanvasPopupManagerService.attachPopupToRange({collapsed:!1,startOffset:range.startIndex+SKIT_PLACEHOLDER,endOffset:range.endIndex+1,segmentId:info.segmentId,segmentPage:info.segmentPage},{componentKey:DocLinkPopup.componentKey,direction:"top-center",multipleDirection:"top",onClickOutside:__name(()=>{this.hideInfoPopup()},"onClickOutside")},info.unitId),this._infoPopup}hideInfoPopup(){var _a2;this._showingLink$.next(null),(_a2=this._infoPopup)==null||_a2.dispose()}},__name(_a,"DocHyperLinkPopupService"),_a);DocHyperLinkPopupService=__decorateClass$5([__decorateParam$5(0,core.Inject(docsUi.DocCanvasPopManagerService)),__decorateParam$5(1,core.Inject(docs.DocSelectionManagerService)),__decorateParam$5(2,core.IUniverInstanceService)],DocHyperLinkPopupService);var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$4=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$4(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$4(target,key,result),result},"__decorateClass$4"),__decorateParam$4=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$4");let DocHyperLinkSelectionController=(_b=class extends core.Disposable{constructor(_commandService,_univerInstanceService,_docHyperLinkService){super(),this._commandService=_commandService,this._univerInstanceService=_univerInstanceService,this._docHyperLinkService=_docHyperLinkService,this._initSelectionChange()}_initSelectionChange(){this.disposeWithMe(this._commandService.onCommandExecuted(commandInfo=>{var _a2,_b2,_c2;if(commandInfo.id===docs.SetTextSelectionsOperation.id){const params=commandInfo.params,{unitId,ranges,segmentId}=params,doc=this._univerInstanceService.getUnit(unitId,core.UniverInstanceType.UNIVER_DOC),primary=ranges[0];if(primary&&doc){const{startOffset,endOffset,collapsed,segmentPage}=primary,customRanges=(_b2=(_a2=doc.getSelfOrHeaderFooterModel(segmentId))==null?void 0:_a2.getBody())==null?void 0:_b2.customRanges;if(collapsed){const index=(_c2=customRanges==null?void 0:customRanges.findIndex(value=>value.startIndex<startOffset&&value.endIndex>endOffset-1))!=null?_c2:-1;if(index>-1){const customRange=customRanges[index];this._docHyperLinkService.showInfoPopup({unitId,linkId:customRange.rangeId,segmentId,segmentPage});return}}else if(customRanges==null?void 0:customRanges.find(value=>value.startIndex<=startOffset&&value.endIndex>=endOffset-1))return}this._docHyperLinkService.hideInfoPopup(),this._docHyperLinkService.hideEditPopup()}}))}},__name(_b,"DocHyperLinkSelectionController"),_b);DocHyperLinkSelectionController=__decorateClass$4([core.OnLifecycle(core.LifecycleStages.Ready,DocHyperLinkSelectionController),__decorateParam$4(0,core.ICommandService),__decorateParam$4(1,core.IUniverInstanceService),__decorateParam$4(2,core.Inject(DocHyperLinkPopupService))],DocHyperLinkSelectionController);var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$3(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$3(target,key,result),result},"__decorateClass$3"),__decorateParam$3=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$3");let DocHyperLinkEventRenderController=(_c=class extends core.Disposable{constructor(_context,_docEventManagerService,_commandService,_hyperLinkPopupService,_docSkeletonManagerService,_docSelectionManagerService){super(),this._context=_context,this._docEventManagerService=_docEventManagerService,this._commandService=_commandService,this._hyperLinkPopupService=_hyperLinkPopupService,this._docSkeletonManagerService=_docSkeletonManagerService,this._docSelectionManagerService=_docSelectionManagerService,this._initHover(),this._initClick()}get _skeleton(){return this._docSkeletonManagerService.getSkeleton()}_hideInfoPopup(){this._hyperLinkPopupService.showing&&this._commandService.executeCommand(ToggleDocHyperLinkInfoPopupOperation.id)}_initHover(){this.disposeWithMe(this._docEventManagerService.hoverCustomRanges$.subscribe(ranges=>{var _a2;const link=ranges.find(range=>range.range.rangeType===core.CustomRangeType.HYPERLINK),activeRanges=this._docSelectionManagerService.getTextRanges(),currentSegmentId=activeRanges==null?void 0:activeRanges[0].segmentId;if(((_a2=link==null?void 0:link.segmentId)!=null?_a2:"")!==currentSegmentId){this._hideInfoPopup();return}link?this._commandService.executeCommand(ToggleDocHyperLinkInfoPopupOperation.id,{unitId:this._context.unitId,linkId:link.range.rangeId,segmentId:link.segmentId,segmentPage:link.segmentPageIndex,rangeId:link.range.rangeId}):this._hideInfoPopup()}))}_initClick(){this.disposeWithMe(this._docEventManagerService.clickCustomRanges$.subscribe(range=>{const link=range.range;link&&this._commandService.executeCommand(ClickDocHyperLinkOperation.id,{unitId:this._context.unitId,linkId:link.rangeId,segmentId:range.segmentId})}))}},__name(_c,"DocHyperLinkEventRenderController"),_c);DocHyperLinkEventRenderController=__decorateClass$3([__decorateParam$3(1,core.Inject(docsUi.DocEventManagerService)),__decorateParam$3(2,core.ICommandService),__decorateParam$3(3,core.Inject(DocHyperLinkPopupService)),__decorateParam$3(4,core.Inject(docs.DocSkeletonManagerService)),__decorateParam$3(5,core.Inject(docs.DocSelectionManagerService))],DocHyperLinkEventRenderController);var __defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$2(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$2(target,key,result),result},"__decorateClass$2"),__decorateParam$2=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$2");let DocHyperLinkRenderController=(_d=class extends core.Disposable{constructor(_context,_docInterceptorService,_hyperLinkService,_docRenderController){super(),this._context=_context,this._docInterceptorService=_docInterceptorService,this._hyperLinkService=_hyperLinkService,this._docRenderController=_docRenderController,this._init(),this._initReRender()}_init(){this._docInterceptorService.intercept(docs.DOC_INTERCEPTOR_POINT.CUSTOM_RANGE,{handler:__name((data,pos,next)=>{if(!data)return next(data);const{unitId}=pos,activeLink=this._hyperLinkService.showing,{linkId,unitId:linkUnitId}=activeLink||{},isActive=linkUnitId===unitId&&data.rangeId===linkId;return next({...data,active:isActive})},"handler")})}_initReRender(){this.disposeWithMe(this._hyperLinkService.showingLink$.pipe(rxjs.distinctUntilChanged((prev,aft)=>(prev==null?void 0:prev.linkId)===(aft==null?void 0:aft.linkId)&&(prev==null?void 0:prev.unitId)===(aft==null?void 0:aft.unitId)),rxjs.pairwise()).subscribe(([preLink,link])=>{link?link.unitId===this._context.unitId&&this._docRenderController.reRender(link.unitId):preLink&&preLink.unitId===this._context.unitId&&this._docRenderController.reRender(preLink.unitId)}))}},__name(_d,"DocHyperLinkRenderController"),_d);DocHyperLinkRenderController=__decorateClass$2([__decorateParam$2(1,core.Inject(docs.DocInterceptorService)),__decorateParam$2(2,core.Inject(DocHyperLinkPopupService)),__decorateParam$2(3,core.Inject(docsUi.DocRenderController))],DocHyperLinkRenderController);const DOC_LINK_ICON="doc-hyper-link-icon";function AddHyperLinkMenuItemFactory(accessor){return{id:ShowDocHyperLinkEditPopupOperation.id,type:ui.MenuItemType.BUTTON,icon:DOC_LINK_ICON,title:"docLink.menu.tooltip",tooltip:"docLink.menu.tooltip",hidden$:ui.getMenuHiddenObservable(accessor,core.UniverInstanceType.UNIVER_DOC),disabled$:new rxjs.Observable(function(subscribe){const observer=accessor.get(docs.DocSelectionManagerService).textSelection$.pipe(rxjs.debounceTime(16)).subscribe(()=>{subscribe.next(shouldDisableAddLink(accessor))});return()=>{observer.unsubscribe()}})}}__name(AddHyperLinkMenuItemFactory,"AddHyperLinkMenuItemFactory");const addLinkShortcut={id:ShowDocHyperLinkEditPopupOperation.id,binding:ui.MetaKeys.CTRL_COMMAND|ui.KeyCode.K,description:"docLink.menu.tooltip",preconditions:docsUi.whenDocAndEditorFocused},menuSchema={[ui.RibbonStartGroup.OTHERS]:{[ShowDocHyperLinkEditPopupOperation.id]:{order:0,menuItemFactory:AddHyperLinkMenuItemFactory}},[ui.ContextMenuPosition.MAIN_AREA]:{[ui.ContextMenuGroup.DATA]:{[ShowDocHyperLinkEditPopupOperation.id]:{order:0,menuItemFactory:AddHyperLinkMenuItemFactory}}}};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");let DocHyperLinkUIController=(_e=class extends core.Disposable{constructor(_componentManager,_commandService,_menuManagerService,_injector,_shortcutService){super(),this._componentManager=_componentManager,this._commandService=_commandService,this._menuManagerService=_menuManagerService,this._injector=_injector,this._shortcutService=_shortcutService,this._initComponents(),this._initCommands(),this._initMenus(),this._initShortcut()}_initComponents(){[[DocHyperLinkEdit,DocHyperLinkEdit.componentKey],[DocLinkPopup,DocLinkPopup.componentKey],[LinkSingle,DOC_LINK_ICON]].forEach(([comp,key])=>{this._componentManager.register(key,comp)})}_initCommands(){[AddDocHyperLinkCommand,UpdateDocHyperLinkCommand,DeleteDocHyperLinkCommand,ShowDocHyperLinkEditPopupOperation,ToggleDocHyperLinkInfoPopupOperation,ClickDocHyperLinkOperation].forEach(command=>{this._commandService.registerCommand(command)})}_initShortcut(){[addLinkShortcut].forEach(shortcut=>{this._shortcutService.registerShortcut(shortcut)})}_initMenus(){this._menuManagerService.mergeMenu(menuSchema)}},__name(_e,"DocHyperLinkUIController"),_e);DocHyperLinkUIController=__decorateClass$1([core.OnLifecycle(core.LifecycleStages.Starting,DocHyperLinkUIController),__decorateParam$1(0,core.Inject(ui.ComponentManager)),__decorateParam$1(1,core.ICommandService),__decorateParam$1(2,ui.IMenuManagerService),__decorateParam$1(3,core.Inject(core.Injector)),__decorateParam$1(4,ui.IShortcutService)],DocHyperLinkUIController);const DOC_HYPER_LINK_UI_PLUGIN="DOC_HYPER_LINK_UI_PLUGIN";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.UniverDocsHyperLinkUIPlugin=(_f=class extends core.Plugin{constructor(_config=defaultPluginConfig,_injector,_renderManagerSrv,_configService){super(),this._config=_config,this._injector=_injector,this._renderManagerSrv=_renderManagerSrv,this._configService=_configService;const{menu,...rest}=this._config;menu&&this._configService.setConfig("menu",menu,{merge:!0}),this._configService.setConfig(PLUGIN_CONFIG_KEY,rest)}onStarting(){[[DocHyperLinkPopupService],[DocHyperLinkUIController],[DocHyperLinkSelectionController]].forEach(dep=>{this._injector.add(dep)})}onRendered(){this._initRenderModule()}_initRenderModule(){[[DocHyperLinkRenderController],[DocHyperLinkEventRenderController]].forEach(dep=>{this._renderManagerSrv.registerRenderModule(core.UniverInstanceType.UNIVER_DOC,dep)})}},__name(_f,"UniverDocsHyperLinkUIPlugin"),_f),__publicField2(exports2.UniverDocsHyperLinkUIPlugin,"pluginName",DOC_HYPER_LINK_UI_PLUGIN),__publicField2(exports2.UniverDocsHyperLinkUIPlugin,"type",core.UniverInstanceType.UNIVER_DOC),exports2.UniverDocsHyperLinkUIPlugin=__decorateClass([core.DependentOn(docsHyperLink.UniverDocsHyperLinkPlugin),__decorateParam(1,core.Inject(core.Injector)),__decorateParam(2,engineRender.IRenderManagerService),__decorateParam(3,core.IConfigService)],exports2.UniverDocsHyperLinkUIPlugin),Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
1
+ function _0x4d33(_0x29fd88,_0x274956){var _0x3d3095=_0x3d30();return _0x4d33=function(_0x4d3326,_0x25ccae){_0x4d3326=_0x4d3326-0x186;var _0x162028=_0x3d3095[_0x4d3326];return _0x162028;},_0x4d33(_0x29fd88,_0x274956);}function _0x3d30(){var _0x213e32=['getOwnPropertyDescriptor','top-center','showingLink$','substring','__decorateParam$3','@univerjs/engine-render','https://','React','segmentPageIndex','clsx','docLink.info.copy','paragraphs','onRendered','949320jmGvPy','call','_initRenderModule','colorChannel1','function','getBody','componentKey','isLegalUrl','_docCanvasPopupManagerService','findIndex','_hyperLinkService','@univerjs/core','name','DocSelectionRenderService','KeyCode','SetTextSelectionsOperation','OPERATION','CUSTOM_RANGE','UniverUi','ENTER','startOffset','__decorateParam$2','getBodySlice','7416qMWgWU','add','M12.5935\x203.47302C11.6354\x202.51492\x2010.082\x202.51492\x209.12388\x203.47302L7.83534\x204.76157C7.60102\x204.99588\x207.22112\x204.99588\x206.98681\x204.76157\x206.75249\x204.52725\x206.75249\x204.14735\x206.98681\x203.91304L8.27535\x202.62449C9.70209\x201.19776\x2012.0153\x201.19776\x2013.442\x202.62449\x2014.8688\x204.05123\x2014.8688\x206.36442\x2013.442\x207.79116L12.1535\x209.0797C11.9192\x209.31402\x2011.5393\x209.31402\x2011.3049\x209.0797\x2011.0706\x208.84539\x2011.0706\x208.46549\x2011.3049\x208.23117L12.5935\x206.94263C13.5516\x205.98452\x2013.5516\x204.43113\x2012.5935\x203.47302zM3.40637\x2012.6606C2.44827\x2011.7025\x202.44827\x2010.1491\x203.40637\x209.19102L4.69492\x207.90248C4.92923\x207.66816\x204.92923\x207.28826\x204.69492\x207.05395\x204.4606\x206.81963\x204.0807\x206.81963\x203.84639\x207.05395L2.55784\x208.34249C1.13111\x209.76923\x201.13111\x2012.0824\x202.55784\x2013.5092\x203.98458\x2014.9359\x206.29777\x2014.9359\x207.72451\x2013.5092L9.01305\x2012.2206C9.24737\x2011.9863\x209.24737\x2011.6064\x209.01305\x2011.3721\x208.77874\x2011.1378\x208.39884\x2011.1378\x208.16452\x2011.3721L6.87598\x2012.6606C5.91787\x2013.6187\x204.36448\x2013.6187\x203.40637\x2012.6606zM3.5852\x202.80332C3.35088\x202.569\x202.97098\x202.569\x202.73667\x202.80332\x202.50235\x203.03763\x202.50235\x203.41753\x202.73667\x203.65185L12.4151\x2013.3302C12.6494\x2013.5646\x2013.0293\x2013.5646\x2013.2636\x2013.3302\x2013.4979\x2013.0959\x2013.4979\x2012.716\x2013.2636\x2012.4817L3.5852\x202.80332z','handler','linkId','_docInterceptorService','RibbonStartGroup','apply','dataStream','IRenderManagerService','_docSelectionManagerService','1080FYKJIr','univer.doc.link-info-popup','getActiveTextRange','__decorateParam$1','onReady','idSuffix','every','CommandType','UniverDocs','@univerjs/design','__decorateClass','attrs','_docRenderController','_renderManagerSrv','clipboard','getRenderById','UniverDesign','DocHyperLinkUIController','_hideInfoPopup','focusEditor','UniverDocsHyperLinkPlugin','__decorateParam$5','@univerjs/docs','doc.operation.show-hyper-link-edit-popup','toString','concat','@univerjs/docs-ui','endIndex','_initClick','useState','docs.command.delete-hyper-link','MessageType','_docSkeletonManagerService','M5.9564\x202.91332C4.91407\x201.87102\x203.22413\x201.87101\x202.18182\x202.91333L2.18182\x202.91333C1.13953\x203.95567\x201.13952\x205.6456\x202.18182\x206.68791L8.27777\x2012.7838C9.72408\x2014.2302\x2012.069\x2014.2302\x2013.5154\x2012.7839L13.0911\x2012.3596L13.5154\x2012.7839C14.9617\x2011.3375\x2014.9617\x208.99257\x2013.5154\x207.54626L8.39476\x202.42566C8.16044\x202.19134\x207.78054\x202.19134\x207.54623\x202.42566C7.31191\x202.65997\x207.31191\x203.03987\x207.54623\x203.27419L12.6668\x208.39479L13.0911\x207.97052L12.6668\x208.39479C13.6445\x209.37247\x2013.6445\x2010.9576\x2012.6668\x2011.9353L13.0399\x2012.3084L12.6668\x2011.9353C11.6891\x2012.913\x2010.104\x2012.913\x209.1263\x2011.9353L3.03035\x205.83938C2.45668\x205.26571\x202.45667\x204.33556\x203.03036\x203.76184C3.60403\x203.18818\x204.53416\x203.18817\x205.10788\x203.76185C5.10788\x203.76186\x205.10788\x203.76186\x205.10789\x203.76186L11.2038\x209.8578L11.601\x209.46061L11.2038\x209.8578C11.3735\x2010.0275\x2011.3735\x2010.3026\x2011.2038\x2010.4723L11.2038\x2010.4723C11.0341\x2010.642\x2010.759\x2010.642\x2010.5893\x2010.4723L5.46874\x205.35171C5.23442\x205.1174\x204.85452\x205.1174\x204.62021\x205.35171C4.38589\x205.58602\x204.38589\x205.96592\x204.62021\x206.20024L9.74078\x2011.3208C10.3791\x2011.9591\x2011.414\x2011.9591\x2012.0523\x2011.3208C12.0523\x2011.3208\x2012.0523\x2011.3208\x2012.0523\x2011.3208M12.0523\x2011.3208C12.6907\x2010.6825\x2012.6906\x209.64757\x2012.0523\x209.00927L5.95641\x202.91333L5.9564\x202.91332','_commandService','children','trim','hasProtocol','DependentOn','onKeyDown','path','blurEditor','assign','div','symbol','pairwise','_initReRender','univer-doc-link','_initShortcut','span','docs-hyper-link-ui.config','link','univer-docs-link-edit-title','_editPopup','ComponentManager','_showingLink$','CopySingle','docLink','getOwnPropertySymbols','_injector','UnlinkSingle','render','2lmITtS','UNIVER_DOC','BehaviorSubject','createElement','handleConfirm','clickCustomRanges$','reRender','top','primary','LocaleService','univer-doc-link-operations','dispose','_infoPopup','M1.79238\x2013.2999C1.46101\x2013.2999\x201.19238\x2013.5685\x201.19238\x2013.8999C1.19238\x2014.2313\x201.46101\x2014.4999\x201.79238\x2014.4999H14.4924C14.8238\x2014.4999\x2015.0924\x2014.2313\x2015.0924\x2013.8999C15.0924\x2013.5685\x2014.8238\x2013.2999\x2014.4924\x2013.2999H1.79238Z','registerRenderModule','svg','_docHyperLinkService','univer-doc-link-url','xlink:href','evenodd','useDependency','react','toStringTag','UniverDocsUi','FormLayout','_textSelectionManagerService','Disposable','univerjs-icon\x20univerjs-icon-','rangeType','Inject','endOffset','UniverDocsHyperLinkUi','type','attachPopupToRange','rxjs','with','max','transform','docsLinkEdit','DocLinkPopup','whenDocAndEditorFocused','shouldDisableAddLink','UniverDocsHyperLinkUIPlugin','docLinkOperations','__decorateClass$1','docsLinkEditButton','UniverCore','syncExecuteCommand','_context','defineProperty','_univerInstanceService','defIds','DocEventManagerService','registerCommand','AddHyperLinkMenuItemFactory','displayName','Info','replace','complete','docLinkType','univer-docs-link-edit','getUnit','__decorateClass$5','0\x200\x2017\x2016','docLink.edit.address','writeText','unsubscribe','min','docsLinkEditButtons','segmentId','properties','DOC_HYPER_LINK_UI_PLUGIN','84EKCLGb','MetaKeys','generateRandomId','startIndex','_initSelectionChange','M4.1302\x2012.4251C4.25802\x2013.7417\x205.36779\x2014.7708\x206.71792\x2014.7708H11.7179C13.1539\x2014.7708\x2014.3179\x2013.6067\x2014.3179\x2012.1708V6.1708C14.3179\x204.78586\x2013.2351\x203.65383\x2011.8698\x203.57517C11.742\x202.25858\x2010.6323\x201.22949\x209.28213\x201.22949H4.28213C2.84619\x201.22949\x201.68213\x202.39355\x201.68213\x203.82949V9.82949C1.68213\x2011.2144\x202.76497\x2012.3465\x204.1302\x2012.4251ZM10.6583\x203.5708H6.71792C5.28198\x203.5708\x204.11792\x204.73486\x204.11792\x206.1708V11.22C3.4221\x2011.1387\x202.88213\x2010.5471\x202.88213\x209.82949V3.82949C2.88213\x203.05629\x203.50893\x202.42949\x204.28213\x202.42949H9.28213C9.96695\x202.42949\x2010.5369\x202.92119\x2010.6583\x203.5708ZM13.1179\x206.1708C13.1179\x205.3976\x2012.4911\x204.7708\x2011.7179\x204.7708H6.71792C5.94472\x204.7708\x205.31792\x205.3976\x205.31792\x206.1708V12.1708C5.31792\x2012.944\x205.94472\x2013.5708\x206.71792\x2013.5708H11.7179C12.4911\x2013.5708\x2013.1179\x2012.944\x2013.1179\x2012.1708V6.1708Z','customRanges','2611NyCJNy','99abpSjx','UniverInstanceType','showInfoPopup','DocHyperLinkSelectionController','DocHyperLinkRenderController','IUniverInstanceService','getSelfOrHeaderFooterModel','segmentPage','test','hideInfoPopup','transformUrl','params','Plugin','CustomRangeType','open','setConfig','handleCancel','2915JhfmPZ','DocInterceptorService','indexOf','docLink.menu.tooltip','useRef','IShortcutService','label','_initMenus','_skeleton','_menuManagerService','DocRenderController','univer-docs-link-edit-buttons','docs.command.add-hyper-link','BuildTextUtils','string','DATA','UniverDocsHyperLink','DataStreamTreeTokenType','@univerjs/docs-hyper-link','__decorateClass$2','current','docLink.edit.cancel','menu','35290LlshJy','show','extend','_shortcutService','doc-hyper-link-icon','0\x200\x2016\x2017','replaceRuntimeIdsAndExtInAttrs','univer-doc-link-content-error','url','map','textRuns','find','CUSTOM_RANGE_START','collapsed','docs-hyper-link-edit','__decorateParam$4','__publicField','none','161627bCCexP','debounceTime','docLinkOperation','next','useObservable','editing','__defNormalProp','keyCode','tag','univer-docs-link-edit-close','ContextMenuGroup','_blank','deleteCustomRangeFactory','showEditPopup','object','getSkeleton','_init','length','replaceTextRanges','forwardRef','DocSelectionManagerService','unitId','UniverEngineRender','replaceSelectionFactory','getPlainText','Observable','docLinkContent','executeCommand','@univerjs/ui','DocSkeletonManagerService','disposeWithMe','get','CTRL_COMMAND','HYPERLINK','MenuItemType','textSelection$','rangeId','COMMAND','showing','fill','_config','_componentManager','forEach','editingLink$','getCustomRangesInterestsWithRange','unlink-single','Tooltip','_initHover','exports','className','bottom','docLink.info.edit','IMessageService','prototype','asObservable','BUTTON','distinctUntilChanged','Module','currentColor','docLink.info.coped','getMenuHiddenObservable','1em','hideEditPopup','noopener\x20noreferrer','Injector','icon','DocCanvasPopManagerService','ICommandService','getUnitId','80472drWfGl','addCustomRangeBySelectionFactory','univer-doc-link-operation-error','url(#$1','getDocRanges','0\x200\x2016\x2016','_hyperLinkPopupService','pipe','_initComponents','onClickOutside','getTextRanges','onClick','_docEventManagerService','univer-doc-link-content','_editingLink$','LinkSingle','11028jQvKFc','subscribe','range','Input','intercept','IMenuManagerService','value','useEffect','_configService','WriteSingle','getCurrentUnitForType'];_0x3d30=function(){return _0x213e32;};return _0x3d30();}(function(_0x3f91a4,_0x4d7e93){var _0x4eb93a=_0x4d33,_0x1a1a3e=_0x3f91a4();while(!![]){try{var _0x10ec00=parseInt(_0x4eb93a(0x21a))/0x1*(-parseInt(_0x4eb93a(0x190))/0x2)+parseInt(_0x4eb93a(0x287))/0x3+parseInt(_0x4eb93a(0x25f))/0x4+-parseInt(_0x4eb93a(0x208))/0x5*(parseInt(_0x4eb93a(0x1d8))/0x6)+parseInt(_0x4eb93a(0x1df))/0x7*(parseInt(_0x4eb93a(0x29e))/0x8)+parseInt(_0x4eb93a(0x1e0))/0x9*(parseInt(_0x4eb93a(0x2a9))/0xa)+parseInt(_0x4eb93a(0x1f1))/0xb*(-parseInt(_0x4eb93a(0x26f))/0xc);if(_0x10ec00===_0x4d7e93)break;else _0x1a1a3e['push'](_0x1a1a3e['shift']());}catch(_0x3bbbbd){_0x1a1a3e['push'](_0x1a1a3e['shift']());}}}(_0x3d30,0x2bd57),function(_0x1961e6,_0x231694){var _0x255a70=_0x4d33;typeof exports==_0x255a70(0x228)&&typeof module<'u'?_0x231694(exports,require(_0x255a70(0x292)),require(_0x255a70(0x203)),require('@univerjs/engine-render'),require('@univerjs/docs'),require(_0x255a70(0x2c3)),require('rxjs'),require(_0x255a70(0x2b2)),require(_0x255a70(0x236)),require(_0x255a70(0x1a5)),require(_0x255a70(0x283))):typeof define==_0x255a70(0x28b)&&define['amd']?define([_0x255a70(0x24a),_0x255a70(0x292),_0x255a70(0x203),_0x255a70(0x27f),_0x255a70(0x2bf),_0x255a70(0x2c3),'rxjs',_0x255a70(0x2b2),_0x255a70(0x236),_0x255a70(0x1a5),_0x255a70(0x283)],_0x231694):(_0x1961e6=typeof globalThis<'u'?globalThis:_0x1961e6||self,_0x231694(_0x1961e6[_0x255a70(0x1af)]={},_0x1961e6[_0x255a70(0x1be)],_0x1961e6[_0x255a70(0x201)],_0x1961e6[_0x255a70(0x230)],_0x1961e6[_0x255a70(0x2b1)],_0x1961e6[_0x255a70(0x1a7)],_0x1961e6[_0x255a70(0x1b2)],_0x1961e6[_0x255a70(0x2b9)],_0x1961e6[_0x255a70(0x299)],_0x1961e6[_0x255a70(0x281)],_0x1961e6['clsx']));}(this,function(_0x542ba7,_0x3d36c0,_0x57008f,_0xdd5a51,_0x3c8eef,_0x1ae07c,_0xc42170,_0xf2b86a,_0x66b149,_0x598e6d,_0x5454a8){'use strict';var _0x5c81df=_0x4d33;var _0x58902c=Object[_0x5c81df(0x1c1)],_0x3e304c=(_0x1efc86,_0x3d1234,_0x19fd03)=>_0x3d1234 in _0x1efc86?_0x58902c(_0x1efc86,_0x3d1234,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19fd03}):_0x1efc86[_0x3d1234]=_0x19fd03,_0x11961b=(_0xe5d768,_0x1ac95b)=>_0x58902c(_0xe5d768,_0x5c81df(0x293),{'value':_0x1ac95b,'configurable':!0x0}),_0x2360ae=(_0x4ce9fe,_0x1939ac,_0x1a32f7)=>_0x3e304c(_0x4ce9fe,typeof _0x1939ac!=_0x5c81df(0x2d5)?_0x1939ac+'':_0x1939ac,_0x1a32f7),_0x4c72e3,_0x2c9a37,_0x2e26d2,_0x598a3d,_0x5890e7,_0x2d3abc;const _0xc03980=_0x5c81df(0x2db),_0x29e59f={},_0x520b22={'type':_0x3d36c0[_0x5c81df(0x2b0)]['COMMAND'],'id':_0x5c81df(0x1fd),async 'handler'(_0x497bd7,_0x20e8d1){var _0x4f3cad=_0x5c81df;if(!_0x20e8d1)return!0x1;const {payload:_0x194de7,unitId:_0x542563,selection:_0x3ce34b}=_0x20e8d1,_0x3da8fe=_0x497bd7[_0x4f3cad(0x239)](_0x3d36c0[_0x4f3cad(0x25d)]),_0x46761a=_0x3d36c0[_0x4f3cad(0x1da)](),_0x8e9029=_0x1ae07c[_0x4f3cad(0x260)](_0x497bd7,{'rangeId':_0x46761a,'rangeType':_0x3d36c0['CustomRangeType'][_0x4f3cad(0x23b)],'properties':{'url':_0x194de7},'unitId':_0x542563,'selection':_0x3ce34b});return _0x8e9029?_0x3da8fe[_0x4f3cad(0x1bf)](_0x8e9029['id'],_0x8e9029['params']):!0x1;}},_0xa906ec={'id':'docs.command.update-hyper-link','type':_0x3d36c0[_0x5c81df(0x2b0)][_0x5c81df(0x23f)],'handler'(_0x383663,_0x411b2b){var _0x12aa67=_0x5c81df,_0x16afe8;if(!_0x411b2b)return!0x1;const {unitId:_0x1860d7,payload:_0x3630a5,segmentId:_0x1e36e9}=_0x411b2b,_0xe3407d=_0x383663['get'](_0x3d36c0[_0x12aa67(0x25d)]),_0x2d30d4=_0x383663[_0x12aa67(0x239)](_0x3d36c0['IUniverInstanceService']),_0xa2ed37=_0x383663[_0x12aa67(0x239)](_0x3c8eef[_0x12aa67(0x22e)])['getActiveTextRange'](),_0x3346dc=_0x2d30d4[_0x12aa67(0x1cd)](_0x1860d7,_0x3d36c0[_0x12aa67(0x1e1)][_0x12aa67(0x191)]);if(!_0xa2ed37||!_0x3346dc)return!0x1;const _0x3cc9b1=_0x3d36c0[_0x12aa67(0x1da)](),_0x1f1e50=(_0x16afe8=_0x3d36c0[_0x12aa67(0x29d)](_0x3346dc[_0x12aa67(0x1e6)](_0x1e36e9)['getBody'](),_0xa2ed37[_0x12aa67(0x29b)],_0xa2ed37[_0x12aa67(0x1ae)])[_0x12aa67(0x212)])==null?void 0x0:_0x16afe8[0x0];_0x1f1e50&&(_0x1f1e50['ed']=_0x411b2b[_0x12aa67(0x1f7)]['length']+0x1);const _0xc48ee1=_0x1ae07c[_0x12aa67(0x231)](_0x383663,{'unitId':_0x1860d7,'body':{'dataStream':''+_0x3d36c0[_0x12aa67(0x202)][_0x12aa67(0x214)]+_0x411b2b[_0x12aa67(0x1f7)]+_0x3d36c0[_0x12aa67(0x202)]['CUSTOM_RANGE_END'],'customRanges':[{'rangeId':_0x3cc9b1,'rangeType':_0x3d36c0[_0x12aa67(0x1ed)][_0x12aa67(0x23b)],'startIndex':0x0,'endIndex':_0x411b2b['label'][_0x12aa67(0x22b)]+0x1,'properties':{'url':_0x3630a5}}],'textRuns':_0x1f1e50?[_0x1f1e50]:void 0x0},'selection':{'startOffset':_0xa2ed37[_0x12aa67(0x29b)],'endOffset':_0xa2ed37[_0x12aa67(0x1ae)],'collapsed':!0x1,'segmentId':_0x1e36e9}});return _0xc48ee1?_0xe3407d[_0x12aa67(0x1bf)](_0xc48ee1['id'],_0xc48ee1[_0x12aa67(0x1eb)]):!0x1;}},_0x5c2d6a={'docsLinkEdit':_0x5c81df(0x1cc),'docsLinkEditTitle':_0x5c81df(0x186),'docsLinkEditClose':_0x5c81df(0x223),'docsLinkEditButtons':_0x5c81df(0x1fc),'docsLinkEditButton':'univer-docs-link-edit-button'};function _0xe2046b(_0xb255db){var _0x299794=_0x5c81df;return/^[a-zA-Z]+:\/\//[_0x299794(0x1e8)](_0xb255db);}_0x11961b(_0xe2046b,_0x5c81df(0x2ce));function _0x37e79c(_0x5ad354){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/['test'](_0x5ad354);}_0x11961b(_0x37e79c,'isEmail');function _0x1b2104(_0x2268d9){var _0x8603=_0x5c81df;return _0xe2046b(_0x2268d9)?_0x2268d9:_0x37e79c(_0x2268d9)?'mailto://'+_0x2268d9:_0x8603(0x280)+_0x2268d9;}_0x11961b(_0x1b2104,_0x5c81df(0x1ea));const _0x1cc563=_0x11961b(()=>{var _0x8fd072=_0x5c81df,_0xaa922d;const _0x2de26c=_0x3d36c0[_0x8fd072(0x1a4)](_0x108edb),_0xa623f9=_0x3d36c0['useDependency'](_0x3d36c0[_0x8fd072(0x199)]),_0x4e765b=_0x3d36c0[_0x8fd072(0x21e)](_0x2de26c[_0x8fd072(0x245)]),_0x4cdc93=_0x3d36c0[_0x8fd072(0x1a4)](_0x3d36c0[_0x8fd072(0x25d)]),_0x328c62=_0x3d36c0[_0x8fd072(0x1a4)](_0x3d36c0['IUniverInstanceService']),_0x42974c=_0x3d36c0[_0x8fd072(0x1a4)](_0xdd5a51[_0x8fd072(0x2a7)]),_0x46fb18=_0x3d36c0[_0x8fd072(0x1a4)](_0x3c8eef['DocSelectionManagerService']),[_0x3ab40d,_0x42b96a]=_0x598e6d[_0x8fd072(0x2c6)](''),[_0x1559b9,_0x47bb1b]=_0x598e6d[_0x8fd072(0x2c6)](''),[_0xa6cd5a,_0x4e6cf1]=_0x598e6d['useState'](!0x1),_0x3cbc7f=_0x3d36c0['Tools'][_0x8fd072(0x28e)](_0x3ab40d),_0x5e7876=_0x4e765b?_0x328c62[_0x8fd072(0x1cd)](_0x4e765b[_0x8fd072(0x22f)],_0x3d36c0['UniverInstanceType']['UNIVER_DOC']):_0x328c62[_0x8fd072(0x279)](_0x3d36c0['UniverInstanceType'][_0x8fd072(0x191)]),_0xe375ac=(_0xaa922d=_0x42974c[_0x8fd072(0x2b8)](_0x5e7876['getUnitId']()))==null?void 0x0:_0xaa922d[_0x8fd072(0x1b3)](_0x1ae07c[_0x8fd072(0x294)]);_0x598e6d[_0x8fd072(0x276)](()=>{var _0x4af4bd=_0x8fd072,_0x267829,_0x515d7f,_0x3c90b6,_0x10cf38,_0x46319c,_0x247f05,_0x16c07f,_0x20bbc9,_0x11b194;const _0x2bab04=_0x46fb18['getActiveTextRange']();if(!_0x2bab04)return;if(_0x4e765b){const _0x2634e0=(_0x267829=_0x5e7876==null?void 0x0:_0x5e7876['getSelfOrHeaderFooterModel'](_0x4e765b[_0x4af4bd(0x1d5)]))==null?void 0x0:_0x267829[_0x4af4bd(0x28c)](),_0x389649=(_0x515d7f=_0x2634e0==null?void 0x0:_0x2634e0[_0x4af4bd(0x1de)])==null?void 0x0:_0x515d7f[_0x4af4bd(0x213)](_0x4afcd3=>(_0x4e765b==null?void 0x0:_0x4e765b[_0x4af4bd(0x2a2)])===_0x4afcd3[_0x4af4bd(0x23e)]);_0x5e7876&&_0x389649&&(_0x42b96a((_0x10cf38=(_0x3c90b6=_0x389649[_0x4af4bd(0x1d6)])==null?void 0x0:_0x3c90b6[_0x4af4bd(0x210)])!=null?_0x10cf38:''),_0x47bb1b(_0x3d36c0[_0x4af4bd(0x1fe)][_0x4af4bd(0x1b5)][_0x4af4bd(0x232)](_0x3d36c0[_0x4af4bd(0x29d)](_0x2634e0,_0x389649['startIndex'],_0x389649['endIndex'])[_0x4af4bd(0x2a6)])));return;}const _0x79ac2f=(_0x16c07f=(_0x247f05=(_0x46319c=_0x5e7876==null?void 0x0:_0x5e7876[_0x4af4bd(0x1e6)](_0x2bab04[_0x4af4bd(0x1d5)]))==null?void 0x0:_0x46319c[_0x4af4bd(0x28c)]())==null?void 0x0:_0x247f05['customRanges'])==null?void 0x0:_0x16c07f[_0x4af4bd(0x213)](_0x30ef90=>Math[_0x4af4bd(0x1b4)](_0x2bab04[_0x4af4bd(0x29b)],_0x30ef90[_0x4af4bd(0x1db)])<=Math[_0x4af4bd(0x1d3)](_0x2bab04['endOffset']-0x1,_0x30ef90['endIndex']));_0x5e7876&&_0x79ac2f&&_0x42b96a((_0x11b194=(_0x20bbc9=_0x79ac2f==null?void 0x0:_0x79ac2f[_0x4af4bd(0x1d6)])==null?void 0x0:_0x20bbc9[_0x4af4bd(0x210)])!=null?_0x11b194:'');},[_0x5e7876,_0x4e765b,_0x46fb18,_0x328c62]),_0x598e6d['useEffect'](()=>(_0xe375ac&&_0xe375ac[_0x8fd072(0x2d2)](),()=>{var _0x3ada92=_0x8fd072;_0xe375ac&&_0xe375ac[_0x3ada92(0x2bc)]();}),[_0xe375ac]);const _0x3b8bb3=_0x11961b(()=>{var _0x4addf2=_0x8fd072;_0x2de26c[_0x4addf2(0x258)]();},_0x8fd072(0x1f0)),_0x12082d=_0x11961b(()=>{var _0x1f9b26=_0x8fd072;if(_0x4e6cf1(!0x0),!_0x3cbc7f||!_0x5e7876)return;const _0x4d0e56=_0x1b2104(_0x3ab40d);if(!_0x4e765b)_0x4cdc93[_0x1f9b26(0x235)](_0x520b22['id'],{'unitId':_0x5e7876[_0x1f9b26(0x25e)](),'payload':_0x4d0e56});else{if(!_0x1559b9)return;_0x4cdc93[_0x1f9b26(0x235)](_0xa906ec['id'],{'unitId':_0x5e7876[_0x1f9b26(0x25e)](),'payload':_0x4d0e56,'linkId':_0x4e765b[_0x1f9b26(0x2a2)],'label':_0x1559b9,'segmentId':_0x4e765b['segmentId']});}_0x2de26c[_0x1f9b26(0x258)]();},_0x8fd072(0x194));if(_0x5e7876)return _0x598e6d[_0x8fd072(0x193)](_0x8fd072(0x2d4),{'className':_0x5c2d6a[_0x8fd072(0x1b6)]},_0x598e6d[_0x8fd072(0x193)]('div',null,_0x4e765b?_0x598e6d[_0x8fd072(0x193)](_0xf2b86a[_0x8fd072(0x1a8)],{'label':_0xa623f9['t']('docLink.edit.label'),'error':_0xa6cd5a&&!_0x1559b9?_0xa623f9['t']('docLink.edit.labelError'):''},_0x598e6d[_0x8fd072(0x193)](_0xf2b86a[_0x8fd072(0x272)],{'value':_0x1559b9,'onChange':_0x47bb1b,'autoFocus':!0x0,'onKeyDown':_0x11961b(_0xb30468=>{var _0xd8b420=_0x8fd072;_0xb30468[_0xd8b420(0x221)]===_0x66b149[_0xd8b420(0x295)][_0xd8b420(0x29a)]&&_0x12082d();},_0x8fd072(0x2d0))})):null,_0x598e6d[_0x8fd072(0x193)](_0xf2b86a[_0x8fd072(0x1a8)],{'label':_0xa623f9['t'](_0x8fd072(0x1d0)),'error':_0xa6cd5a&&!_0x3cbc7f?_0xa623f9['t']('docLink.edit.addressError'):''},_0x598e6d['createElement'](_0xf2b86a[_0x8fd072(0x272)],{'value':_0x3ab40d,'onChange':_0x42b96a,'autoFocus':!0x0,'onKeyDown':_0x11961b(_0x3db5ca=>{var _0x53656b=_0x8fd072;_0x3db5ca[_0x53656b(0x221)]===_0x66b149[_0x53656b(0x295)]['ENTER']&&_0x12082d();},_0x8fd072(0x2d0))}))),_0x598e6d[_0x8fd072(0x193)]('div',{'className':_0x5c2d6a[_0x8fd072(0x1d4)]},_0x598e6d[_0x8fd072(0x193)](_0xf2b86a['Button'],{'className':_0x5c2d6a[_0x8fd072(0x1bd)],'onClick':_0x3b8bb3},_0xa623f9['t'](_0x8fd072(0x206))),_0x598e6d['createElement'](_0xf2b86a['Button'],{'disabled':!_0x3ab40d,'className':_0x5c2d6a['docsLinkEditButton'],'type':_0x8fd072(0x198),'onClick':_0x12082d},_0xa623f9['t']('docLink.edit.confirm'))));},'DocHyperLinkEdit');_0x1cc563['componentKey']=_0x5c81df(0x216);var _0x3d326f=function(){var _0x3d7b0c=_0x5c81df;return _0x3d326f=Object[_0x3d7b0c(0x2d3)]||function(_0xceb6e4){var _0x33c39e=_0x3d7b0c;for(var _0x3f9828,_0x566c7e=0x1,_0x2cb0e5=arguments[_0x33c39e(0x22b)];_0x566c7e<_0x2cb0e5;_0x566c7e++){_0x3f9828=arguments[_0x566c7e];for(var _0x2db404 in _0x3f9828)Object[_0x33c39e(0x24f)]['hasOwnProperty']['call'](_0x3f9828,_0x2db404)&&(_0xceb6e4[_0x2db404]=_0x3f9828[_0x2db404]);}return _0xceb6e4;},_0x3d326f[_0x3d7b0c(0x2a5)](this,arguments);},_0x4ac26e=function(_0x4ae894,_0x3a8018){var _0x544b3f=_0x5c81df,_0x5cd529={};for(var _0x32cf6d in _0x4ae894)Object[_0x544b3f(0x24f)]['hasOwnProperty']['call'](_0x4ae894,_0x32cf6d)&&_0x3a8018['indexOf'](_0x32cf6d)<0x0&&(_0x5cd529[_0x32cf6d]=_0x4ae894[_0x32cf6d]);if(_0x4ae894!=null&&typeof Object['getOwnPropertySymbols']==_0x544b3f(0x28b)){for(var _0x589801=0x0,_0x32cf6d=Object[_0x544b3f(0x18c)](_0x4ae894);_0x589801<_0x32cf6d['length'];_0x589801++)_0x3a8018[_0x544b3f(0x1f3)](_0x32cf6d[_0x589801])<0x0&&Object[_0x544b3f(0x24f)]['propertyIsEnumerable'][_0x544b3f(0x288)](_0x4ae894,_0x32cf6d[_0x589801])&&(_0x5cd529[_0x32cf6d[_0x589801]]=_0x4ae894[_0x32cf6d[_0x589801]]);}return _0x5cd529;},_0x443a37=_0x598e6d['forwardRef'](function(_0x1e4119,_0x395438){var _0x4ab9ac=_0x5c81df,_0x5cd04e=_0x1e4119[_0x4ab9ac(0x25b)],_0x4ee1ef=_0x1e4119['id'],_0x1b04ed=_0x1e4119['className'],_0x13f45b=_0x1e4119[_0x4ab9ac(0x20a)],_0x304f9b=_0x4ac26e(_0x1e4119,[_0x4ab9ac(0x25b),'id',_0x4ab9ac(0x24b),_0x4ab9ac(0x20a)]),_0xcf5448=_0x4ab9ac(0x1ab)['concat'](_0x4ee1ef,'\x20')[_0x4ab9ac(0x2c2)](_0x1b04ed||'')[_0x4ab9ac(0x2cd)](),_0x344c31=_0x598e6d[_0x4ab9ac(0x1f5)]('_'[_0x4ab9ac(0x2c2)](_0x34fbe5()));return _0x52c1ab(_0x5cd04e,''['concat'](_0x4ee1ef),{'defIds':_0x5cd04e['defIds'],'idSuffix':_0x344c31[_0x4ab9ac(0x205)]},_0x3d326f({'ref':_0x395438,'className':_0xcf5448},_0x304f9b),_0x13f45b);});function _0x52c1ab(_0x2d4f78,_0x270c19,_0x143f0d,_0x41e038,_0x2724b7){var _0x96ba25=_0x5c81df;return _0x598e6d[_0x96ba25(0x193)](_0x2d4f78[_0x96ba25(0x222)],_0x3d326f(_0x3d326f({'key':_0x270c19},_0x400db3(_0x2d4f78,_0x143f0d,_0x2724b7)),_0x41e038),(_0x208c2d(_0x2d4f78,_0x143f0d)['children']||[])[_0x96ba25(0x211)](function(_0x5710d0,_0x2a8a67){var _0x492ad6=_0x96ba25;return _0x52c1ab(_0x5710d0,''['concat'](_0x270c19,'-')[_0x492ad6(0x2c2)](_0x2d4f78[_0x492ad6(0x222)],'-')['concat'](_0x2a8a67),_0x143f0d,void 0x0,_0x2724b7);}));}_0x11961b(_0x52c1ab,_0x5c81df(0x18f));function _0x400db3(_0xe9ca6f,_0x2a021d,_0x2f79ec){var _0x45e0e7=_0x5c81df,_0x5c7812=_0x3d326f({},_0xe9ca6f[_0x45e0e7(0x2b4)]);_0x2f79ec!=null&&_0x2f79ec[_0x45e0e7(0x28a)]&&_0x5c7812['fill']===_0x45e0e7(0x28a)&&(_0x5c7812[_0x45e0e7(0x241)]=_0x2f79ec[_0x45e0e7(0x28a)]);var _0x5648d9=_0x2a021d[_0x45e0e7(0x1c3)];return!_0x5648d9||_0x5648d9['length']===0x0||(_0xe9ca6f[_0x45e0e7(0x222)]==='use'&&_0x5c7812[_0x45e0e7(0x1a2)]&&(_0x5c7812[_0x45e0e7(0x1a2)]=_0x5c7812[_0x45e0e7(0x1a2)]+_0x2a021d[_0x45e0e7(0x2ae)]),Object['entries'](_0x5c7812)['forEach'](function(_0x39737a){var _0x4783dd=_0x45e0e7,_0x3905bb=_0x39737a[0x0],_0x269fe6=_0x39737a[0x1];typeof _0x269fe6==_0x4783dd(0x1ff)&&(_0x5c7812[_0x3905bb]=_0x269fe6[_0x4783dd(0x1c9)](/url\(#(.*)\)/,_0x4783dd(0x262)[_0x4783dd(0x2c2)](_0x2a021d[_0x4783dd(0x2ae)],')')));})),_0x5c7812;}_0x11961b(_0x400db3,_0x5c81df(0x20e));function _0x208c2d(_0x25e0e0,_0x4ea56c){var _0x3cf3e6=_0x5c81df,_0x5ae0fa,_0x4bea78=_0x4ea56c['defIds'];return!_0x4bea78||_0x4bea78['length']===0x0?_0x25e0e0:_0x25e0e0[_0x3cf3e6(0x222)]==='defs'&&(!((_0x5ae0fa=_0x25e0e0[_0x3cf3e6(0x2cc)])===null||_0x5ae0fa===void 0x0)&&_0x5ae0fa[_0x3cf3e6(0x22b)])?_0x3d326f(_0x3d326f({},_0x25e0e0),{'children':_0x25e0e0['children'][_0x3cf3e6(0x211)](function(_0x514a65){var _0x54e8ad=_0x3cf3e6;return typeof _0x514a65[_0x54e8ad(0x2b4)]['id']==_0x54e8ad(0x1ff)&&_0x4bea78&&_0x4bea78[_0x54e8ad(0x1f3)](_0x514a65[_0x54e8ad(0x2b4)]['id'])>-0x1?_0x3d326f(_0x3d326f({},_0x514a65),{'attrs':_0x3d326f(_0x3d326f({},_0x514a65[_0x54e8ad(0x2b4)]),{'id':_0x514a65[_0x54e8ad(0x2b4)]['id']+_0x4ea56c[_0x54e8ad(0x2ae)]})}):_0x514a65;})}):_0x25e0e0;}_0x11961b(_0x208c2d,'replaceRuntimeIdsInDefs');function _0x34fbe5(){var _0x470799=_0x5c81df;return Math['random']()[_0x470799(0x2c1)](0x24)[_0x470799(0x27d)](0x2,0x8);}_0x11961b(_0x34fbe5,'generateShortUuid'),_0x443a37[_0x5c81df(0x1c7)]='UniverIcon';var _0x5d6e9f={'tag':'svg','attrs':{'fill':_0x5c81df(0x219),'viewBox':_0x5c81df(0x264),'width':_0x5c81df(0x257),'height':_0x5c81df(0x257)},'children':[{'tag':_0x5c81df(0x2d1),'attrs':{'fill':_0x5c81df(0x254),'d':_0x5c81df(0x1dd),'fillRule':_0x5c81df(0x1a3),'clipRule':_0x5c81df(0x1a3)}}]},_0xc6e91b=_0x598e6d['forwardRef'](function(_0x13649c,_0x5d8721){var _0x1e25f6=_0x5c81df;return _0x598e6d[_0x1e25f6(0x193)](_0x443a37,Object[_0x1e25f6(0x2d3)]({},_0x13649c,{'id':'copy-single','ref':_0x5d8721,'icon':_0x5d6e9f}));});_0xc6e91b[_0x5c81df(0x1c7)]=_0x5c81df(0x18a);var _0x297ea5={'tag':_0x5c81df(0x19f),'attrs':{'fill':_0x5c81df(0x219),'viewBox':_0x5c81df(0x264),'width':_0x5c81df(0x257),'height':_0x5c81df(0x257)},'children':[{'tag':_0x5c81df(0x2d1),'attrs':{'fill':_0x5c81df(0x254),'d':_0x5c81df(0x2ca),'fillRule':_0x5c81df(0x1a3),'clipRule':_0x5c81df(0x1a3)}}]},_0x576046=_0x598e6d['forwardRef'](function(_0x26dd0c,_0x3998c5){var _0x554d31=_0x5c81df;return _0x598e6d[_0x554d31(0x193)](_0x443a37,Object[_0x554d31(0x2d3)]({},_0x26dd0c,{'id':'link-single','ref':_0x3998c5,'icon':_0x297ea5}));});_0x576046[_0x5c81df(0x1c7)]=_0x5c81df(0x26e);var _0x54dff8={'tag':_0x5c81df(0x19f),'attrs':{'fill':_0x5c81df(0x219),'viewBox':_0x5c81df(0x20d),'width':_0x5c81df(0x257),'height':_0x5c81df(0x257)},'children':[{'tag':_0x5c81df(0x2d1),'attrs':{'fill':_0x5c81df(0x254),'d':_0x5c81df(0x2a0)}}]},_0xe9ea1b=_0x598e6d[_0x5c81df(0x22d)](function(_0x52980b,_0x1663e7){var _0x5259cd=_0x5c81df;return _0x598e6d['createElement'](_0x443a37,Object['assign']({},_0x52980b,{'id':_0x5259cd(0x247),'ref':_0x1663e7,'icon':_0x54dff8}));});_0xe9ea1b[_0x5c81df(0x1c7)]=_0x5c81df(0x18e);var _0x1bd75c={'tag':_0x5c81df(0x19f),'attrs':{'fill':_0x5c81df(0x219),'viewBox':_0x5c81df(0x1cf),'width':_0x5c81df(0x257),'height':_0x5c81df(0x257)},'children':[{'tag':'path','attrs':{'fill':_0x5c81df(0x254),'d':'M12.6551\x201.98906C11.7476\x201.08113\x2010.2757\x201.08149\x209.3686\x201.98987L4.82542\x206.53955C4.75087\x206.61421\x204.69336\x206.70411\x204.65682\x206.80309L3.2461\x2010.625C3.16506\x2010.8446\x203.21909\x2011.0912\x203.3845\x2011.2568C3.54991\x2011.4224\x203.79651\x2011.4767\x204.01616\x2011.3959L7.85031\x209.98517C7.94979\x209.94856\x208.04014\x209.89077\x208.11508\x209.81579L12.6552\x205.27327C13.5618\x204.36621\x2013.5618\x202.89607\x2012.6551\x201.98906ZM10.2177\x202.83779C10.6562\x202.39869\x2011.3677\x202.39851\x2011.8064\x202.8374C12.2447\x203.27584\x2012.2447\x203.9865\x2011.8065\x204.42497L7.3392\x208.89457L4.82213\x209.82068L5.74706\x207.31487L10.2177\x202.83779Z','fillRule':_0x5c81df(0x1a3),'clipRule':_0x5c81df(0x1a3)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5c81df(0x19d)}}]},_0xedd6c9=_0x598e6d[_0x5c81df(0x22d)](function(_0x34bace,_0x18e7b7){return _0x598e6d['createElement'](_0x443a37,Object['assign']({},_0x34bace,{'id':'write-single','ref':_0x18e7b7,'icon':_0x1bd75c}));});_0xedd6c9[_0x5c81df(0x1c7)]=_0x5c81df(0x278);const _0x3f9820={'type':_0x3d36c0[_0x5c81df(0x2b0)][_0x5c81df(0x23f)],'id':_0x5c81df(0x2c7),async 'handler'(_0x401f99,_0x1ebc3c){var _0x47bfe6=_0x5c81df;if(!_0x1ebc3c)return!0x1;const {unitId:_0x4e049b,linkId:_0x42e173,segmentId:_0x3ad373}=_0x1ebc3c,_0x4aa23e=_0x401f99[_0x47bfe6(0x239)](_0x3d36c0[_0x47bfe6(0x25d)]),_0x2691de=_0x1ae07c[_0x47bfe6(0x226)](_0x401f99,{'unitId':_0x4e049b,'rangeId':_0x42e173,'segmentId':_0x3ad373});return _0x2691de?await _0x4aa23e[_0x47bfe6(0x1bf)](_0x2691de['id'],_0x2691de[_0x47bfe6(0x1eb)]):!0x1;}},_0x6a9ae3=_0x11961b(_0x587297=>{var _0x14ee07=_0x5c81df,_0x10bb6d;const _0x5e3cce=_0x587297[_0x14ee07(0x239)](_0x3c8eef[_0x14ee07(0x22e)]),_0x2b4e40=_0x587297[_0x14ee07(0x239)](_0x3d36c0[_0x14ee07(0x1e5)]),_0x32f1c9=_0x5e3cce[_0x14ee07(0x263)]();if(!_0x32f1c9[_0x14ee07(0x22b)]||_0x32f1c9['length']>0x1)return!0x0;const _0x4485c1=_0x32f1c9[0x0],_0x2e4a18=_0x2b4e40[_0x14ee07(0x279)](_0x3d36c0['UniverInstanceType'][_0x14ee07(0x191)]);if(!_0x2e4a18||!_0x4485c1||_0x4485c1[_0x14ee07(0x215)])return!0x0;const _0x4233a9=_0x2e4a18[_0x14ee07(0x1e6)](_0x4485c1[_0x14ee07(0x1d5)])[_0x14ee07(0x28c)](),_0x474c27=_0x4233a9==null?void 0x0:_0x4233a9[_0x14ee07(0x285)];if(!_0x474c27)return!0x0;for(let _0x36e852=0x0,_0x363f11=_0x474c27[_0x14ee07(0x22b)];_0x36e852<_0x363f11;_0x36e852++){const _0x379f13=_0x474c27[_0x36e852];if(_0x4485c1['startOffset']<=_0x379f13['startIndex']&&_0x4485c1[_0x14ee07(0x1ae)]>_0x379f13[_0x14ee07(0x1db)])return!0x0;if(_0x379f13[_0x14ee07(0x1db)]>_0x4485c1[_0x14ee07(0x1ae)])break;}return!_0x3d36c0[_0x14ee07(0x1fe)]['customRange'][_0x14ee07(0x246)](_0x4485c1,(_0x10bb6d=_0x4233a9[_0x14ee07(0x1de)])!=null?_0x10bb6d:[])[_0x14ee07(0x2af)](_0x34dfda=>_0x34dfda['rangeType']===_0x3d36c0['CustomRangeType'][_0x14ee07(0x23b)]);},_0x5c81df(0x1b9)),_0x1de7c0={'type':_0x3d36c0[_0x5c81df(0x2b0)][_0x5c81df(0x297)],'id':_0x5c81df(0x2c0),'handler'(_0x5c0409,_0x288f03){var _0x13df4e=_0x5c81df,_0x4dc8e2;const _0x476bb8=_0x288f03==null?void 0x0:_0x288f03[_0x13df4e(0x2dc)],_0x2d06cf=_0x5c0409[_0x13df4e(0x239)](_0x3d36c0[_0x13df4e(0x1e5)]);if(_0x6a9ae3(_0x5c0409)&&!_0x476bb8)return!0x1;const _0x46fe30=_0x5c0409[_0x13df4e(0x239)](_0x108edb),_0xac6ed6=(_0x476bb8==null?void 0x0:_0x476bb8['unitId'])||((_0x4dc8e2=_0x2d06cf[_0x13df4e(0x279)](_0x3d36c0[_0x13df4e(0x1e1)][_0x13df4e(0x191)]))==null?void 0x0:_0x4dc8e2['getUnitId']());return _0xac6ed6?(_0x46fe30['showEditPopup'](_0xac6ed6,_0x476bb8),!0x0):!0x1;}},_0x4c1a52={'type':_0x3d36c0[_0x5c81df(0x2b0)]['OPERATION'],'id':'doc.operation.toggle-hyper-link-info-popup','handler'(_0x16daa7,_0x6c591f){var _0x562f68=_0x5c81df;const _0x1a8199=_0x16daa7[_0x562f68(0x239)](_0x108edb);return _0x6c591f?(_0x1a8199[_0x562f68(0x1e2)](_0x6c591f),!0x0):(_0x1a8199[_0x562f68(0x1e9)](),!0x0);}},_0x18d28e={'type':_0x3d36c0[_0x5c81df(0x2b0)][_0x5c81df(0x297)],'id':'doc.operation.click-hyper-link','handler'(_0x366d8d,_0xbe150c){var _0x34cadd=_0x5c81df,_0x841d2c,_0x29a832,_0x4d7a15;if(!_0xbe150c)return!0x1;const {unitId:_0x486cf1,linkId:_0x5ed86f,segmentId:_0x33d8ba}=_0xbe150c,_0x52a535=_0x366d8d[_0x34cadd(0x239)](_0x3d36c0[_0x34cadd(0x1e5)])[_0x34cadd(0x1cd)](_0x486cf1,_0x3d36c0[_0x34cadd(0x1e1)][_0x34cadd(0x191)]),_0x3364df=_0x52a535==null?void 0x0:_0x52a535['getSelfOrHeaderFooterModel'](_0x33d8ba)[_0x34cadd(0x28c)](),_0x4d6dda=(_0x4d7a15=(_0x29a832=(_0x841d2c=_0x3364df==null?void 0x0:_0x3364df[_0x34cadd(0x1de)])==null?void 0x0:_0x841d2c[_0x34cadd(0x213)](_0x518bef=>_0x518bef[_0x34cadd(0x23e)]===_0x5ed86f&&_0x518bef[_0x34cadd(0x1ac)]===_0x3d36c0[_0x34cadd(0x1ed)]['HYPERLINK']))==null?void 0x0:_0x29a832['properties'])==null?void 0x0:_0x4d7a15[_0x34cadd(0x210)];return _0x4d6dda&&window[_0x34cadd(0x1ee)](_0x4d6dda,_0x34cadd(0x225),_0x34cadd(0x259)),!0x0;}},_0x50b34c={'docLink':_0x5c81df(0x2d8),'docLinkType':'univer-doc-link-type','docLinkContent':_0x5c81df(0x26c),'docLinkContentError':_0x5c81df(0x20f),'docLinkUrl':_0x5c81df(0x1a1),'docLinkOperations':_0x5c81df(0x19a),'docLinkOperation':'univer-doc-link-operation','docLinkOperationError':_0x5c81df(0x261)},_0x2d40a3=_0x11961b(()=>{var _0x1e109c=_0x5c81df,_0x454e49,_0x3165aa;const _0x1f511a=_0x3d36c0[_0x1e109c(0x1a4)](_0x108edb),_0x41412e=_0x3d36c0[_0x1e109c(0x1a4)](_0x3d36c0[_0x1e109c(0x25d)]),_0x50c9e2=_0x3d36c0[_0x1e109c(0x1a4)](_0x66b149[_0x1e109c(0x24e)]),_0x10cd19=_0x3d36c0[_0x1e109c(0x1a4)](_0x3d36c0[_0x1e109c(0x199)]),_0x3d727a=_0x66b149[_0x1e109c(0x21e)](_0x1f511a[_0x1e109c(0x27c)]),_0xab65df=_0x3d36c0['useDependency'](_0x3d36c0[_0x1e109c(0x1e5)]);if(!_0x3d727a)return null;const {unitId:_0x14b4be,linkId:_0x15f0b5,segmentId:_0x29f98c}=_0x3d727a,_0x4d9f7c=_0xab65df[_0x1e109c(0x1cd)](_0x14b4be,_0x3d36c0['UniverInstanceType'][_0x1e109c(0x191)]),_0x242fe3=_0x4d9f7c==null?void 0x0:_0x4d9f7c[_0x1e109c(0x1e6)](_0x29f98c)[_0x1e109c(0x28c)](),_0x2cf23b=(_0x454e49=_0x242fe3==null?void 0x0:_0x242fe3[_0x1e109c(0x1de)])==null?void 0x0:_0x454e49[_0x1e109c(0x213)](_0x4e91e7=>_0x4e91e7[_0x1e109c(0x23e)]===_0x15f0b5&&_0x4e91e7['rangeType']===_0x3d36c0['CustomRangeType'][_0x1e109c(0x23b)]);if(!_0x2cf23b)return null;const _0x45a9ca=(_0x3165aa=_0x2cf23b[_0x1e109c(0x1d6)])==null?void 0x0:_0x3165aa['url'];return _0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2d4),{'className':_0x50b34c[_0x1e109c(0x18b)],'onClick':_0x11961b(()=>{var _0x54848b=_0x1e109c;_0x1f511a[_0x54848b(0x1e9)]();},_0x1e109c(0x26a))},_0x598e6d['createElement'](_0x1e109c(0x2d4),{'className':_0x5454a8(_0x50b34c[_0x1e109c(0x234)]),'onClick':_0x11961b(()=>window[_0x1e109c(0x1ee)](_0x45a9ca),_0x1e109c(0x26a))},_0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2d4),{'className':_0x50b34c[_0x1e109c(0x1cb)]},_0x598e6d[_0x1e109c(0x193)](_0x576046,null)),_0x598e6d[_0x1e109c(0x193)](_0xf2b86a['Tooltip'],{'showIfEllipsis':!0x0,'title':_0x45a9ca},_0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2da),{'className':_0x50b34c['docLinkUrl']},_0x45a9ca))),_0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2d4),{'className':_0x50b34c[_0x1e109c(0x1bb)]},_0x598e6d['createElement'](_0x1e109c(0x2d4),{'className':_0x5454a8(_0x50b34c[_0x1e109c(0x21c)]),'onClick':_0x11961b(()=>{var _0x226373=_0x1e109c;navigator[_0x226373(0x2b7)][_0x226373(0x1d1)](_0x45a9ca),_0x50c9e2[_0x226373(0x209)]({'content':_0x10cd19['t'](_0x226373(0x255)),'type':_0xf2b86a[_0x226373(0x2c8)][_0x226373(0x1c8)]});},'onClick')},_0x598e6d[_0x1e109c(0x193)](_0xf2b86a[_0x1e109c(0x248)],{'placement':_0x1e109c(0x24c),'title':_0x10cd19['t'](_0x1e109c(0x284))},_0x598e6d['createElement'](_0xc6e91b,null))),_0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2d4),{'className':_0x50b34c[_0x1e109c(0x21c)],'onClick':_0x11961b(()=>{var _0x57b8fb=_0x1e109c;_0x41412e[_0x57b8fb(0x235)](_0x1de7c0['id'],{'link':_0x3d727a});},_0x1e109c(0x26a))},_0x598e6d[_0x1e109c(0x193)](_0xf2b86a[_0x1e109c(0x248)],{'placement':_0x1e109c(0x24c),'title':_0x10cd19['t'](_0x1e109c(0x24d))},_0x598e6d[_0x1e109c(0x193)](_0xedd6c9,null))),_0x598e6d[_0x1e109c(0x193)](_0x1e109c(0x2d4),{'className':_0x50b34c[_0x1e109c(0x21c)],'onClick':_0x11961b(()=>{var _0x2c16b9=_0x1e109c;_0x41412e['executeCommand'](_0x3f9820['id'],{'unitId':_0x14b4be,'linkId':_0x2cf23b[_0x2c16b9(0x23e)],'segmentId':_0x29f98c});},_0x1e109c(0x26a))},_0x598e6d[_0x1e109c(0x193)](_0xf2b86a[_0x1e109c(0x248)],{'placement':'bottom','title':_0x10cd19['t']('docLink.info.cancel')},_0x598e6d[_0x1e109c(0x193)](_0xe9ea1b,null)))));},_0x5c81df(0x1b7));_0x2d40a3[_0x5c81df(0x28d)]=_0x5c81df(0x2aa);var _0x552400=Object[_0x5c81df(0x1c1)],_0x3f8d8f=Object[_0x5c81df(0x27a)],_0x49131b=_0x11961b((_0x2d132c,_0x2fed9b,_0x59bbd6,_0x29985c)=>{var _0x52b507=_0x5c81df;for(var _0x1e82c7=_0x29985c>0x1?void 0x0:_0x29985c?_0x3f8d8f(_0x2fed9b,_0x59bbd6):_0x2fed9b,_0x5c92a8=_0x2d132c[_0x52b507(0x22b)]-0x1,_0x291551;_0x5c92a8>=0x0;_0x5c92a8--)(_0x291551=_0x2d132c[_0x5c92a8])&&(_0x1e82c7=(_0x29985c?_0x291551(_0x2fed9b,_0x59bbd6,_0x1e82c7):_0x291551(_0x1e82c7))||_0x1e82c7);return _0x29985c&&_0x1e82c7&&_0x552400(_0x2fed9b,_0x59bbd6,_0x1e82c7),_0x1e82c7;},_0x5c81df(0x1ce)),_0x9c841d=_0x11961b((_0x28a31d,_0x2ef78e)=>(_0x180649,_0x1f75da)=>_0x2ef78e(_0x180649,_0x1f75da,_0x28a31d),_0x5c81df(0x2be));const _0x2e4e42=0x0;let _0x108edb=(_0x4c72e3=class extends _0x3d36c0['Disposable']{constructor(_0x21f448,_0x4b2fa8,_0x570141){var _0x30aa1c=_0x5c81df;super(),_0x2360ae(this,_0x30aa1c(0x26d),new _0xc42170[(_0x30aa1c(0x192))](null)),_0x2360ae(this,_0x30aa1c(0x189),new _0xc42170[(_0x30aa1c(0x192))](null)),_0x2360ae(this,_0x30aa1c(0x245),this[_0x30aa1c(0x26d)]['asObservable']()),_0x2360ae(this,_0x30aa1c(0x27c),this[_0x30aa1c(0x189)][_0x30aa1c(0x250)]()),_0x2360ae(this,'_editPopup',null),_0x2360ae(this,_0x30aa1c(0x19c),null),(this[_0x30aa1c(0x28f)]=_0x21f448,this[_0x30aa1c(0x1a9)]=_0x4b2fa8,this[_0x30aa1c(0x1c2)]=_0x570141,this['disposeWithMe'](()=>{var _0x44725e=_0x30aa1c;this[_0x44725e(0x26d)][_0x44725e(0x1ca)](),this[_0x44725e(0x189)][_0x44725e(0x1ca)]();}));}get[_0x5c81df(0x21f)](){var _0x51ac73=_0x5c81df;return this['_editingLink$'][_0x51ac73(0x275)];}get[_0x5c81df(0x240)](){var _0x42053c=_0x5c81df;return this[_0x42053c(0x189)][_0x42053c(0x275)];}[_0x5c81df(0x227)](_0x5a8380,_0x2a7c21){var _0x1467a7=_0x5c81df,_0x518c47,_0x1ffea6,_0xbfeb50;this[_0x1467a7(0x187)]&&this[_0x1467a7(0x187)]['dispose'](),this[_0x1467a7(0x26d)][_0x1467a7(0x21d)](_0x2a7c21);let _0x1ebd46=this['_textSelectionManagerService'][_0x1467a7(0x2ab)]();if(_0x2a7c21){const {unitId:_0x4a0303,linkId:_0x3011e7,segmentId:_0x3638ab,segmentPage:_0x4f8571}=_0x2a7c21,_0xe16e92=this[_0x1467a7(0x1c2)]['getUnit'](_0x4a0303,_0x3d36c0[_0x1467a7(0x1e1)][_0x1467a7(0x191)]),_0x1e485b=(_0xbfeb50=(_0x1ffea6=(_0x518c47=_0xe16e92==null?void 0x0:_0xe16e92[_0x1467a7(0x1e6)](_0x3638ab))==null?void 0x0:_0x518c47[_0x1467a7(0x28c)]())==null?void 0x0:_0x1ffea6['customRanges'])==null?void 0x0:_0xbfeb50[_0x1467a7(0x213)](_0x494806=>_0x494806[_0x1467a7(0x23e)]===_0x3011e7);_0x1e485b&&(_0x1ebd46={'collapsed':!0x1,'startOffset':_0x1e485b[_0x1467a7(0x1db)]+_0x2e4e42,'endOffset':_0x1e485b[_0x1467a7(0x2c4)]+0x1,'segmentId':_0x3638ab,'segmentPage':_0x4f8571},this['_textSelectionManagerService'][_0x1467a7(0x22c)]([{'startOffset':_0x1e485b['startIndex'],'endOffset':_0x1e485b['endIndex']+0x1}]));}return _0x1ebd46?(this['_editPopup']=this['_docCanvasPopupManagerService'][_0x1467a7(0x1b1)](_0x1ebd46,{'componentKey':_0x1cc563[_0x1467a7(0x28d)],'direction':'bottom'},_0x5a8380),this[_0x1467a7(0x187)]):null;}['hideEditPopup'](){var _0x5e7b3e=_0x5c81df,_0x5246b8;this[_0x5e7b3e(0x26d)][_0x5e7b3e(0x21d)](null),(_0x5246b8=this[_0x5e7b3e(0x187)])==null||_0x5246b8[_0x5e7b3e(0x19b)]();}[_0x5c81df(0x1e2)](_0x257235){var _0x11fabd=_0x5c81df,_0x31b0f2,_0x3fcdbc,_0x5e71e3,_0x331db5,_0x104dbd,_0x3a278d;const {linkId:_0x5aa54c,unitId:_0x12bcf7,segmentId:_0x2a6bfa,segmentPage:_0x29abb8}=_0x257235;if(((_0x31b0f2=this[_0x11fabd(0x240)])==null?void 0x0:_0x31b0f2['linkId'])===_0x5aa54c&&((_0x3fcdbc=this['showing'])==null?void 0x0:_0x3fcdbc['unitId'])===_0x12bcf7&&((_0x5e71e3=this[_0x11fabd(0x240)])==null?void 0x0:_0x5e71e3[_0x11fabd(0x1d5)])===_0x2a6bfa&&((_0x331db5=this['showing'])==null?void 0x0:_0x331db5[_0x11fabd(0x1e7)])===_0x29abb8)return;this['_infoPopup']&&this['_infoPopup'][_0x11fabd(0x19b)]();const _0x1ee4a6=this[_0x11fabd(0x1c2)][_0x11fabd(0x1cd)](_0x12bcf7,_0x3d36c0[_0x11fabd(0x1e1)][_0x11fabd(0x191)]);if(!_0x1ee4a6)return;const _0x4ce6e2=(_0x3a278d=(_0x104dbd=_0x1ee4a6['getSelfOrHeaderFooterModel'](_0x257235[_0x11fabd(0x1d5)])[_0x11fabd(0x28c)]())==null?void 0x0:_0x104dbd[_0x11fabd(0x1de)])==null?void 0x0:_0x3a278d[_0x11fabd(0x213)](_0x1a54ea=>_0x1a54ea[_0x11fabd(0x23e)]===_0x5aa54c);if(this[_0x11fabd(0x189)]['next']({'unitId':_0x12bcf7,'linkId':_0x5aa54c,'segmentId':_0x2a6bfa,'segmentPage':_0x29abb8}),!!_0x4ce6e2)return this[_0x11fabd(0x19c)]=this[_0x11fabd(0x28f)][_0x11fabd(0x1b1)]({'collapsed':!0x1,'startOffset':_0x4ce6e2[_0x11fabd(0x1db)]+_0x2e4e42,'endOffset':_0x4ce6e2['endIndex']+0x1,'segmentId':_0x257235[_0x11fabd(0x1d5)],'segmentPage':_0x257235[_0x11fabd(0x1e7)]},{'componentKey':_0x2d40a3[_0x11fabd(0x28d)],'direction':_0x11fabd(0x27b),'multipleDirection':_0x11fabd(0x197),'onClickOutside':_0x11961b(()=>{var _0xcb6100=_0x11fabd;this[_0xcb6100(0x1e9)]();},_0x11fabd(0x268))},_0x257235[_0x11fabd(0x22f)]),this[_0x11fabd(0x19c)];}[_0x5c81df(0x1e9)](){var _0x318c8c=_0x5c81df,_0x266049;this[_0x318c8c(0x189)][_0x318c8c(0x21d)](null),(_0x266049=this[_0x318c8c(0x19c)])==null||_0x266049['dispose']();}},_0x11961b(_0x4c72e3,'DocHyperLinkPopupService'),_0x4c72e3);_0x108edb=_0x49131b([_0x9c841d(0x0,_0x3d36c0[_0x5c81df(0x1ad)](_0x1ae07c[_0x5c81df(0x25c)])),_0x9c841d(0x1,_0x3d36c0['Inject'](_0x3c8eef[_0x5c81df(0x22e)])),_0x9c841d(0x2,_0x3d36c0[_0x5c81df(0x1e5)])],_0x108edb);var _0x1bb516=Object[_0x5c81df(0x1c1)],_0x31ab43=Object[_0x5c81df(0x27a)],_0x5a0622=_0x11961b((_0x3e86e7,_0x370ef7,_0x3fff32,_0x2b02fa)=>{var _0x47f028=_0x5c81df;for(var _0x54c3f7=_0x2b02fa>0x1?void 0x0:_0x2b02fa?_0x31ab43(_0x370ef7,_0x3fff32):_0x370ef7,_0xbde340=_0x3e86e7[_0x47f028(0x22b)]-0x1,_0x35e7ba;_0xbde340>=0x0;_0xbde340--)(_0x35e7ba=_0x3e86e7[_0xbde340])&&(_0x54c3f7=(_0x2b02fa?_0x35e7ba(_0x370ef7,_0x3fff32,_0x54c3f7):_0x35e7ba(_0x54c3f7))||_0x54c3f7);return _0x2b02fa&&_0x54c3f7&&_0x1bb516(_0x370ef7,_0x3fff32,_0x54c3f7),_0x54c3f7;},'__decorateClass$4'),_0x5894d8=_0x11961b((_0x3164a0,_0x1a1146)=>(_0x2bf6c3,_0x1c32ab)=>_0x1a1146(_0x2bf6c3,_0x1c32ab,_0x3164a0),_0x5c81df(0x217));let _0x36e840=(_0x2c9a37=class extends _0x3d36c0['Disposable']{constructor(_0x5d3218,_0x192ec8,_0x5a033b){var _0x5149c0=_0x5c81df;super(),this[_0x5149c0(0x2cb)]=_0x5d3218,this[_0x5149c0(0x1c2)]=_0x192ec8,this[_0x5149c0(0x1a0)]=_0x5a033b,this[_0x5149c0(0x1dc)]();}[_0x5c81df(0x1dc)](){var _0x2c5c2e=_0x5c81df;this[_0x2c5c2e(0x238)](this[_0x2c5c2e(0x2cb)]['onCommandExecuted'](_0x54cc69=>{var _0x23526a=_0x2c5c2e,_0x42055d,_0xa7934c,_0x3f4cb5;if(_0x54cc69['id']===_0x3c8eef[_0x23526a(0x296)]['id']){const _0x1c1336=_0x54cc69[_0x23526a(0x1eb)],{unitId:_0x192ae3,ranges:_0x492858,segmentId:_0x40b39d}=_0x1c1336,_0x58a2d8=this['_univerInstanceService'][_0x23526a(0x1cd)](_0x192ae3,_0x3d36c0[_0x23526a(0x1e1)][_0x23526a(0x191)]),_0xd23785=_0x492858[0x0];if(_0xd23785&&_0x58a2d8){const {startOffset:_0x31afbe,endOffset:_0xed48f7,collapsed:_0x15df39,segmentPage:_0x55d9a1}=_0xd23785,_0x4dc0b3=(_0xa7934c=(_0x42055d=_0x58a2d8['getSelfOrHeaderFooterModel'](_0x40b39d))==null?void 0x0:_0x42055d['getBody']())==null?void 0x0:_0xa7934c['customRanges'];if(_0x15df39){const _0x361342=(_0x3f4cb5=_0x4dc0b3==null?void 0x0:_0x4dc0b3[_0x23526a(0x290)](_0x564377=>_0x564377[_0x23526a(0x1db)]<_0x31afbe&&_0x564377[_0x23526a(0x2c4)]>_0xed48f7-0x1))!=null?_0x3f4cb5:-0x1;if(_0x361342>-0x1){const _0xb21c34=_0x4dc0b3[_0x361342];this[_0x23526a(0x1a0)][_0x23526a(0x1e2)]({'unitId':_0x192ae3,'linkId':_0xb21c34[_0x23526a(0x23e)],'segmentId':_0x40b39d,'segmentPage':_0x55d9a1});return;}}else{if(_0x4dc0b3==null?void 0x0:_0x4dc0b3[_0x23526a(0x213)](_0x2241d3=>_0x2241d3[_0x23526a(0x1db)]<=_0x31afbe&&_0x2241d3[_0x23526a(0x2c4)]>=_0xed48f7-0x1))return;}}this['_docHyperLinkService'][_0x23526a(0x1e9)](),this[_0x23526a(0x1a0)][_0x23526a(0x258)]();}}));}},_0x11961b(_0x2c9a37,_0x5c81df(0x1e3)),_0x2c9a37);_0x36e840=_0x5a0622([_0x5894d8(0x0,_0x3d36c0[_0x5c81df(0x25d)]),_0x5894d8(0x1,_0x3d36c0['IUniverInstanceService']),_0x5894d8(0x2,_0x3d36c0[_0x5c81df(0x1ad)](_0x108edb))],_0x36e840);var _0x1282db=Object[_0x5c81df(0x1c1)],_0x58dd21=Object[_0x5c81df(0x27a)],_0x439aad=_0x11961b((_0x31a7dd,_0x1bfbcf,_0x4dd657,_0x4337e3)=>{for(var _0x373a2c=_0x4337e3>0x1?void 0x0:_0x4337e3?_0x58dd21(_0x1bfbcf,_0x4dd657):_0x1bfbcf,_0x38ed5f=_0x31a7dd['length']-0x1,_0x49474f;_0x38ed5f>=0x0;_0x38ed5f--)(_0x49474f=_0x31a7dd[_0x38ed5f])&&(_0x373a2c=(_0x4337e3?_0x49474f(_0x1bfbcf,_0x4dd657,_0x373a2c):_0x49474f(_0x373a2c))||_0x373a2c);return _0x4337e3&&_0x373a2c&&_0x1282db(_0x1bfbcf,_0x4dd657,_0x373a2c),_0x373a2c;},'__decorateClass$3'),_0x11d6e9=_0x11961b((_0xccf6f1,_0x2a11ae)=>(_0x1749b8,_0x1e009d)=>_0x2a11ae(_0x1749b8,_0x1e009d,_0xccf6f1),_0x5c81df(0x27e));let _0x10bd2b=(_0x2e26d2=class extends _0x3d36c0[_0x5c81df(0x1aa)]{constructor(_0x16b304,_0x5d77cb,_0x5683ac,_0x23432f,_0x5d9dc7,_0x59b3e0){var _0xc45e85=_0x5c81df;super(),this[_0xc45e85(0x1c0)]=_0x16b304,this['_docEventManagerService']=_0x5d77cb,this[_0xc45e85(0x2cb)]=_0x5683ac,this[_0xc45e85(0x265)]=_0x23432f,this[_0xc45e85(0x2c9)]=_0x5d9dc7,this[_0xc45e85(0x2a8)]=_0x59b3e0,this[_0xc45e85(0x249)](),this['_initClick']();}get[_0x5c81df(0x1f9)](){var _0x562655=_0x5c81df;return this[_0x562655(0x2c9)][_0x562655(0x229)]();}[_0x5c81df(0x2bb)](){var _0x18952d=_0x5c81df;this[_0x18952d(0x265)][_0x18952d(0x240)]&&this[_0x18952d(0x2cb)][_0x18952d(0x235)](_0x4c1a52['id']);}['_initHover'](){var _0x3a74d6=_0x5c81df;this[_0x3a74d6(0x238)](this[_0x3a74d6(0x26b)]['hoverCustomRanges$']['subscribe'](_0x554888=>{var _0x199c33=_0x3a74d6,_0x39e064;const _0x53693d=_0x554888[_0x199c33(0x213)](_0xab5c61=>_0xab5c61['range'][_0x199c33(0x1ac)]===_0x3d36c0[_0x199c33(0x1ed)][_0x199c33(0x23b)]),_0x43860b=this[_0x199c33(0x2a8)][_0x199c33(0x269)](),_0x31ebe6=_0x43860b==null?void 0x0:_0x43860b[0x0][_0x199c33(0x1d5)];if(((_0x39e064=_0x53693d==null?void 0x0:_0x53693d[_0x199c33(0x1d5)])!=null?_0x39e064:'')!==_0x31ebe6){this[_0x199c33(0x2bb)]();return;}_0x53693d?this['_commandService'][_0x199c33(0x235)](_0x4c1a52['id'],{'unitId':this[_0x199c33(0x1c0)]['unitId'],'linkId':_0x53693d[_0x199c33(0x271)][_0x199c33(0x23e)],'segmentId':_0x53693d[_0x199c33(0x1d5)],'segmentPage':_0x53693d[_0x199c33(0x282)],'rangeId':_0x53693d[_0x199c33(0x271)][_0x199c33(0x23e)]}):this[_0x199c33(0x2bb)]();}));}[_0x5c81df(0x2c5)](){var _0x44f75a=_0x5c81df;this[_0x44f75a(0x238)](this[_0x44f75a(0x26b)][_0x44f75a(0x195)][_0x44f75a(0x270)](_0x595c61=>{var _0x361d5a=_0x44f75a;const _0x4854ad=_0x595c61[_0x361d5a(0x271)];_0x4854ad&&this[_0x361d5a(0x2cb)][_0x361d5a(0x235)](_0x18d28e['id'],{'unitId':this[_0x361d5a(0x1c0)]['unitId'],'linkId':_0x4854ad[_0x361d5a(0x23e)],'segmentId':_0x595c61[_0x361d5a(0x1d5)]});}));}},_0x11961b(_0x2e26d2,'DocHyperLinkEventRenderController'),_0x2e26d2);_0x10bd2b=_0x439aad([_0x11d6e9(0x1,_0x3d36c0[_0x5c81df(0x1ad)](_0x1ae07c[_0x5c81df(0x1c4)])),_0x11d6e9(0x2,_0x3d36c0[_0x5c81df(0x25d)]),_0x11d6e9(0x3,_0x3d36c0[_0x5c81df(0x1ad)](_0x108edb)),_0x11d6e9(0x4,_0x3d36c0[_0x5c81df(0x1ad)](_0x3c8eef[_0x5c81df(0x237)])),_0x11d6e9(0x5,_0x3d36c0[_0x5c81df(0x1ad)](_0x3c8eef['DocSelectionManagerService']))],_0x10bd2b);var _0x4a8e1e=Object[_0x5c81df(0x1c1)],_0xc516cb=Object[_0x5c81df(0x27a)],_0x126fd4=_0x11961b((_0x3076c5,_0x231f46,_0x163cee,_0x12bdd4)=>{for(var _0x224379=_0x12bdd4>0x1?void 0x0:_0x12bdd4?_0xc516cb(_0x231f46,_0x163cee):_0x231f46,_0x31bb27=_0x3076c5['length']-0x1,_0x373c37;_0x31bb27>=0x0;_0x31bb27--)(_0x373c37=_0x3076c5[_0x31bb27])&&(_0x224379=(_0x12bdd4?_0x373c37(_0x231f46,_0x163cee,_0x224379):_0x373c37(_0x224379))||_0x224379);return _0x12bdd4&&_0x224379&&_0x4a8e1e(_0x231f46,_0x163cee,_0x224379),_0x224379;},_0x5c81df(0x204)),_0x2bf9db=_0x11961b((_0x5b4b6a,_0x242c48)=>(_0x5897d8,_0x53e539)=>_0x242c48(_0x5897d8,_0x53e539,_0x5b4b6a),_0x5c81df(0x29c));let _0x7285f4=(_0x598a3d=class extends _0x3d36c0[_0x5c81df(0x1aa)]{constructor(_0x313f6a,_0x5489a2,_0x26c4e2,_0x5a54f6){var _0xdbc35=_0x5c81df;super(),this[_0xdbc35(0x1c0)]=_0x313f6a,this[_0xdbc35(0x2a3)]=_0x5489a2,this[_0xdbc35(0x291)]=_0x26c4e2,this[_0xdbc35(0x2b5)]=_0x5a54f6,this['_init'](),this[_0xdbc35(0x2d7)]();}[_0x5c81df(0x22a)](){var _0x1d48b1=_0x5c81df;this[_0x1d48b1(0x2a3)][_0x1d48b1(0x273)](_0x3c8eef['DOC_INTERCEPTOR_POINT'][_0x1d48b1(0x298)],{'handler':_0x11961b((_0x1ab330,_0x4e8092,_0x1450cc)=>{var _0xb50297=_0x1d48b1;if(!_0x1ab330)return _0x1450cc(_0x1ab330);const {unitId:_0x490851}=_0x4e8092,_0x3c5e37=this[_0xb50297(0x291)][_0xb50297(0x240)],{linkId:_0x1b68a8,unitId:_0x1318b0}=_0x3c5e37||{},_0x254bb9=_0x1318b0===_0x490851&&_0x1ab330[_0xb50297(0x23e)]===_0x1b68a8;return _0x1450cc({..._0x1ab330,'active':_0x254bb9});},_0x1d48b1(0x2a1))});}[_0x5c81df(0x2d7)](){var _0x3a2474=_0x5c81df;this[_0x3a2474(0x238)](this['_hyperLinkService'][_0x3a2474(0x27c)][_0x3a2474(0x266)](_0xc42170[_0x3a2474(0x252)]((_0x2e0edf,_0x17d618)=>(_0x2e0edf==null?void 0x0:_0x2e0edf['linkId'])===(_0x17d618==null?void 0x0:_0x17d618[_0x3a2474(0x2a2)])&&(_0x2e0edf==null?void 0x0:_0x2e0edf[_0x3a2474(0x22f)])===(_0x17d618==null?void 0x0:_0x17d618[_0x3a2474(0x22f)])),_0xc42170[_0x3a2474(0x2d6)]())[_0x3a2474(0x270)](([_0x1b9d06,_0x16af2b])=>{var _0x25a41e=_0x3a2474;_0x16af2b?_0x16af2b['unitId']===this[_0x25a41e(0x1c0)][_0x25a41e(0x22f)]&&this[_0x25a41e(0x2b5)][_0x25a41e(0x196)](_0x16af2b[_0x25a41e(0x22f)]):_0x1b9d06&&_0x1b9d06['unitId']===this['_context'][_0x25a41e(0x22f)]&&this[_0x25a41e(0x2b5)][_0x25a41e(0x196)](_0x1b9d06[_0x25a41e(0x22f)]);}));}},_0x11961b(_0x598a3d,_0x5c81df(0x1e4)),_0x598a3d);_0x7285f4=_0x126fd4([_0x2bf9db(0x1,_0x3d36c0[_0x5c81df(0x1ad)](_0x3c8eef[_0x5c81df(0x1f2)])),_0x2bf9db(0x2,_0x3d36c0[_0x5c81df(0x1ad)](_0x108edb)),_0x2bf9db(0x3,_0x3d36c0[_0x5c81df(0x1ad)](_0x1ae07c[_0x5c81df(0x1fb)]))],_0x7285f4);const _0x4882d9=_0x5c81df(0x20c);function _0x369a0e(_0x32932b){var _0x4610c5=_0x5c81df;return{'id':_0x1de7c0['id'],'type':_0x66b149[_0x4610c5(0x23c)][_0x4610c5(0x251)],'icon':_0x4882d9,'title':_0x4610c5(0x1f4),'tooltip':_0x4610c5(0x1f4),'hidden$':_0x66b149[_0x4610c5(0x256)](_0x32932b,_0x3d36c0[_0x4610c5(0x1e1)]['UNIVER_DOC']),'disabled$':new _0xc42170[(_0x4610c5(0x233))](function(_0x68984a){var _0x1d529f=_0x4610c5;const _0x3a4d14=_0x32932b['get'](_0x3c8eef[_0x1d529f(0x22e)])[_0x1d529f(0x23d)][_0x1d529f(0x266)](_0xc42170[_0x1d529f(0x21b)](0x10))[_0x1d529f(0x270)](()=>{var _0x57c946=_0x1d529f;_0x68984a[_0x57c946(0x21d)](_0x6a9ae3(_0x32932b));});return()=>{var _0x55e017=_0x1d529f;_0x3a4d14[_0x55e017(0x1d2)]();};})};}_0x11961b(_0x369a0e,_0x5c81df(0x1c6));const _0x16d581={'id':_0x1de7c0['id'],'binding':_0x66b149[_0x5c81df(0x1d9)][_0x5c81df(0x23a)]|_0x66b149[_0x5c81df(0x295)]['K'],'description':_0x5c81df(0x1f4),'preconditions':_0x1ae07c[_0x5c81df(0x1b8)]},_0x20437b={[_0x66b149[_0x5c81df(0x2a4)]['OTHERS']]:{[_0x1de7c0['id']]:{'order':0x0,'menuItemFactory':_0x369a0e}},[_0x66b149['ContextMenuPosition']['MAIN_AREA']]:{[_0x66b149[_0x5c81df(0x224)][_0x5c81df(0x200)]]:{[_0x1de7c0['id']]:{'order':0x0,'menuItemFactory':_0x369a0e}}}};var _0x2cc217=Object['defineProperty'],_0x566010=Object[_0x5c81df(0x27a)],_0x133e6d=_0x11961b((_0x1268ba,_0x4c62fe,_0x49a5af,_0x34f10e)=>{for(var _0x355299=_0x34f10e>0x1?void 0x0:_0x34f10e?_0x566010(_0x4c62fe,_0x49a5af):_0x4c62fe,_0x2d612e=_0x1268ba['length']-0x1,_0x24e078;_0x2d612e>=0x0;_0x2d612e--)(_0x24e078=_0x1268ba[_0x2d612e])&&(_0x355299=(_0x34f10e?_0x24e078(_0x4c62fe,_0x49a5af,_0x355299):_0x24e078(_0x355299))||_0x355299);return _0x34f10e&&_0x355299&&_0x2cc217(_0x4c62fe,_0x49a5af,_0x355299),_0x355299;},_0x5c81df(0x1bc)),_0x52afa2=_0x11961b((_0x3bbec8,_0x5d9511)=>(_0x1c58c9,_0x5aa6a9)=>_0x5d9511(_0x1c58c9,_0x5aa6a9,_0x3bbec8),_0x5c81df(0x2ac));let _0x3ac152=(_0x5890e7=class extends _0x3d36c0[_0x5c81df(0x1aa)]{constructor(_0x48efcd,_0x531f29,_0x496328,_0x28a530){var _0x45e575=_0x5c81df;super(),this[_0x45e575(0x243)]=_0x48efcd,this[_0x45e575(0x2cb)]=_0x531f29,this[_0x45e575(0x1fa)]=_0x496328,this[_0x45e575(0x20b)]=_0x28a530,this[_0x45e575(0x267)](),this['_initCommands'](),this['_initMenus'](),this['_initShortcut']();}['_initComponents'](){var _0x3c24a0=_0x5c81df;[[_0x1cc563,_0x1cc563[_0x3c24a0(0x28d)]],[_0x2d40a3,_0x2d40a3[_0x3c24a0(0x28d)]],[_0x576046,_0x4882d9]]['forEach'](([_0x2c5a2b,_0x3de60c])=>{var _0x4bd26a=_0x3c24a0;this[_0x4bd26a(0x243)]['register'](_0x3de60c,_0x2c5a2b);});}['_initCommands'](){var _0x12d192=_0x5c81df;[_0x520b22,_0xa906ec,_0x3f9820,_0x1de7c0,_0x4c1a52,_0x18d28e][_0x12d192(0x244)](_0xa0017=>{var _0x27bf9a=_0x12d192;this['_commandService'][_0x27bf9a(0x1c5)](_0xa0017);});}[_0x5c81df(0x2d9)](){var _0x2389de=_0x5c81df;[_0x16d581][_0x2389de(0x244)](_0x186b37=>{var _0x32ac00=_0x2389de;this[_0x32ac00(0x20b)]['registerShortcut'](_0x186b37);});}[_0x5c81df(0x1f8)](){var _0x1268e4=_0x5c81df;this[_0x1268e4(0x1fa)]['mergeMenu'](_0x20437b);}},_0x11961b(_0x5890e7,_0x5c81df(0x2ba)),_0x5890e7);_0x3ac152=_0x133e6d([_0x52afa2(0x0,_0x3d36c0['Inject'](_0x66b149[_0x5c81df(0x188)])),_0x52afa2(0x1,_0x3d36c0[_0x5c81df(0x25d)]),_0x52afa2(0x2,_0x66b149[_0x5c81df(0x274)]),_0x52afa2(0x3,_0x66b149[_0x5c81df(0x1f6)])],_0x3ac152);const _0x210043=_0x5c81df(0x1d7);var _0x5c35b5=Object[_0x5c81df(0x1c1)],_0x29fe8c=Object[_0x5c81df(0x27a)],_0x3ba427=_0x11961b((_0x4127b9,_0x31c27c,_0x2fe965)=>_0x31c27c in _0x4127b9?_0x5c35b5(_0x4127b9,_0x31c27c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fe965}):_0x4127b9[_0x31c27c]=_0x2fe965,_0x5c81df(0x220)),_0x12d0c0=_0x11961b((_0x5dc76c,_0x4802fa,_0x15a69d,_0x40803d)=>{for(var _0x1ebe5c=_0x40803d>0x1?void 0x0:_0x40803d?_0x29fe8c(_0x4802fa,_0x15a69d):_0x4802fa,_0x208664=_0x5dc76c['length']-0x1,_0x2c6a57;_0x208664>=0x0;_0x208664--)(_0x2c6a57=_0x5dc76c[_0x208664])&&(_0x1ebe5c=(_0x40803d?_0x2c6a57(_0x4802fa,_0x15a69d,_0x1ebe5c):_0x2c6a57(_0x1ebe5c))||_0x1ebe5c);return _0x40803d&&_0x1ebe5c&&_0x5c35b5(_0x4802fa,_0x15a69d,_0x1ebe5c),_0x1ebe5c;},_0x5c81df(0x2b3)),_0x33cd0f=_0x11961b((_0x10d038,_0x34379b)=>(_0x18b871,_0x25079e)=>_0x34379b(_0x18b871,_0x25079e,_0x10d038),'__decorateParam'),_0x54d1d7=_0x11961b((_0x219d8f,_0x11237a,_0x562e1a)=>_0x3ba427(_0x219d8f,typeof _0x11237a!=_0x5c81df(0x2d5)?_0x11237a+'':_0x11237a,_0x562e1a),_0x5c81df(0x218));_0x542ba7[_0x5c81df(0x1ba)]=(_0x2d3abc=class extends _0x3d36c0[_0x5c81df(0x1ec)]{constructor(_0x49729c=_0x29e59f,_0x18adc8,_0x53a983,_0x114ab4){var _0x48e404=_0x5c81df;super(),this[_0x48e404(0x242)]=_0x49729c,this[_0x48e404(0x18d)]=_0x18adc8,this[_0x48e404(0x2b6)]=_0x53a983,this[_0x48e404(0x277)]=_0x114ab4;const {menu:_0x1a3b99,..._0x1fa15f}=this[_0x48e404(0x242)];_0x1a3b99&&this['_configService'][_0x48e404(0x1ef)](_0x48e404(0x207),_0x1a3b99,{'merge':!0x0}),this[_0x48e404(0x277)][_0x48e404(0x1ef)](_0xc03980,_0x1fa15f);}['onStarting'](){var _0x8f2cde=_0x5c81df;[[_0x108edb],[_0x3ac152],[_0x36e840]][_0x8f2cde(0x244)](_0x2c7e73=>{var _0x5b424=_0x8f2cde;this[_0x5b424(0x18d)][_0x5b424(0x29f)](_0x2c7e73);}),this[_0x8f2cde(0x18d)][_0x8f2cde(0x239)](_0x3ac152);}[_0x5c81df(0x2ad)](){var _0x998530=_0x5c81df;this[_0x998530(0x18d)][_0x998530(0x239)](_0x36e840);}[_0x5c81df(0x286)](){var _0x5491f7=_0x5c81df;this[_0x5491f7(0x289)]();}[_0x5c81df(0x289)](){[[_0x7285f4],[_0x10bd2b]]['forEach'](_0x48b548=>{var _0x79ce5=_0x4d33;this[_0x79ce5(0x2b6)][_0x79ce5(0x19e)](_0x3d36c0['UniverInstanceType']['UNIVER_DOC'],_0x48b548);});}},_0x11961b(_0x2d3abc,_0x5c81df(0x1ba)),_0x2d3abc),_0x54d1d7(_0x542ba7[_0x5c81df(0x1ba)],'pluginName',_0x210043),_0x54d1d7(_0x542ba7[_0x5c81df(0x1ba)],_0x5c81df(0x1b0),_0x3d36c0[_0x5c81df(0x1e1)]['UNIVER_DOC']),_0x542ba7[_0x5c81df(0x1ba)]=_0x12d0c0([_0x3d36c0[_0x5c81df(0x2cf)](_0x57008f[_0x5c81df(0x2bd)]),_0x33cd0f(0x1,_0x3d36c0[_0x5c81df(0x1ad)](_0x3d36c0[_0x5c81df(0x25a)])),_0x33cd0f(0x2,_0xdd5a51[_0x5c81df(0x2a7)]),_0x33cd0f(0x3,_0x3d36c0['IConfigService'])],_0x542ba7[_0x5c81df(0x1ba)]),Object['defineProperty'](_0x542ba7,Symbol[_0x5c81df(0x1a6)],{'value':_0x5c81df(0x253)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/docs-hyper-link-ui",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0-nightly.202410101606",
4
4
  "private": false,
5
5
  "description": "Univer thread comment plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -48,23 +48,23 @@
48
48
  "clsx": ">=2.0.0",
49
49
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
50
50
  "rxjs": ">=7.0.0",
51
- "@univerjs/core": "0.3.0-alpha.1",
52
- "@univerjs/design": "0.3.0-alpha.1",
53
- "@univerjs/docs": "0.3.0-alpha.1",
54
- "@univerjs/docs-hyper-link": "0.3.0-alpha.1",
55
- "@univerjs/engine-render": "0.3.0-alpha.1",
56
- "@univerjs/ui": "0.3.0-alpha.1",
57
- "@univerjs/docs-ui": "0.3.0-alpha.1"
51
+ "@univerjs/core": "0.3.0-nightly.202410101606",
52
+ "@univerjs/design": "0.3.0-nightly.202410101606",
53
+ "@univerjs/docs": "0.3.0-nightly.202410101606",
54
+ "@univerjs/engine-render": "0.3.0-nightly.202410101606",
55
+ "@univerjs/docs-hyper-link": "0.3.0-nightly.202410101606",
56
+ "@univerjs/docs-ui": "0.3.0-nightly.202410101606",
57
+ "@univerjs/ui": "0.3.0-nightly.202410101606"
58
58
  },
59
59
  "dependencies": {
60
60
  "@univerjs/icons": "^0.1.78",
61
61
  "clsx": "^2.1.1",
62
- "@univerjs/design": "0.3.0-alpha.1",
63
- "@univerjs/core": "0.3.0-alpha.1",
64
- "@univerjs/docs": "0.3.0-alpha.1",
65
- "@univerjs/docs-hyper-link": "0.3.0-alpha.1",
66
- "@univerjs/engine-render": "0.3.0-alpha.1",
67
- "@univerjs/ui": "0.3.0-alpha.1"
62
+ "@univerjs/core": "0.3.0-nightly.202410101606",
63
+ "@univerjs/design": "0.3.0-nightly.202410101606",
64
+ "@univerjs/docs": "0.3.0-nightly.202410101606",
65
+ "@univerjs/docs-hyper-link": "0.3.0-nightly.202410101606",
66
+ "@univerjs/ui": "0.3.0-nightly.202410101606",
67
+ "@univerjs/engine-render": "0.3.0-nightly.202410101606"
68
68
  },
69
69
  "devDependencies": {
70
70
  "react": "18.3.1",
@@ -72,7 +72,7 @@
72
72
  "typescript": "^5.6.2",
73
73
  "vite": "^5.4.8",
74
74
  "vitest": "^2.1.1",
75
- "@univerjs-infra/shared": "0.3.0-alpha.1"
75
+ "@univerjs-infra/shared": "0.3.0"
76
76
  },
77
77
  "univerSpace": {
78
78
  ".": {
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