@univerjs/sheets-sort-ui 0.3.0-alpha.0 → 0.3.0-nightly.202410101606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -805
- package/lib/types/controllers/sheets-sort-ui.controller.d.ts +1 -1
- package/lib/types/plugin.d.ts +2 -1
- package/lib/types/services/sheets-sort-ui.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
- package/LICENSE +0 -176
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICommandService, Injector, LocaleService, RxDisposable } from '@univerjs/core';
|
|
2
1
|
import { UIPartsService, ComponentManager, IDialogService, ILayoutService, IMenuManagerService } from '@univerjs/ui';
|
|
2
|
+
import { ICommandService, Injector, LocaleService, RxDisposable } from '@univerjs/core';
|
|
3
3
|
import { SheetsRenderService } from '@univerjs/sheets-ui';
|
|
4
4
|
import { SheetsSortUIService } from '../services/sheets-sort-ui.service';
|
|
5
5
|
export declare class SheetsSortUIController extends RxDisposable {
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
1
|
import { IUniverSheetsSortUIConfig } from './controllers/config.schema';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsSortUIPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
protected readonly _injector: Injector;
|
|
@@ -8,4 +8,5 @@ export declare class UniverSheetsSortUIPlugin extends Plugin {
|
|
|
8
8
|
static pluginName: string;
|
|
9
9
|
constructor(_config: Partial<IUniverSheetsSortUIConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
10
|
onStarting(): void;
|
|
11
|
+
onRendered(): void;
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRange, Nullable, Disposable, ICommandService, ILogService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ISheetRangeLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
3
|
import { SheetsSortService } from '@univerjs/sheets-sort';
|
|
4
4
|
import { IConfirmService } from '@univerjs/ui';
|
|
5
5
|
export declare enum EXTEND_TYPE {
|
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/sheets-sort"),require("@univerjs/sheets"),require("react"),require("@univerjs/ui"),require("rxjs"),require("@univerjs/design"),require("@univerjs/engine-formula"),require("@univerjs/sheets-ui")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/sheets-sort","@univerjs/sheets","react","@univerjs/ui","rxjs","@univerjs/design","@univerjs/engine-formula","@univerjs/sheets-ui"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global.UniverSheetsSortUi={},global.UniverCore,global.UniverSheetsSort,global.UniverSheets,global.React,global.UniverUi,global.rxjs,global.UniverDesign,global.UniverEngineFormula,global.UniverSheetsUi))})(this,function(exports2,core,sheetsSort,sheets,React,ui,rxjs,design,engineFormula,sheetsUi){"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;const styles={extendConfirmContent:"univer-extend-confirm-content",extendConfirmRadioGroup:"univer-extend-confirm-radio-group",customSortPanelContainer:"univer-custom-sort-panel-container",customSortPanelExt:"univer-custom-sort-panel-ext",addCondition:"univer-add-condition",addConditionText:"univer-add-condition-text",addConditionDisable:"univer-add-condition-disable",customSortPanelFooter:"univer-custom-sort-panel-footer",customSortPanelFooterBtn:"univer-custom-sort-panel-footer-btn",customSortPanelItem:"univer-custom-sort-panel-item",customSortPanelItemHead:"univer-custom-sort-panel-item-head",customSortPanelItemHandler:"univer-custom-sort-panel-item-handler",customSortPanelItemRemove:"univer-custom-sort-panel-item-remove",customSortPanelItemColumnInput:"univer-custom-sort-panel-item-column-input",customSortPanelItemColumnInputDropdown:"univer-custom-sort-panel-item-column-input-dropdown",customSortPanelItemColumnInputText:"univer-custom-sort-panel-item-column-input-text",customSortPanelItemOrderRadio:"univer-custom-sort-panel-item-order-radio",customSortPanelItemOrderRadioCn:"univer-custom-sort-panel-item-order-radio-cn",conditionList:"univer-condition-list",embedSortBtnContainer:"univer-embed-sort-btn-container",embedSortBtn:"univer-embed-sort-btn",embedSortBtnAsc:"univer-embed-sort-btn-asc",embedSortBtnDesc:"univer-embed-sort-btn-desc",embedSortBtnIcon:"univer-embed-sort-btn-icon",customSortColMenu:"univer-custom-sort-col-menu",customSortColMenuItem:"univer-custom-sort-col-menu-item",customSortColMenuItemDesc:"univer-custom-sort-col-menu-item-desc"},ExtendConfirm=__name(props=>{const[extend,setExtend]=React.useState("0"),localeService=core.useDependency(core.LocaleService);return React.createElement("div",{className:styles.extendConfirmContent},React.createElement("div",{className:"extend-confirm-desc"},localeService.t("sheets-sort.dialog.sort-reminder-desc")),React.createElement(design.RadioGroup,{className:styles.extendConfirmRadioGroup,value:extend,direction:"vertical",onChange:__name(value=>{setExtend(value),props.onChange(value)},"onChange")},React.createElement(design.Radio,{value:"0"},localeService.t("sheets-sort.dialog.sort-reminder-no")),React.createElement(design.Radio,{value:"1"},localeService.t("sheets-sort.dialog.sort-reminder-ext"))))},"ExtendConfirm");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");const SORT_ERROR_MESSAGE={MERGE_ERROR:"sheets-sort.error.merge-size",EMPTY_ERROR:"sheets-sort.error.empty",SINGLE_ERROR:"sheets-sort.error.single",FORMULA_ARRAY:"sheets-sort.error.formula-array"};let SheetsSortUIService=(_a=class extends core.Disposable{constructor(_univerInstanceService,_confirmService,_logService,_selectionManagerService,_sheetsSortService,_localeService,_commandService){super();__publicField(this,"_customSortState$",new rxjs.BehaviorSubject(null));__publicField(this,"customSortState$",this._customSortState$.asObservable());this._univerInstanceService=_univerInstanceService,this._confirmService=_confirmService,this._logService=_logService,this._selectionManagerService=_selectionManagerService,this._sheetsSortService=_sheetsSortService,this._localeService=_localeService,this._commandService=_commandService}async triggerSortDirectly(asc,extend,sheetRangeLocation){const location=sheetRangeLocation||await this._detectSortLocation(extend);if(!location||!this._check(location))return!1;const sortOption={orderRules:[{type:asc?sheetsSort.SortType.ASC:sheetsSort.SortType.DESC,colIndex:location.colIndex}],range:location.range};return this._sheetsSortService.applySort(sortOption,location.unitId,location.subUnitId),!0}async triggerSortCustomize(){const location=await this._detectSortLocation();return!location||!this._check(location)?!1:(this.showCustomSortPanel(location),!0)}customSortState(){return this._customSortState$.getValue()}getTitles(hasTitle){var _a2,_b2;const location=(_a2=this.customSortState())==null?void 0:_a2.location;if(!location)return[];const{unitId,subUnitId,range}=location,worksheet=(_b2=this._univerInstanceService.getUnit(unitId))==null?void 0:_b2.getSheetBySheetId(subUnitId);if(!worksheet)return[];const colTranslator=colIndexTranslator(this._localeService);return Array.from({length:range.endColumn-range.startColumn+1},(_,i)=>{var _a3;const cellValue=(_a3=worksheet.getCell(range.startRow,i+range.startColumn))==null?void 0:_a3.v;return{index:i+range.startColumn,label:hasTitle?`${cellValue!=null?cellValue:colTranslator(i+range.startColumn)}`:colTranslator(i+range.startColumn)}})}setSelection(unitId,subUnitId,range){var _a2;const worksheet=(_a2=this._univerInstanceService.getUnit(unitId))==null?void 0:_a2.getSheetBySheetId(subUnitId);if(!worksheet)return;const setSelectionsOperationParams={unitId,subUnitId,selections:[{range,primary:sheets.getPrimaryForRange(range,worksheet),style:null}]};this._commandService.executeCommand(sheets.SetSelectionsOperation.id,setSelectionsOperationParams)}async showCheckError(content){return await this._confirmService.confirm({id:"sort-range-check-error",title:{title:this._localeService.t("info.tooltip")},children:{title:React.createElement("div",null,this._localeService.t(content))}})}async showExtendConfirm(){let shouldExtend=!1;return await this._confirmService.confirm({id:"extend-sort-range-dialog",title:{title:this._localeService.t("sheets-sort.dialog.sort-reminder")},children:{title:React.createElement(ExtendConfirm,{onChange:__name(value=>{shouldExtend=value==="1"},"onChange")})},width:400})?shouldExtend?"extend":"keep":"cancel"}showCustomSortPanel(location){this._customSortState$.next({location,show:!0})}closeCustomSortPanel(){this._customSortState$.next({show:!1})}_check(location){return this._sheetsSortService.singleCheck(location)?this._sheetsSortService.mergeCheck(location)?this._sheetsSortService.formulaCheck(location)?this._sheetsSortService.emptyCheck(location)?!0:(this.showCheckError(SORT_ERROR_MESSAGE.EMPTY_ERROR),!1):(this.showCheckError(SORT_ERROR_MESSAGE.FORMULA_ARRAY),!1):(this.showCheckError(SORT_ERROR_MESSAGE.MERGE_ERROR),!1):(this.showCheckError(SORT_ERROR_MESSAGE.SINGLE_ERROR),!1)}async _detectSortLocation(extend){const workbook=this._univerInstanceService.getCurrentUnitForType(core.UniverInstanceType.UNIVER_SHEET),worksheet=workbook.getActiveSheet(),unitId=workbook.getUnitId(),subUnitId=worksheet.getSheetId(),selection=this._selectionManagerService.getCurrentLastSelection();if(!selection)return null;let range;if(extend===!0)range=sheets.expandToContinuousRange(selection.range,{up:!0,down:!0,left:!0,right:!0},worksheet),this.setSelection(unitId,subUnitId,range);else if(extend===!1)range=selection.range;else{const confirmRes=await this.showExtendConfirm();if(confirmRes==="cancel")return null;confirmRes==="keep"?range=selection.range:(range=sheets.expandToContinuousRange(selection.range,{up:!0,down:!0,left:!0,right:!0},worksheet),this.setSelection(unitId,subUnitId,range))}return{range,unitId,subUnitId,colIndex:selection.primary.actualColumn}}},__name(_a,"SheetsSortUIService"),_a);SheetsSortUIService=__decorateClass$2([core.OnLifecycle(core.LifecycleStages.Ready,sheetsSort.SheetsSortService),__decorateParam$2(0,core.IUniverInstanceService),__decorateParam$2(1,ui.IConfirmService),__decorateParam$2(2,core.ILogService),__decorateParam$2(3,core.Inject(sheets.SheetsSelectionsService)),__decorateParam$2(4,core.Inject(sheetsSort.SheetsSortService)),__decorateParam$2(5,core.Inject(core.LocaleService)),__decorateParam$2(6,core.ICommandService)],SheetsSortUIService);function colIndexTranslator(localeService){return colIndex=>{const colName=core.Tools.chatAtABC(colIndex);switch(localeService.getCurrentLocale()){case core.LocaleType.ZH_CN:return`"${colName}"列`;case core.LocaleType.EN_US:return`Column "${colName}"`;default:return`Column "${colName}"`}}}__name(colIndexTranslator,"colIndexTranslator");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$9={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z",fillRule:"evenodd",clipRule:"evenodd"}}]},AscendingSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"ascending- single",ref,icon:element$9}))});AscendingSingle.displayName="AscendingSingle";var element$8={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",fillRule:"evenodd",clipRule:"evenodd"}}]},CheckMarkSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"check-mark-single",ref,icon:element$8}))});CheckMarkSingle.displayName="CheckMarkSingle";var element$7={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.77445 9.24306L9.77457 11.9573C9.77458 12.2887 9.50597 12.5574 9.17459 12.5574 8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507 9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661 11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306zM6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512 7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574 6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588 4.88808 9.55156 5.26798 9.55156 5.50229 9.78588L6.22584 10.5094z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM2.34014 5.86724V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V5.86724H2.34014ZM13.6601 4.66724H2.34014V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H12.2601C13.0333 2.33989 13.6601 2.96669 13.6601 3.73989V4.66724Z",fillRule:"evenodd",clipRule:"evenodd"}}]},CustomSortSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"custom-sort-single",ref,icon:element$7}))});CustomSortSingle.displayName="CustomSortSingle";var element$6={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V13.1332C3.15332 14.2377 4.04875 15.1332 5.15332 15.1332H10.8465C11.9511 15.1332 12.8465 14.2377 12.8465 13.1331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V13.1331C11.6465 13.575 11.2884 13.9331 10.8465 13.9331H5.15332C4.71149 13.9331 4.35332 13.575 4.35332 13.1332V6.82217Z",fillRule:"evenodd",clipRule:"evenodd"}}]},DeleteEmptySingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"delete-empty-single",ref,icon:element$6}))});DeleteEmptySingle.displayName="DeleteEmptySingle";var element$5={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z",fillRule:"evenodd",clipRule:"evenodd"}}]},DescendingSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"descending-single",ref,icon:element$5}))});DescendingSingle.displayName="DescendingSingle";var element$4={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9064 3.20024C1.57503 3.20024 1.3064 2.93161 1.3064 2.60024C1.3064 2.26887 1.57503 2.00024 1.9064 2.00024H4.57306C4.90443 2.00024 5.17306 2.26887 5.17306 2.60024C5.17306 2.93161 4.90443 3.20024 4.57306 3.20024H1.9064ZM1.3064 6.19985C1.3064 6.53122 1.57503 6.79985 1.9064 6.79985H5.9064C6.23777 6.79985 6.5064 6.53122 6.5064 6.19985C6.5064 5.86848 6.23777 5.59985 5.9064 5.59985H1.9064C1.57503 5.59985 1.3064 5.86848 1.3064 6.19985ZM1.9064 10.3997C1.57503 10.3997 1.3064 10.1311 1.3064 9.79971C1.3064 9.46834 1.57503 9.19971 1.9064 9.19971H7.23973C7.5711 9.19971 7.83973 9.46834 7.83973 9.79971C7.83973 10.1311 7.5711 10.3997 7.23973 10.3997H1.9064ZM1.9064 13.9996C1.57503 13.9996 1.3064 13.7309 1.3064 13.3996C1.3064 13.0682 1.57503 12.7996 1.9064 12.7996H8.57306C8.90443 12.7996 9.17306 13.0682 9.17306 13.3996C9.17306 13.7309 8.90443 13.9996 8.57306 13.9996H1.9064Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.4267 14.2667C12.4267 14.5981 12.1581 14.8667 11.8267 14.8667C11.4953 14.8667 11.2267 14.5981 11.2267 14.2667V3.18198L9.98447 4.42422C9.75015 4.65853 9.37026 4.65853 9.13594 4.42422C8.90163 4.1899 8.90163 3.81 9.13594 3.57569L11.4026 1.30902C11.6369 1.07471 12.0168 1.07471 12.2511 1.30902L14.5178 3.57569C14.7521 3.81 14.7521 4.1899 14.5178 4.42422C14.2835 4.65853 13.9036 4.65853 13.6693 4.42422L12.4267 3.18165V14.2667Z"}}]},ExpandAscendingSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"expand-ascending-single",ref,icon:element$4}))});ExpandAscendingSingle.displayName="ExpandAscendingSingle";var element$3={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9064 12.7998C1.57503 12.7998 1.3064 13.0684 1.3064 13.3998C1.3064 13.7311 1.57503 13.9998 1.9064 13.9998H4.57306C4.90443 13.9998 5.17306 13.7311 5.17306 13.3998C5.17306 13.0684 4.90443 12.7998 4.57306 12.7998H1.9064ZM1.3064 9.80015C1.3064 9.46878 1.57503 9.20015 1.9064 9.20015H5.9064C6.23777 9.20015 6.5064 9.46878 6.5064 9.80015C6.5064 10.1315 6.23777 10.4001 5.9064 10.4001H1.9064C1.57503 10.4001 1.3064 10.1315 1.3064 9.80015ZM1.9064 5.60029C1.57503 5.60029 1.3064 5.86892 1.3064 6.20029C1.3064 6.53166 1.57503 6.80029 1.9064 6.80029H7.23973C7.5711 6.80029 7.83973 6.53166 7.83973 6.20029C7.83973 5.86892 7.5711 5.60029 7.23973 5.60029H1.9064ZM1.9064 2.00044C1.57503 2.00044 1.3064 2.26907 1.3064 2.60044C1.3064 2.93181 1.57503 3.20044 1.9064 3.20044H8.57306C8.90443 3.20044 9.17306 2.93181 9.17306 2.60044C9.17306 2.26907 8.90443 2.00044 8.57306 2.00044H1.9064Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.4267 1.7333C12.4267 1.40193 12.1581 1.1333 11.8267 1.1333C11.4953 1.1333 11.2267 1.40193 11.2267 1.7333V12.818L9.98447 11.5758C9.75015 11.3415 9.37026 11.3415 9.13594 11.5758C8.90163 11.8101 8.90163 12.19 9.13594 12.4243L11.4026 14.691C11.6369 14.9253 12.0168 14.9253 12.2511 14.691L14.5178 12.4243C14.7521 12.19 14.7521 11.8101 14.5178 11.5758C14.2835 11.3415 13.9036 11.3415 13.6693 11.5758L12.4267 12.8183V1.7333Z"}}]},ExpandDescendingSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"expand-descending-single",ref,icon:element$3}))});ExpandDescendingSingle.displayName="ExpandDescendingSingle";var element$2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"}}]},IncreaseSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"increase-single",ref,icon:element$2}))});IncreaseSingle.displayName="IncreaseSingle";var element$1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},MoreDownSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"more-down-single",ref,icon:element$1}))});MoreDownSingle.displayName="MoreDownSingle";var element={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_622_8",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_622_8)"},children:[{tag:"path",attrs:{d:"M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z"}}]}]},SequenceSingle=React.forwardRef(function(props,ref){return React.createElement(IconBase,Object.assign({},props,{id:"sequence-single",ref,icon:element}))});SequenceSingle.displayName="SequenceSingle";const SortRangeAscCommand={id:"sheet.command.sort-range-asc",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!0,!1),"handler")},SortRangeAscExtCommand={id:"sheet.command.sort-range-asc-ext",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!0,!0),"handler")},SortRangeDescCommand={id:"sheet.command.sort-range-desc",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!1,!1),"handler")},SortRangeDescExtCommand={id:"sheet.command.sort-range-desc-ext",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!1,!0),"handler")},SortRangeCustomCommand={id:"sheet.command.sort-range-custom",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortCustomize(),"handler")},SortRangeAscInCtxMenuCommand={id:"sheet.command.sort-range-asc-ctx",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!0,!1),"handler")},SortRangeAscExtInCtxMenuCommand={id:"sheet.command.sort-range-asc-ext-ctx",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!0,!0),"handler")},SortRangeDescInCtxMenuCommand={id:"sheet.command.sort-range-desc-ctx",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!1,!1),"handler")},SortRangeDescExtInCtxMenuCommand={id:"sheet.command.sort-range-desc-ext-ctx",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortDirectly(!1,!0),"handler")},SortRangeCustomInCtxMenuCommand={id:"sheet.command.sort-range-custom-ctx",type:core.CommandType.COMMAND,handler:__name(async accessor=>await accessor.get(SheetsSortUIService).triggerSortCustomize(),"handler")};function CustomSortPanel(){const sheetsSortUIService=core.useDependency(SheetsSortUIService),sheetsSortService=core.useDependency(sheetsSort.SheetsSortService),localeService=core.useDependency(core.LocaleService),[hasTitle,setHasTitle]=React.useState(!1),[scrollPosition,setScrollPosition]=React.useState(0),listEndRef=React.useRef(null),state=sheetsSortUIService.customSortState();if(!state||!state.location)return null;const{range,unitId,subUnitId}=state.location,titles=sheetsSortUIService.getTitles(hasTitle),[list,setList]=React.useState([{type:sheetsSort.SortType.ASC,colIndex:range.startColumn}]),onItemChange=React.useCallback((index,value)=>{const newList=[...list];value===null?newList.splice(index,1):newList[index]=value,setList(newList)},[list]),newItem=React.useCallback(core.throttle(()=>{const newList=[...list],nextColIndex=findNextColIndex(range,list);nextColIndex!==null&&(newList.push({type:sheetsSort.SortType.ASC,colIndex:nextColIndex}),setList(newList))},200),[list,range]),apply=React.useCallback((orderRules,hasTitle2)=>{sheetsSortService.applySort({range,orderRules,hasTitle:hasTitle2}),sheetsSortUIService.closeCustomSortPanel()},[sheetsSortService,sheetsSortUIService,range]),cancel=React.useCallback(()=>{sheetsSortUIService.closeCustomSortPanel()},[sheetsSortUIService]),setTitle=React.useCallback(value=>{setHasTitle(value),value?sheetsSortUIService.setSelection(unitId,subUnitId,{...range,startRow:range.startRow+1}):sheetsSortUIService.setSelection(unitId,subUnitId,range)},[sheetsSortUIService,range,subUnitId,unitId]);React.useEffect(()=>{listEndRef.current&&list.length>5&&(listEndRef.current.scrollTop=listEndRef.current.scrollHeight)},[list]);const canNew=list.length<titles.length,dragList=list.map(item=>({...item,id:`${item.colIndex}`}));return React.createElement("div",{className:styles.customSortPanelContainer},React.createElement("div",{className:styles.customSortPanelContent,onMouseDown:__name(e=>{e.stopPropagation()},"onMouseDown")},React.createElement("div",{className:styles.customSortPanelExt},React.createElement("div",{className:styles.firstRowCheck},React.createElement(design.Checkbox,{checked:hasTitle,onChange:__name(value=>setTitle(!!value),"onChange")},localeService.t("sheets-sort.dialog.first-row-check"))),canNew?React.createElement("div",{className:styles.addCondition,onClick:newItem},React.createElement(IncreaseSingle,null),React.createElement("span",{className:styles.addConditionText},localeService.t("sheets-sort.dialog.add-condition"))):React.createElement("div",{className:`${styles.addCondition} ${styles.addConditionDisable}`},React.createElement(IncreaseSingle,null),React.createElement("span",{className:styles.addConditionText},localeService.t("sheets-sort.dialog.add-condition")))),React.createElement("div",{className:styles.conditionList,onScroll:__name(e=>{const position=e.currentTarget.scrollTop;setScrollPosition(position)},"onScroll"),ref:listEndRef},React.createElement(design.DraggableList,{list:dragList,onListChange:setList,idKey:"id",draggableHandle:`.${styles.customSortPanelItemHandler}`,itemRender:__name(item=>React.createElement(SortOptionItem,{titles,list:dragList,item,onChange:__name((value,index)=>onItemChange(index,value),"onChange"),scrollPosition}),"itemRender"),rowHeight:32,margin:[0,12]}))),React.createElement("div",{className:styles.customSortPanelFooter},React.createElement(design.Button,{className:styles.customSortPanelFooterBtn,type:"default",onClick:__name(()=>cancel(),"onClick")},localeService.t("sheets-sort.dialog.cancel")),React.createElement(design.Button,{className:styles.customSortPanelFooterBtn,type:"primary",onClick:__name(()=>apply(list,hasTitle),"onClick")},localeService.t("sheets-sort.dialog.confirm"))))}__name(CustomSortPanel,"CustomSortPanel");function SortOptionItem(props){var _a2;const{list,item,titles,onChange,scrollPosition}=props,localeService=core.useDependency(core.LocaleService),availableMenu=titles.filter(title=>!list.some(item2=>item2.colIndex===title.index)||title.index===item.colIndex),currentIndex=list.findIndex(listItem=>listItem.colIndex===item.colIndex),handleChangeColIndex=React.useCallback(menuItem=>{onChange({...item,colIndex:menuItem.index},currentIndex),setVisible(!1)},[currentIndex,item,onChange]),[visible,setVisible]=React.useState(!1),onVisibleChange=__name(visible2=>{setVisible(visible2)},"onVisibleChange");React.useEffect(()=>{setVisible(!1)},[scrollPosition]);const showDelete=list.length>1,itemLabel=(_a2=titles.find(title=>title.index===item.colIndex))==null?void 0:_a2.label,radioClass=localeService.getCurrentLocale()===core.LocaleType.ZH_CN?styles.customSortPanelItemOrderRadioCn:styles.customSortPanelItemOrderRadio;return React.createElement("div",{className:styles.customSortPanelItem},React.createElement("div",{className:styles.customSortPanelItemHead},React.createElement("div",{className:styles.customSortPanelItemHandler},React.createElement(SequenceSingle,null)),React.createElement("div",{className:styles.customSortPanelItemColumn},React.createElement(design.Dropdown,{placement:"bottomLeft",trigger:["click"],visible,onVisibleChange,overlay:React.createElement("ul",{className:styles.customSortColMenu},availableMenu.map(menuItem=>React.createElement("li",{key:menuItem.index,onClick:__name(()=>handleChangeColIndex(menuItem),"onClick"),className:styles.customSortColMenuItem},React.createElement("span",{className:styles.customSortColMenuItemDesc},menuItem.label),React.createElement("span",{className:styles.customSortColMenuItemCheck},menuItem.index===item.colIndex&&React.createElement(CheckMarkSingle,null)))))},React.createElement("div",{className:styles.customSortPanelItemColumnInput},React.createElement("span",{className:styles.customSortPanelItemColumnInputText},itemLabel),React.createElement(MoreDownSingle,{className:styles.customSortPanelItemColumnInputDropdown}))))),React.createElement("div",{className:styles.customSortPanelItemOrder},React.createElement(design.RadioGroup,{className:radioClass,value:item.type,onChange:__name(value=>{onChange({...item,type:value},currentIndex)},"onChange")},React.createElement(design.Radio,{value:sheetsSort.SortType.ASC},localeService.t("sheets-sort.general.sort-asc")),React.createElement(design.Radio,{value:sheetsSort.SortType.DESC},localeService.t("sheets-sort.general.sort-desc")))),React.createElement("div",{className:styles.customSortPanelItemRemove},showDelete&&React.createElement(DeleteEmptySingle,{onClick:__name(()=>onChange(null,currentIndex),"onClick")})))}__name(SortOptionItem,"SortOptionItem");function findNextColIndex(range,list){const{startColumn,endColumn}=range,used=new Set(list.map(item=>item==null?void 0:item.colIndex));for(let i=startColumn;i<=endColumn;i++)if(!used.has(i))return i;return null}__name(findNextColIndex,"findNextColIndex");function EmbedSortBtn(props){const{range,colIndex,onClose}=props,sheetsSortUIService=core.useDependency(SheetsSortUIService),univerInstanceService=core.useDependency(core.IUniverInstanceService),localeService=core.useDependency(core.LocaleService),apply=React.useCallback(asc=>{const{unitId,subUnitId}=sheets.getSheetCommandTarget(univerInstanceService)||{};if(range&&unitId&&subUnitId){const noTitleRange={...range,startRow:range.startRow+1};sheetsSortUIService.triggerSortDirectly(asc,!1,{unitId,subUnitId,range:noTitleRange,colIndex})}else console.warn(`Cannot find the target to sort. unitId: ${unitId}, subUnitId: ${subUnitId}, range: ${range}, colIndex: ${colIndex}`);onClose()},[range,colIndex,sheetsSortUIService,univerInstanceService,onClose]);return React.createElement("div",{className:styles.embedSortBtnContainer},React.createElement("div",{className:`${styles.embedSortBtn} ${styles.embedSortBtnAsc}`,onClick:__name(()=>apply(!0),"onClick")},React.createElement(AscendingSingle,{className:styles.embedSortBtnIcon}),localeService.t("sheets-sort.general.sort-asc")),React.createElement("div",{className:`${styles.embedSortBtn} ${styles.embedSortBtnDesc}`,onClick:__name(()=>apply(!1),"onClick")},React.createElement(DescendingSingle,{className:styles.embedSortBtnIcon}),localeService.t("sheets-sort.general.sort-desc")))}__name(EmbedSortBtn,"EmbedSortBtn");const SHEETS_SORT_MENU_ID="sheet.menu.sheets-sort",SHEETS_SORT_CTX_MENU_ID="sheet.menu.sheets-sort-ctx",SHEETS_SORT_ASC_ICON="AscendingSingle",SHEETS_SORT_ASC_EXT_ICON="ExpandAscendingSingle",SHEETS_SORT_DESC_ICON="DescendingSingle",SHEETS_SORT_DESC_EXT_ICON="ExpandDescendingSingle",SHEETS_SORT_CUSTOM_ICON="CustomSortSingle";function sortRangeMenuFactory(accessor){return{id:SHEETS_SORT_MENU_ID,type:ui.MenuItemType.SUBITEMS,icon:SHEETS_SORT_ASC_ICON,tooltip:"sheets-sort.general.sort",hidden$:ui.getMenuHiddenObservable(accessor,core.UniverInstanceType.UNIVER_SHEET),disabled$:sheetsUi.getCurrentRangeDisable$(accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeMenuFactory,"sortRangeMenuFactory");function sortRangeAscMenuFactory(_accessor){return{id:SortRangeAscCommand.id,icon:SHEETS_SORT_ASC_ICON,title:"sheets-sort.general.sort-asc-cur",type:ui.MenuItemType.BUTTON,hidden$:sheetsUi.getCurrentExclusiveRangeInterest$(_accessor)}}__name(sortRangeAscMenuFactory,"sortRangeAscMenuFactory");function sortRangeAscExtMenuFactory(_accessor){return{id:SortRangeAscExtCommand.id,title:"sheets-sort.general.sort-asc-ext",icon:SHEETS_SORT_ASC_EXT_ICON,type:ui.MenuItemType.BUTTON}}__name(sortRangeAscExtMenuFactory,"sortRangeAscExtMenuFactory");function sortRangeDescMenuFactory(_accessor){return{id:SortRangeDescCommand.id,title:"sheets-sort.general.sort-desc-cur",icon:SHEETS_SORT_DESC_ICON,type:ui.MenuItemType.BUTTON}}__name(sortRangeDescMenuFactory,"sortRangeDescMenuFactory");function sortRangeDescExtMenuFactory(_accessor){return{id:SortRangeDescExtCommand.id,title:"sheets-sort.general.sort-desc-ext",icon:SHEETS_SORT_DESC_EXT_ICON,type:ui.MenuItemType.BUTTON}}__name(sortRangeDescExtMenuFactory,"sortRangeDescExtMenuFactory");function sortRangeCustomMenuFactory(_accessor){return{id:SortRangeCustomCommand.id,title:"sheets-sort.general.sort-custom",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_CUSTOM_ICON}}__name(sortRangeCustomMenuFactory,"sortRangeCustomMenuFactory");function sortRangeCtxMenuFactory(accessor){return{id:SHEETS_SORT_CTX_MENU_ID,title:"sheets-sort.general.sort",type:ui.MenuItemType.SUBITEMS,icon:SHEETS_SORT_ASC_ICON,hidden$:ui.getMenuHiddenObservable(accessor,core.UniverInstanceType.UNIVER_SHEET),disabled$:sheetsUi.getCurrentRangeDisable$(accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeCtxMenuFactory,"sortRangeCtxMenuFactory");function sortRangeAscCtxMenuFactory(_accessor){return{id:SortRangeAscInCtxMenuCommand.id,title:"sheets-sort.general.sort-asc-cur",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_ASC_ICON,disabled$:sheetsUi.getCurrentRangeDisable$(_accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeAscCtxMenuFactory,"sortRangeAscCtxMenuFactory");function sortRangeAscExtCtxMenuFactory(_accessor){return{id:SortRangeAscExtInCtxMenuCommand.id,title:"sheets-sort.general.sort-asc-ext",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_ASC_EXT_ICON,disabled$:sheetsUi.getCurrentRangeDisable$(_accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeAscExtCtxMenuFactory,"sortRangeAscExtCtxMenuFactory");function sortRangeDescCtxMenuFactory(_accessor){return{id:SortRangeDescInCtxMenuCommand.id,title:"sheets-sort.general.sort-desc-cur",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_DESC_ICON,disabled$:sheetsUi.getCurrentRangeDisable$(_accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeDescCtxMenuFactory,"sortRangeDescCtxMenuFactory");function sortRangeDescExtCtxMenuFactory(_accessor){return{id:SortRangeDescExtInCtxMenuCommand.id,title:"sheets-sort.general.sort-desc-ext",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_DESC_EXT_ICON,disabled$:sheetsUi.getCurrentRangeDisable$(_accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeDescExtCtxMenuFactory,"sortRangeDescExtCtxMenuFactory");function sortRangeCustomCtxMenuFactory(_accessor){return{id:SortRangeCustomInCtxMenuCommand.id,title:"sheets-sort.general.sort-custom",type:ui.MenuItemType.BUTTON,icon:SHEETS_SORT_CUSTOM_ICON,disabled$:sheetsUi.getCurrentRangeDisable$(_accessor,{workbookTypes:[sheets.WorkbookEditablePermission],worksheetTypes:[sheets.WorksheetSortPermission,sheets.WorksheetEditPermission],rangeTypes:[sheets.RangeProtectionPermissionEditPoint]})}}__name(sortRangeCustomCtxMenuFactory,"sortRangeCustomCtxMenuFactory");const menuSchema={[ui.RibbonStartGroup.FORMULAS_INSERT]:{[SHEETS_SORT_MENU_ID]:{order:2,menuItemFactory:sortRangeMenuFactory,[SortRangeAscCommand.id]:{order:0,menuItemFactory:sortRangeAscMenuFactory},[SortRangeAscExtCommand.id]:{order:1,menuItemFactory:sortRangeAscExtMenuFactory},[SortRangeDescCommand.id]:{order:2,menuItemFactory:sortRangeDescMenuFactory},[SortRangeDescExtCommand.id]:{order:3,menuItemFactory:sortRangeDescExtMenuFactory},[SortRangeCustomCommand.id]:{order:4,menuItemFactory:sortRangeCustomMenuFactory}}},[ui.ContextMenuPosition.MAIN_AREA]:{[ui.ContextMenuGroup.DATA]:{[SHEETS_SORT_CTX_MENU_ID]:{order:0,menuItemFactory:sortRangeCtxMenuFactory,[SortRangeAscInCtxMenuCommand.id]:{order:0,menuItemFactory:sortRangeAscCtxMenuFactory},[SortRangeAscExtInCtxMenuCommand.id]:{order:1,menuItemFactory:sortRangeAscExtCtxMenuFactory},[SortRangeDescInCtxMenuCommand.id]:{order:2,menuItemFactory:sortRangeDescCtxMenuFactory},[SortRangeDescExtInCtxMenuCommand.id]:{order:3,menuItemFactory:sortRangeDescExtCtxMenuFactory},[SortRangeCustomInCtxMenuCommand.id]:{order:4,menuItemFactory:sortRangeCustomCtxMenuFactory}}}}};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");const CUSTOM_SORT_DIALOG_ID="custom-sort-dialog",CUSTOM_SORT_PANEL_WIDTH=560;let SheetsSortUIController=(_b=class extends core.RxDisposable{constructor(_commandService,_menuManagerService,_dialogService,_layoutService,_uiPartsService,_sheetRenderService,_localeService,_sheetsSortUIService,_injector,_componentManager){super(),this._commandService=_commandService,this._menuManagerService=_menuManagerService,this._dialogService=_dialogService,this._layoutService=_layoutService,this._uiPartsService=_uiPartsService,this._sheetRenderService=_sheetRenderService,this._localeService=_localeService,this._sheetsSortUIService=_sheetsSortUIService,this._injector=_injector,this._componentManager=_componentManager,this._initCommands(),this._initMenu(),this._initUI()}_initMenu(){this._menuManagerService.mergeMenu(menuSchema)}_initCommands(){[SortRangeAscCommand,SortRangeAscExtCommand,SortRangeDescCommand,SortRangeDescExtCommand,SortRangeCustomCommand,SortRangeAscInCtxMenuCommand,SortRangeAscExtInCtxMenuCommand,SortRangeDescInCtxMenuCommand,SortRangeDescExtInCtxMenuCommand,SortRangeCustomInCtxMenuCommand].forEach(command=>this.disposeWithMe(this._commandService.registerCommand(command))),this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(sheetsSort.SortRangeCommand.id))}_initUI(){this.disposeWithMe(this._componentManager.register("CustomSortPanel",CustomSortPanel)),this.disposeWithMe(this._uiPartsService.registerComponent(sheetsUi.SheetsUIPart.FILTER_PANEL_EMBED_POINT,()=>core.connectInjector(EmbedSortBtn,this._injector))),this.disposeWithMe(this._componentManager.register(SHEETS_SORT_ASC_ICON,AscendingSingle)),this.disposeWithMe(this._componentManager.register(SHEETS_SORT_ASC_EXT_ICON,ExpandAscendingSingle)),this.disposeWithMe(this._componentManager.register(SHEETS_SORT_DESC_ICON,DescendingSingle)),this.disposeWithMe(this._componentManager.register(SHEETS_SORT_DESC_EXT_ICON,ExpandDescendingSingle)),this.disposeWithMe(this._componentManager.register(SHEETS_SORT_CUSTOM_ICON,CustomSortSingle)),this._sheetsSortUIService.customSortState$.pipe(rxjs.takeUntil(this.dispose$)).subscribe(newState=>{newState&&newState.show&&newState.location?this._openCustomSortPanel(newState.location):newState&&!(newState!=null&&newState.show)&&this._closePanel()})}_openCustomSortPanel(location){this._dialogService.open({id:CUSTOM_SORT_DIALOG_ID,draggable:!0,width:CUSTOM_SORT_PANEL_WIDTH,title:{title:`${this._localeService.t("sheets-sort.general.sort-custom")}: ${engineFormula.serializeRange(location.range)}`},children:{label:"CustomSortPanel"},destroyOnClose:!0,defaultPosition:getCustomSortDialogDefaultPosition(),preservePositionOnDestroy:!1,onClose:__name(()=>this._closePanel(),"onClose"),mask:!0})}_closePanel(){this._dialogService.close(CUSTOM_SORT_DIALOG_ID),queueMicrotask(()=>this._layoutService.focus())}},__name(_b,"SheetsSortUIController"),_b);SheetsSortUIController=__decorateClass$1([core.OnLifecycle(core.LifecycleStages.Ready,SheetsSortUIController),__decorateParam$1(0,core.ICommandService),__decorateParam$1(1,ui.IMenuManagerService),__decorateParam$1(2,ui.IDialogService),__decorateParam$1(3,ui.ILayoutService),__decorateParam$1(4,ui.IUIPartsService),__decorateParam$1(5,core.Inject(sheetsUi.SheetsRenderService)),__decorateParam$1(6,core.Inject(core.LocaleService)),__decorateParam$1(7,core.Inject(SheetsSortUIService)),__decorateParam$1(8,core.Inject(core.Injector)),__decorateParam$1(9,core.Inject(ui.ComponentManager))],SheetsSortUIController);function getCustomSortDialogDefaultPosition(){return{x:0,y:0}}__name(getCustomSortDialogDefaultPosition,"getCustomSortDialogDefaultPosition");const PLUGIN_CONFIG_KEY="sheets-sort-ui.config",defaultPluginConfig={};var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__defNormalProp2=__name((obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,"__defNormalProp"),__decorateClass=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp2(target,key,result),result},"__decorateClass"),__decorateParam=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam"),__publicField2=__name((obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value),"__publicField");const NAME="SHEET_SORT_UI_PLUGIN";exports2.UniverSheetsSortUIPlugin=(_c=class extends core.Plugin{constructor(_config=defaultPluginConfig,_injector,_configService){super(),this._config=_config,this._injector=_injector,this._configService=_configService;const{...rest}=this._config;this._configService.setConfig(PLUGIN_CONFIG_KEY,rest)}onStarting(){[[SheetsSortUIService],[SheetsSortUIController]].forEach(d=>this._injector.add(d))}},__name(_c,"UniverSheetsSortUIPlugin"),_c),__publicField2(exports2.UniverSheetsSortUIPlugin,"type",core.UniverInstanceType.UNIVER_SHEET),__publicField2(exports2.UniverSheetsSortUIPlugin,"pluginName",NAME),exports2.UniverSheetsSortUIPlugin=__decorateClass([core.DependentOn(sheetsSort.UniverSheetsSortPlugin),__decorateParam(1,core.Inject(core.Injector)),__decorateParam(2,core.IConfigService)],exports2.UniverSheetsSortUIPlugin),exports2.SortRangeAscCommand=SortRangeAscCommand,exports2.SortRangeAscExtCommand=SortRangeAscExtCommand,exports2.SortRangeAscExtInCtxMenuCommand=SortRangeAscExtInCtxMenuCommand,exports2.SortRangeAscInCtxMenuCommand=SortRangeAscInCtxMenuCommand,exports2.SortRangeCustomCommand=SortRangeCustomCommand,exports2.SortRangeCustomInCtxMenuCommand=SortRangeCustomInCtxMenuCommand,exports2.SortRangeDescCommand=SortRangeDescCommand,exports2.SortRangeDescExtCommand=SortRangeDescExtCommand,exports2.SortRangeDescExtInCtxMenuCommand=SortRangeDescExtInCtxMenuCommand,exports2.SortRangeDescInCtxMenuCommand=SortRangeDescInCtxMenuCommand,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
function _0x13ec(){var _0x237d9a=['location','cancel','getOwnPropertySymbols','_layoutService','userSpaceOnUse','close','@univerjs/sheets-ui','UniverCore','toString','getCurrentUnitForType','getCurrentExclusiveRangeInterest$','_componentManager','CommandType',',\x20colIndex:\x20','colIndex','_openCustomSortPanel','onClick','univer-custom-sort-panel-item-column-input','SortRangeAscCommand','DESC','defIds','assign','univer-custom-sort-panel-item-head','M1.98967\x2010.2798C1.6583\x2010.2798\x201.38967\x2010.0112\x201.38967\x209.67983\x201.38967\x209.34846\x201.6583\x209.07983\x201.98967\x209.07983H6.50138C6.74406\x209.07983\x206.96284\x209.22602\x207.05571\x209.45022\x207.14858\x209.67443\x207.09725\x209.9325\x206.92565\x2010.1041L3.43819\x2013.5916H6.50138C6.83276\x2013.5916\x207.10138\x2013.8602\x207.10138\x2014.1916\x207.10138\x2014.5229\x206.83276\x2014.7916\x206.50138\x2014.7916H1.98967C1.74699\x2014.7916\x201.52821\x2014.6454\x201.43534\x2014.4212\x201.34247\x2014.197\x201.3938\x2013.9389\x201.5654\x2013.7673L5.05286\x2010.2798H1.98967zM5.1846\x201.86439C4.8641.989866\x203.62725.989866\x203.30674\x201.86439L1.34882\x207.20672C1.23479\x207.51786\x201.39458\x207.86252\x201.70571\x207.97655\x202.01684\x208.09058\x202.3615\x207.93079\x202.47553\x207.61966L3.06159\x206.02055\x203.06338\x206.02056H5.42975L6.01581\x207.61966C6.12984\x207.93079\x206.4745\x208.09058\x206.78563\x207.97655\x207.09677\x207.86252\x207.25655\x207.51786\x207.14252\x207.20672L5.1846\x201.86439zM4.98996\x204.82056L4.24567\x202.78971\x203.50138\x204.82056H4.98996z','substring','rxjs','sheet.command.sort-range-custom-ctx','colorChannel1','M5.3313\x201.4667C5.3313\x201.13533\x205.59993.866699\x205.9313.866699H10.069C10.4004.866699\x2010.669\x201.13533\x2010.669\x201.4667\x2010.669\x201.79807\x2010.4004\x202.0667\x2010.069\x202.0667H5.9313C5.59993\x202.0667\x205.3313\x201.79807\x205.3313\x201.4667zM1.09985\x203.64443C1.09985\x203.31306\x201.36848\x203.04443\x201.69985\x203.04443H14.2999C14.6312\x203.04443\x2014.8999\x203.31306\x2014.8999\x203.64443\x2014.8999\x203.9758\x2014.6312\x204.24443\x2014.2999\x204.24443H1.69985C1.36848\x204.24443\x201.09985\x203.9758\x201.09985\x203.64443z','univer-embed-sort-btn-container','customSortPanelItemColumnInputText','toStringTag','getCurrentRangeDisable$','univer-custom-sort-panel-ext','DATA','SheetsRenderService','Inject','M11.3536\x206.14645C11.5488\x206.34171\x2011.5488\x206.65829\x2011.3536\x206.85355L8.35355\x209.85355C8.15829\x2010.0488\x207.84171\x2010.0488\x207.64645\x209.85355L4.64645\x206.85355C4.45118\x206.65829\x204.45118\x206.34171\x204.64645\x206.14645C4.84171\x205.95118\x205.15829\x205.95118\x205.35355\x206.14645L8\x208.79289L10.6464\x206.14645C10.8417\x205.95118\x2011.1583\x205.95118\x2011.3536\x206.14645Z','SetSelectionsOperation','BehaviorSubject','info.tooltip','10922JOtJvZ','univer-add-condition','customSortPanelItemOrderRadio','sheets-sort.general.sort-desc-ext','customSortPanelItemHead','SheetsSortUIController','univer-embed-sort-btn-icon','sheet.command.sort-range-asc-ext-ctx','SheetsSelectionsService','addCondition','LocaleType','UniverSheetsSortUi','onStarting','sheet.command.sort-range-asc','sheets-sort.dialog.sort-reminder-ext','forwardRef','symbol','UniverSheetsSort','fill','onClose','customSortPanelItemColumnInput','sheets-sort.general.sort-desc-cur','onMouseDown','concat','sheets-sort.error.single','SortRangeCommand','customSortPanelItemHandler','push','registerSkeletonChangingMutations','function','Button','EN_US','embedSortBtnContainer','react','sortRangeCtxMenuFactory','extend','executeCommand','some','_detectSortLocation','RadioGroup','univer-embed-sort-btn','triggerSortDirectly','embedSortBtnIcon','custom-sort-single','attrs','MenuItemType','Disposable','indexOf','Radio','filter','sheet.command.sort-range-asc-ctx','use','#D9D9D9','sheet.command.sort-range-custom','range','UNIVER_SHEET','sheets-sort.general.sort-asc-cur','SortRangeDescInCtxMenuCommand','@univerjs/sheets-sort','univerjs-icon\x20univerjs-icon-','UniverSheetsSortPlugin','splice','hasOwnProperty','sheet.command.sort-range-desc-ctx','sheets-sort.general.sort-asc','check-mark-single','showCheckError','univer-add-condition-disable','SortRangeDescCommand','IUniverInstanceService','onChange','amd','register','exports','currentTarget','idSuffix','WorksheetEditPermission','_configService','ILayoutService','sheets-sort.dialog.sort-reminder','customSortPanelItemColumn','MoreDownSingle','sort-range-check-error','univer-custom-sort-panel-container','M12.4267\x2014.2667C12.4267\x2014.5981\x2012.1581\x2014.8667\x2011.8267\x2014.8667C11.4953\x2014.8667\x2011.2267\x2014.5981\x2011.2267\x2014.2667V3.18198L9.98447\x204.42422C9.75015\x204.65853\x209.37026\x204.65853\x209.13594\x204.42422C8.90163\x204.1899\x208.90163\x203.81\x209.13594\x203.57569L11.4026\x201.30902C11.6369\x201.07471\x2012.0168\x201.07471\x2012.2511\x201.30902L14.5178\x203.57569C14.7521\x203.81\x2014.7521\x204.1899\x2014.5178\x204.42422C14.2835\x204.65853\x2013.9036\x204.65853\x2013.6693\x204.42422L12.4267\x203.18165V14.2667Z','alpha','random','EmbedSortBtn','410035alvkAg','DependentOn','UniverSheetsSortUIPlugin','useDependency','SHEET_SORT_UI_PLUGIN','none','M4.75332\x205.22217C3.86966\x205.22217\x203.15332\x205.93851\x203.15332\x206.82217V13.1332C3.15332\x2014.2377\x204.04875\x2015.1332\x205.15332\x2015.1332H10.8465C11.9511\x2015.1332\x2012.8465\x2014.2377\x2012.8465\x2013.1331V6.82217C12.8465\x205.93851\x2012.1302\x205.22217\x2011.2465\x205.22217H4.75332ZM4.35332\x206.82217C4.35332\x206.60125\x204.53241\x206.42217\x204.75332\x206.42217H11.2465C11.4674\x206.42217\x2011.6465\x206.60125\x2011.6465\x206.82217V13.1331C11.6465\x2013.575\x2011.2884\x2013.9331\x2010.8465\x2013.9331H5.15332C4.71149\x2013.9331\x204.35332\x2013.575\x204.35332\x2013.1332V6.82217Z','pluginName','keep','map','__decorateParam','getMenuHiddenObservable','onRendered','@univerjs/sheets','sortRangeAscMenuFactory','FILTER_PANEL_EMBED_POINT','trim','_menuManagerService','length','univer-custom-sort-panel-footer-btn','showCustomSortPanel','getSheetCommandTarget','sheets-sort.error.formula-array','url(#mask0_622_8)','applySort','useRef','Dropdown','MAIN_AREA','_initUI','63YiZbMC','0\x200\x2016\x2016','_initMenu','takeUntil','type','Plugin','entries','customSortPanelItem','1em','getUnit','getSheetId','26lwtogz','UniverSheets','get','useCallback','connectInjector','startColumn','Injector','subUnitId','customSortPanelItemOrderRadioCn','ExpandDescendingSingle','useEffect','AscendingSingle','sortRangeDescExtCtxMenuFactory','customSortPanelContainer','customSortPanelItemOrder','SUBITEMS','COMMAND','MERGE_ERROR','_initCommands','embedSortBtn','expand-descending-single','IDialogService','_closePanel','Checkbox','univer-custom-sort-panel-item','customSortPanelExt','sheets-sort.general.sort-asc-ext','customSortPanelContent','customSortColMenuItemDesc','showExtendConfirm','setSelection','_customSortState$','UniverEngineFormula','default','univer-custom-sort-panel-footer','dispose$','div','UniverSheetsUi','univer-condition-list','getSheetBySheetId',',\x20range:\x20','triggerSortCustomize','mergeMenu','getCurrentLocale','__decorateClass','WorksheetSortPermission','WorkbookEditablePermission','focus','7gjaWIg','EMPTY_ERROR','ICommandService','SortRangeCustomInCtxMenuCommand','has','addConditionText','SheetsSortService','471250NqNZIF','next','path','__defNormalProp','scrollHeight','_selectionManagerService','@univerjs/ui','3iyzpXD','stopPropagation','DescendingSingle','@univerjs/design','univer-embed-sort-btn-desc','_uiPartsService','univer-custom-sort-panel-item-handler','startRow','forEach','FORMULA_ARRAY','M1.9064\x203.20024C1.57503\x203.20024\x201.3064\x202.93161\x201.3064\x202.60024C1.3064\x202.26887\x201.57503\x202.00024\x201.9064\x202.00024H4.57306C4.90443\x202.00024\x205.17306\x202.26887\x205.17306\x202.60024C5.17306\x202.93161\x204.90443\x203.20024\x204.57306\x203.20024H1.9064ZM1.3064\x206.19985C1.3064\x206.53122\x201.57503\x206.79985\x201.9064\x206.79985H5.9064C6.23777\x206.79985\x206.5064\x206.53122\x206.5064\x206.19985C6.5064\x205.86848\x206.23777\x205.59985\x205.9064\x205.59985H1.9064C1.57503\x205.59985\x201.3064\x205.86848\x201.3064\x206.19985ZM1.9064\x2010.3997C1.57503\x2010.3997\x201.3064\x2010.1311\x201.3064\x209.79971C1.3064\x209.46834\x201.57503\x209.19971\x201.9064\x209.19971H7.23973C7.5711\x209.19971\x207.83973\x209.46834\x207.83973\x209.79971C7.83973\x2010.1311\x207.5711\x2010.3997\x207.23973\x2010.3997H1.9064ZM1.9064\x2013.9996C1.57503\x2013.9996\x201.3064\x2013.7309\x201.3064\x2013.3996C1.3064\x2013.0682\x201.57503\x2012.7996\x201.9064\x2012.7996H8.57306C8.90443\x2012.7996\x209.17306\x2013.0682\x209.17306\x2013.3996C9.17306\x2013.7309\x208.90443\x2013.9996\x208.57306\x2013.9996H1.9064Z','SequenceSingle','svg','getCell','_check','sheet.menu.sheets-sort','getOwnPropertyDescriptor','_injector','mergeCheck','ComponentManager','scrollTop','custom-sort-dialog','CustomSortPanel','LocaleService','handler','CustomSortSingle','firstRowCheck','expand-ascending-single','tag','render','ExtendConfirm','M12.4208\x201.53335C12.4208\x201.20198\x2012.1522\x200.93335\x2011.8208\x200.93335C11.4895\x200.93335\x2011.2208\x201.20198\x2011.2208\x201.53335V13.0181L9.97861\x2011.7758C9.7443\x2011.5415\x209.3644\x2011.5415\x209.13008\x2011.7758C8.89577\x2012.0101\x208.89577\x2012.39\x209.13008\x2012.6244L11.3967\x2014.891C11.6311\x2015.1253\x2012.011\x2015.1253\x2012.2453\x2014.891L14.5119\x2012.6244C14.7463\x2012.39\x2014.7463\x2012.0101\x2014.5119\x2011.7758C14.2776\x2011.5415\x2013.8977\x2011.5415\x2013.6634\x2011.7758L12.4208\x2013.0184V1.53335Z','url(#$1','confirm','SortRangeAscInCtxMenuCommand','replaceRuntimeIdsInDefs','serializeRange','__decorateClass$2','throttle','univer-custom-sort-panel-item-column-input-dropdown','SortRangeDescExtCommand','closeCustomSortPanel','ascending-\x20single','useState','sheets-sort.general.sort-desc','SortType','M9.77445\x209.24306L9.77457\x2011.9573C9.77458\x2012.2887\x209.50597\x2012.5574\x209.17459\x2012.5574\x208.84322\x2012.5574\x208.57458\x2012.2888\x208.57457\x2011.9574L8.57439\x207.79509C8.57438\x207.46372\x208.84299\x207.19508\x209.17436\x207.19507\x209.3281\x207.19493\x209.48196\x207.25351\x209.59925\x207.3708L11.3465\x209.11808C11.5808\x209.3524\x2011.5808\x209.7323\x2011.3465\x209.96661\x2011.1122\x2010.2009\x2010.7323\x2010.2009\x2010.498\x209.96661L9.77445\x209.24306zM6.22584\x2010.5094L6.22572\x207.79514C6.22571\x207.46377\x206.49433\x207.19513\x206.8257\x207.19512\x207.15707\x207.1951\x207.42571\x207.46372\x207.42572\x207.79509L7.4259\x2011.9574C7.42592\x2012.2888\x207.1573\x2012.5574\x206.82593\x2012.5574\x206.67228\x2012.5575\x206.51828\x2012.4989\x206.40104\x2012.3817L4.65376\x2010.6344C4.41945\x2010.4001\x204.41945\x2010.0202\x204.65376\x209.78588\x204.88808\x209.55156\x205.26798\x209.55156\x205.50229\x209.78588L6.22584\x2010.5094z','disposeWithMe','Column\x20\x22','customSortColMenuItem','addConditionDisable','singleCheck','className','2236692xeFTgr','displayName','_univerInstanceService','show','more-down-single','sheets-sort.general.sort-custom','UniverUi','univer-extend-confirm-radio-group','ILogService','extendConfirmContent','itemRender','embedSortBtnAsc','Tools','sheet.command.sort-range-desc-ext-ctx','_dialogService','label','_sheetRenderService','RangeProtectionPermissionEditPoint','_commandService','univer-custom-sort-panel-item-column-input-text','customSortPanelFooter','defineProperty','M1.14014\x203.73989C1.14014\x202.30396\x202.3042\x201.13989\x203.74014\x201.13989H12.2601C13.6961\x201.13989\x2014.8601\x202.30395\x2014.8601\x203.73989V12.2599C14.8601\x2013.6958\x2013.6961\x2014.8599\x2012.2601\x2014.8599H3.74014C2.3042\x2014.8599\x201.14014\x2013.6958\x201.14014\x2012.2599V3.73989ZM2.34014\x205.86724V12.2599C2.34014\x2013.0331\x202.96694\x2013.6599\x203.74014\x2013.6599H12.2601C13.0333\x2013.6599\x2013.6601\x2013.0331\x2013.6601\x2012.2599V5.86724H2.34014ZM13.6601\x204.66724H2.34014V3.73989C2.34014\x202.9667\x202.96694\x202.33989\x203.74014\x202.33989H12.2601C13.0333\x202.33989\x2013.6601\x202.96669\x2013.6601\x203.73989V4.66724Z','extend-sort-range-dialog','sheet.menu.sheets-sort-ctx','onScroll','_localeService','_logService','span','propertyIsEnumerable','SortRangeAscExtInCtxMenuCommand','UniverIcon','sortRangeCustomCtxMenuFactory','currentColor','getTitles','2552076StuAHa','ZH_CN','call','sequence-single','object','sortRangeDescMenuFactory','current','primary','customSortColMenu','descending-single','ContextMenuPosition','xlink:href','createElement','setConfig','customSortState$','ExpandAscendingSingle','BUTTON','M8.6\x201.99991C8.60001\x201.66854\x208.33138\x201.39991\x208.00001\x201.3999C7.66864\x201.3999\x207.40001\x201.66853\x207.4\x201.9999L7.39996\x207.3999H1.9999C1.66853\x207.3999\x201.3999\x207.66853\x201.3999\x207.9999C1.3999\x208.33127\x201.66853\x208.5999\x201.9999\x208.5999H7.39995L7.3999\x2013.9999C7.3999\x2014.3313\x207.66853\x2014.5999\x207.9999\x2014.5999C8.33127\x2014.5999\x208.5999\x2014.3313\x208.5999\x2013.9999L8.59995\x208.5999H13.9999C14.3313\x208.5999\x2014.5999\x208.33127\x2014.5999\x207.9999C14.5999\x207.66853\x2014.3313\x207.3999\x2013.9999\x207.3999H8.59996L8.6\x201.99991Z','getValue','findNextColIndex','vertical','string','univer-custom-sort-panel-item-remove','expandToContinuousRange','SortOptionItem','sortRangeDescCtxMenuFactory','17075498WvLwVb','sheets-sort.error.merge-size','univer-custom-sort-col-menu-item','M6\x205C6.55228\x205\x207\x204.55228\x207\x204\x207\x203.44772\x206.55228\x203\x206\x203\x205.44772\x203\x205\x203.44772\x205\x204\x205\x204.55228\x205.44772\x205\x206\x205zM6\x209C6.55228\x209\x207\x208.55229\x207\x208\x207\x207.44772\x206.55228\x207\x206\x207\x205.44772\x207\x205\x207.44772\x205\x208\x205\x208.55229\x205.44772\x209\x206\x209zM7\x2012C7\x2012.5523\x206.55228\x2013\x206\x2013\x205.44772\x2013\x205\x2012.5523\x205\x2012\x205\x2011.4477\x205.44772\x2011\x206\x2011\x206.55228\x2011\x207\x2011.4477\x207\x2012zM10\x205C10.5523\x205\x2011\x204.55228\x2011\x204\x2011\x203.44772\x2010.5523\x203\x2010\x203\x209.44771\x203\x209\x203.44772\x209\x204\x209\x204.55228\x209.44771\x205\x2010\x205zM11\x208C11\x208.55229\x2010.5523\x209\x2010\x209\x209.44771\x209\x209\x208.55229\x209\x208\x209\x207.44772\x209.44771\x207\x2010\x207\x2010.5523\x207\x2011\x207.44772\x2011\x208zM10\x2013C10.5523\x2013\x2011\x2012.5523\x2011\x2012\x2011\x2011.4477\x2010.5523\x2011\x2010\x2011\x209.44771\x2011\x209\x2011.4477\x209\x2012\x209\x2012.5523\x209.44771\x2013\x2010\x2013z','sheets-sort.dialog.sort-reminder-no','univer-custom-sort-panel-item-order-radio-cn','ASC','FORMULAS_INSERT','getCustomSortDialogDefaultPosition','@univerjs/engine-formula','IConfigService','evenodd','sortRangeCustomMenuFactory','mask0_622_8','5833160YBsDbh','emptyCheck','formulaCheck','icon','DraggableList','children','sheets-sort.general.sort','_sheetsSortUIService','index','customSortPanelFooterBtn','sheet.command.sort-range-asc-ext','from',',\x20subUnitId:\x20','replaceRuntimeIdsAndExtInAttrs','_confirmService','Module','customSortState','SheetsUIPart','increase-single','sheet.command.sort-range-desc-ext','customSortColMenuItemCheck','CheckMarkSingle','prototype','onVisibleChange','UniverInstanceType','sortRangeAscExtCtxMenuFactory','_sheetsSortService','UniverDesign'];_0x13ec=function(){return _0x237d9a;};return _0x13ec();}function _0x2e99(_0x2bdc22,_0x3c3226){var _0x13ec27=_0x13ec();return _0x2e99=function(_0x2e9969,_0x175932){_0x2e9969=_0x2e9969-0xa5;var _0x465922=_0x13ec27[_0x2e9969];return _0x465922;},_0x2e99(_0x2bdc22,_0x3c3226);}(function(_0x487936,_0x2d4f03){var _0x376885=_0x2e99,_0x280ba=_0x487936();while(!![]){try{var _0x5eb7b3=parseInt(_0x376885(0x203))/0x1*(-parseInt(_0x376885(0x183))/0x2)+-parseInt(_0x376885(0xbe))/0x3*(-parseInt(_0x376885(0xf3))/0x4)+-parseInt(_0x376885(0x1db))/0x5+-parseInt(_0x376885(0x116))/0x6+parseInt(_0x376885(0xb0))/0x7*(-parseInt(_0x376885(0x13e))/0x8)+parseInt(_0x376885(0x1f8))/0x9*(-parseInt(_0x376885(0xb7))/0xa)+parseInt(_0x376885(0x130))/0xb;if(_0x5eb7b3===_0x2d4f03)break;else _0x280ba['push'](_0x280ba['shift']());}catch(_0x3dafa4){_0x280ba['push'](_0x280ba['shift']());}}}(_0x13ec,0x626bc),function(_0x564dd7,_0x5de5a2){var _0x4de9bd=_0x2e99;typeof exports==_0x4de9bd(0x11a)&&typeof module<'u'?_0x5de5a2(exports,require('@univerjs/core'),require('@univerjs/sheets-sort'),require(_0x4de9bd(0x139)),require('@univerjs/sheets-ui'),require(_0x4de9bd(0xbd)),require('rxjs'),require(_0x4de9bd(0x1e8)),require('react'),require(_0x4de9bd(0xc1))):typeof define==_0x4de9bd(0x1a0)&&define[_0x4de9bd(0x1ca)]?define([_0x4de9bd(0x1cc),'@univerjs/core',_0x4de9bd(0x1bd),_0x4de9bd(0x139),_0x4de9bd(0x160),_0x4de9bd(0xbd),'rxjs',_0x4de9bd(0x1e8),_0x4de9bd(0x1a4),_0x4de9bd(0xc1)],_0x5de5a2):(_0x564dd7=typeof globalThis<'u'?globalThis:_0x564dd7||self,_0x5de5a2(_0x564dd7[_0x4de9bd(0x18e)]={},_0x564dd7[_0x4de9bd(0x161)],_0x564dd7[_0x4de9bd(0x194)],_0x564dd7[_0x4de9bd(0x223)],_0x564dd7[_0x4de9bd(0xa5)],_0x564dd7[_0x4de9bd(0xf9)],_0x564dd7[_0x4de9bd(0x173)],_0x564dd7[_0x4de9bd(0x204)],_0x564dd7['React'],_0x564dd7[_0x4de9bd(0x159)]));}(this,function(_0x58139f,_0x3c5d30,_0xf798f4,_0x3f646c,_0x5c16c2,_0x4cdad5,_0x36495a,_0x31e85e,_0x45ab7c,_0x6f414d){'use strict';var _0x20ccf0=_0x2e99;var _0x4fe68e=Object[_0x20ccf0(0x108)],_0x546c85=(_0x58a44c,_0x110fd1,_0x99fc9f)=>_0x110fd1 in _0x58a44c?_0x4fe68e(_0x58a44c,_0x110fd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x99fc9f}):_0x58a44c[_0x110fd1]=_0x99fc9f,_0x255d93=(_0xc6fb1a,_0x51c8ac)=>_0x4fe68e(_0xc6fb1a,'name',{'value':_0x51c8ac,'configurable':!0x0}),_0x4f4b38=(_0x429f4f,_0x67d185,_0x472d40)=>_0x546c85(_0x429f4f,typeof _0x67d185!=_0x20ccf0(0x193)?_0x67d185+'':_0x67d185,_0x472d40),_0x1c2369,_0x269066,_0x2a81ae;const _0x4e2a87='sheets-sort-ui.config',_0x35551a={};var _0x2a29f7=function(){var _0x369ba7=_0x20ccf0;return _0x2a29f7=Object[_0x369ba7(0x16f)]||function(_0x2abe4f){var _0x2420c0=_0x369ba7;for(var _0x42352e,_0x3c16cf=0x1,_0x43bbff=arguments['length'];_0x3c16cf<_0x43bbff;_0x3c16cf++){_0x42352e=arguments[_0x3c16cf];for(var _0x29a141 in _0x42352e)Object[_0x2420c0(0x154)][_0x2420c0(0x1c1)][_0x2420c0(0x118)](_0x42352e,_0x29a141)&&(_0x2abe4f[_0x29a141]=_0x42352e[_0x29a141]);}return _0x2abe4f;},_0x2a29f7['apply'](this,arguments);},_0x2c92fb=function(_0x3037b1,_0x14990f){var _0x376a94=_0x20ccf0,_0x309ff6={};for(var _0x59b283 in _0x3037b1)Object['prototype'][_0x376a94(0x1c1)][_0x376a94(0x118)](_0x3037b1,_0x59b283)&&_0x14990f[_0x376a94(0x1b2)](_0x59b283)<0x0&&(_0x309ff6[_0x59b283]=_0x3037b1[_0x59b283]);if(_0x3037b1!=null&&typeof Object[_0x376a94(0x15c)]=='function'){for(var _0x405cc5=0x0,_0x59b283=Object['getOwnPropertySymbols'](_0x3037b1);_0x405cc5<_0x59b283['length'];_0x405cc5++)_0x14990f[_0x376a94(0x1b2)](_0x59b283[_0x405cc5])<0x0&&Object[_0x376a94(0x154)][_0x376a94(0x110)]['call'](_0x3037b1,_0x59b283[_0x405cc5])&&(_0x309ff6[_0x59b283[_0x405cc5]]=_0x3037b1[_0x59b283[_0x405cc5]]);}return _0x309ff6;},_0x28efb7=_0x45ab7c[_0x20ccf0(0x192)](function(_0x4794b2,_0x346a1e){var _0x45c842=_0x20ccf0,_0x43e036=_0x4794b2[_0x45c842(0x141)],_0x5edcb4=_0x4794b2['id'],_0x19fbc9=_0x4794b2[_0x45c842(0xf2)],_0x58a1c0=_0x4794b2[_0x45c842(0x1a6)],_0x244079=_0x2c92fb(_0x4794b2,['icon','id',_0x45c842(0xf2),_0x45c842(0x1a6)]),_0x23689f=_0x45c842(0x1be)[_0x45c842(0x19a)](_0x5edcb4,'\x20')[_0x45c842(0x19a)](_0x19fbc9||'')[_0x45c842(0x1eb)](),_0x5c259c=_0x45ab7c[_0x45c842(0x1f4)]('_'[_0x45c842(0x19a)](_0x24ef21()));return _0x263933(_0x43e036,''[_0x45c842(0x19a)](_0x5edcb4),{'defIds':_0x43e036[_0x45c842(0x16e)],'idSuffix':_0x5c259c['current']},_0x2a29f7({'ref':_0x346a1e,'className':_0x23689f},_0x244079),_0x58a1c0);});function _0x263933(_0x30e3bf,_0xabe5bd,_0x286ef8,_0x1fb211,_0x327524){var _0x149561=_0x20ccf0;return _0x45ab7c[_0x149561(0x122)](_0x30e3bf[_0x149561(0xda)],_0x2a29f7(_0x2a29f7({'key':_0xabe5bd},_0x27c1ce(_0x30e3bf,_0x286ef8,_0x327524)),_0x1fb211),(_0x68ded(_0x30e3bf,_0x286ef8)[_0x149561(0x143)]||[])[_0x149561(0x1e4)](function(_0x135dc0,_0x2139b6){var _0x42821a=_0x149561;return _0x263933(_0x135dc0,''[_0x42821a(0x19a)](_0xabe5bd,'-')[_0x42821a(0x19a)](_0x30e3bf['tag'],'-')['concat'](_0x2139b6),_0x286ef8,void 0x0,_0x327524);}));}_0x255d93(_0x263933,_0x20ccf0(0xdb));function _0x27c1ce(_0x54fb42,_0x44bd98,_0x115317){var _0xb48fd7=_0x20ccf0,_0x18a8c9=_0x2a29f7({},_0x54fb42[_0xb48fd7(0x1af)]);_0x115317!=null&&_0x115317[_0xb48fd7(0x175)]&&_0x18a8c9[_0xb48fd7(0x195)]==='colorChannel1'&&(_0x18a8c9[_0xb48fd7(0x195)]=_0x115317[_0xb48fd7(0x175)]);var _0x5c9d65=_0x44bd98[_0xb48fd7(0x16e)];return!_0x5c9d65||_0x5c9d65['length']===0x0||(_0x54fb42['tag']===_0xb48fd7(0x1b6)&&_0x18a8c9[_0xb48fd7(0x121)]&&(_0x18a8c9[_0xb48fd7(0x121)]=_0x18a8c9[_0xb48fd7(0x121)]+_0x44bd98[_0xb48fd7(0x1ce)]),Object[_0xb48fd7(0x1fe)](_0x18a8c9)[_0xb48fd7(0xc6)](function(_0x1f9fdc){var _0x3dfc0b=_0xb48fd7,_0x15c46e=_0x1f9fdc[0x0],_0x4cc01b=_0x1f9fdc[0x1];typeof _0x4cc01b==_0x3dfc0b(0x12b)&&(_0x18a8c9[_0x15c46e]=_0x4cc01b['replace'](/url\(#(.*)\)/,_0x3dfc0b(0xde)[_0x3dfc0b(0x19a)](_0x44bd98[_0x3dfc0b(0x1ce)],')')));})),_0x18a8c9;}_0x255d93(_0x27c1ce,_0x20ccf0(0x14b));function _0x68ded(_0x3c54c2,_0x3438b7){var _0x127eda=_0x20ccf0,_0x1ef637,_0x5dfd4a=_0x3438b7[_0x127eda(0x16e)];return!_0x5dfd4a||_0x5dfd4a['length']===0x0?_0x3c54c2:_0x3c54c2[_0x127eda(0xda)]==='defs'&&(!((_0x1ef637=_0x3c54c2[_0x127eda(0x143)])===null||_0x1ef637===void 0x0)&&_0x1ef637[_0x127eda(0x1ed)])?_0x2a29f7(_0x2a29f7({},_0x3c54c2),{'children':_0x3c54c2['children'][_0x127eda(0x1e4)](function(_0x3e7c1d){var _0xf46ffe=_0x127eda;return typeof _0x3e7c1d['attrs']['id']==_0xf46ffe(0x12b)&&_0x5dfd4a&&_0x5dfd4a['indexOf'](_0x3e7c1d[_0xf46ffe(0x1af)]['id'])>-0x1?_0x2a29f7(_0x2a29f7({},_0x3e7c1d),{'attrs':_0x2a29f7(_0x2a29f7({},_0x3e7c1d[_0xf46ffe(0x1af)]),{'id':_0x3e7c1d[_0xf46ffe(0x1af)]['id']+_0x3438b7[_0xf46ffe(0x1ce)]})}):_0x3e7c1d;})}):_0x3c54c2;}_0x255d93(_0x68ded,_0x20ccf0(0xe1));function _0x24ef21(){var _0x500b07=_0x20ccf0;return Math[_0x500b07(0x1d9)]()[_0x500b07(0x162)](0x24)[_0x500b07(0x172)](0x2,0x8);}_0x255d93(_0x24ef21,'generateShortUuid'),_0x28efb7[_0x20ccf0(0xf4)]=_0x20ccf0(0x112);var _0x2f9eb4={'tag':'svg','attrs':{'fill':'none','viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':'currentColor','d':'M12.4208\x2014.4667C12.4208\x2014.798\x2012.1522\x2015.0667\x2011.8208\x2015.0667C11.4895\x2015.0667\x2011.2208\x2014.798\x2011.2208\x2014.4667V2.98193L9.97861\x204.22417C9.7443\x204.45848\x209.3644\x204.45848\x209.13008\x204.22417C8.89577\x203.98985\x208.89577\x203.60995\x209.13008\x203.37564L11.3967\x201.10897C11.6311\x200.874657\x2012.011\x200.874657\x2012.2453\x201.10897L14.5119\x203.37564C14.7463\x203.60995\x2014.7463\x203.98985\x2014.5119\x204.22417C14.2776\x204.45848\x2013.8977\x204.45848\x2013.6634\x204.22417L12.4208\x202.9816V14.4667Z'}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x171),'fillRule':_0x20ccf0(0x13b),'clipRule':_0x20ccf0(0x13b)}}]},_0x1e6641=_0x45ab7c[_0x20ccf0(0x192)](function(_0x40fae4,_0x4feef0){var _0x4bc710=_0x20ccf0;return _0x45ab7c[_0x4bc710(0x122)](_0x28efb7,Object['assign']({},_0x40fae4,{'id':_0x4bc710(0xe8),'ref':_0x4feef0,'icon':_0x2f9eb4}));});_0x1e6641['displayName']=_0x20ccf0(0x20e);var _0x2fcf7e={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':'1em','height':_0x20ccf0(0x200)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x20ccf0(0x13b),'clipRule':'evenodd'}}]},_0x1db7e7=_0x45ab7c['forwardRef'](function(_0x426dc2,_0x5f03aa){var _0x1af60a=_0x20ccf0;return _0x45ab7c[_0x1af60a(0x122)](_0x28efb7,Object[_0x1af60a(0x16f)]({},_0x426dc2,{'id':_0x1af60a(0x1c4),'ref':_0x5f03aa,'icon':_0x2fcf7e}));});_0x1db7e7[_0x20ccf0(0xf4)]=_0x20ccf0(0x153);var _0x5d278d={'tag':_0x20ccf0(0xca),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x20ccf0(0x200)},'children':[{'tag':'path','attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0xec)}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x109),'fillRule':'evenodd','clipRule':_0x20ccf0(0x13b)}}]},_0x3d49a4=_0x45ab7c[_0x20ccf0(0x192)](function(_0x49fd42,_0x1d0d7d){var _0x4400eb=_0x20ccf0;return _0x45ab7c[_0x4400eb(0x122)](_0x28efb7,Object['assign']({},_0x49fd42,{'id':_0x4400eb(0x1ae),'ref':_0x1d0d7d,'icon':_0x5d278d}));});_0x3d49a4[_0x20ccf0(0xf4)]=_0x20ccf0(0xd7);var _0x2e06cf={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':'1em'},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x176)}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x1e1),'fillRule':_0x20ccf0(0x13b),'clipRule':_0x20ccf0(0x13b)}}]},_0x3e2713=_0x45ab7c[_0x20ccf0(0x192)](function(_0x30f510,_0x19fcb5){var _0x1199b8=_0x20ccf0;return _0x45ab7c[_0x1199b8(0x122)](_0x28efb7,Object['assign']({},_0x30f510,{'id':'delete-empty-single','ref':_0x19fcb5,'icon':_0x2e06cf}));});_0x3e2713[_0x20ccf0(0xf4)]='DeleteEmptySingle';var _0x19280a={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':'0\x200\x2016\x2016','width':_0x20ccf0(0x200),'height':'1em'},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0xdd)}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x171),'fillRule':'evenodd','clipRule':_0x20ccf0(0x13b)}}]},_0x2da522=_0x45ab7c['forwardRef'](function(_0x204b49,_0x10c9e9){var _0x1eefd3=_0x20ccf0;return _0x45ab7c[_0x1eefd3(0x122)](_0x28efb7,Object[_0x1eefd3(0x16f)]({},_0x204b49,{'id':_0x1eefd3(0x11f),'ref':_0x10c9e9,'icon':_0x19280a}));});_0x2da522[_0x20ccf0(0xf4)]=_0x20ccf0(0xc0);var _0x4ea6f7={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0xc8),'fillRule':_0x20ccf0(0x13b),'clipRule':_0x20ccf0(0x13b)}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x1d7)}}]},_0x3115e2=_0x45ab7c['forwardRef'](function(_0x1abf10,_0x4413fa){var _0x441007=_0x20ccf0;return _0x45ab7c[_0x441007(0x122)](_0x28efb7,Object[_0x441007(0x16f)]({},_0x1abf10,{'id':_0x441007(0xd9),'ref':_0x4413fa,'icon':_0x4ea6f7}));});_0x3115e2[_0x20ccf0(0xf4)]='ExpandAscendingSingle';var _0x507730={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':'path','attrs':{'fill':_0x20ccf0(0x114),'d':'M1.9064\x2012.7998C1.57503\x2012.7998\x201.3064\x2013.0684\x201.3064\x2013.3998C1.3064\x2013.7311\x201.57503\x2013.9998\x201.9064\x2013.9998H4.57306C4.90443\x2013.9998\x205.17306\x2013.7311\x205.17306\x2013.3998C5.17306\x2013.0684\x204.90443\x2012.7998\x204.57306\x2012.7998H1.9064ZM1.3064\x209.80015C1.3064\x209.46878\x201.57503\x209.20015\x201.9064\x209.20015H5.9064C6.23777\x209.20015\x206.5064\x209.46878\x206.5064\x209.80015C6.5064\x2010.1315\x206.23777\x2010.4001\x205.9064\x2010.4001H1.9064C1.57503\x2010.4001\x201.3064\x2010.1315\x201.3064\x209.80015ZM1.9064\x205.60029C1.57503\x205.60029\x201.3064\x205.86892\x201.3064\x206.20029C1.3064\x206.53166\x201.57503\x206.80029\x201.9064\x206.80029H7.23973C7.5711\x206.80029\x207.83973\x206.53166\x207.83973\x206.20029C7.83973\x205.86892\x207.5711\x205.60029\x207.23973\x205.60029H1.9064ZM1.9064\x202.00044C1.57503\x202.00044\x201.3064\x202.26907\x201.3064\x202.60044C1.3064\x202.93181\x201.57503\x203.20044\x201.9064\x203.20044H8.57306C8.90443\x203.20044\x209.17306\x202.93181\x209.17306\x202.60044C9.17306\x202.26907\x208.90443\x202.00044\x208.57306\x202.00044H1.9064Z','fillRule':_0x20ccf0(0x13b),'clipRule':_0x20ccf0(0x13b)}},{'tag':_0x20ccf0(0xb9),'attrs':{'fill':'currentColor','d':'M12.4267\x201.7333C12.4267\x201.40193\x2012.1581\x201.1333\x2011.8267\x201.1333C11.4953\x201.1333\x2011.2267\x201.40193\x2011.2267\x201.7333V12.818L9.98447\x2011.5758C9.75015\x2011.3415\x209.37026\x2011.3415\x209.13594\x2011.5758C8.90163\x2011.8101\x208.90163\x2012.19\x209.13594\x2012.4243L11.4026\x2014.691C11.6369\x2014.9253\x2012.0168\x2014.9253\x2012.2511\x2014.691L14.5178\x2012.4243C14.7521\x2012.19\x2014.7521\x2011.8101\x2014.5178\x2011.5758C14.2835\x2011.3415\x2013.9036\x2011.3415\x2013.6693\x2011.5758L12.4267\x2012.8183V1.7333Z'}}]},_0x271b58=_0x45ab7c[_0x20ccf0(0x192)](function(_0x526d45,_0x53f8e3){var _0x4729d5=_0x20ccf0;return _0x45ab7c[_0x4729d5(0x122)](_0x28efb7,Object[_0x4729d5(0x16f)]({},_0x526d45,{'id':_0x4729d5(0x217),'ref':_0x53f8e3,'icon':_0x507730}));});_0x271b58[_0x20ccf0(0xf4)]='ExpandDescendingSingle';var _0x54facd={'tag':'svg','attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x127)}}]},_0x4ab43c=_0x45ab7c[_0x20ccf0(0x192)](function(_0x3e1b39,_0x18bf64){var _0x588dba=_0x20ccf0;return _0x45ab7c[_0x588dba(0x122)](_0x28efb7,Object[_0x588dba(0x16f)]({},_0x3e1b39,{'id':_0x588dba(0x150),'ref':_0x18bf64,'icon':_0x54facd}));});_0x4ab43c[_0x20ccf0(0xf4)]='IncreaseSingle';var _0x2a6756={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x114),'d':_0x20ccf0(0x17f),'fillRule':_0x20ccf0(0x13b),'clipRule':_0x20ccf0(0x13b)}}]},_0x283dfc=_0x45ab7c[_0x20ccf0(0x192)](function(_0x227ab0,_0x682139){var _0x2ee851=_0x20ccf0;return _0x45ab7c[_0x2ee851(0x122)](_0x28efb7,Object[_0x2ee851(0x16f)]({},_0x227ab0,{'id':_0x2ee851(0xf7),'ref':_0x682139,'icon':_0x2a6756}));});_0x283dfc[_0x20ccf0(0xf4)]=_0x20ccf0(0x1d4);var _0x59cc17={'tag':_0x20ccf0(0xca),'attrs':{'fill':_0x20ccf0(0x1e0),'viewBox':_0x20ccf0(0x1f9),'width':_0x20ccf0(0x200),'height':_0x20ccf0(0x200)},'children':[{'tag':'mask','attrs':{'id':_0x20ccf0(0x13d),'style':{'maskType':_0x20ccf0(0x1d8)},'width':0x10,'height':0x10,'x':0x0,'y':0x0,'maskUnits':_0x20ccf0(0x15e)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'fill':_0x20ccf0(0x1b7),'d':'M0\x200H16V16H0z'}}]},{'tag':'g','attrs':{'fill':'currentColor','mask':_0x20ccf0(0x1f2)},'children':[{'tag':_0x20ccf0(0xb9),'attrs':{'d':_0x20ccf0(0x133)}}]}]},_0x122031=_0x45ab7c['forwardRef'](function(_0x1a7ebe,_0xf4c06c){var _0x47ca0f=_0x20ccf0;return _0x45ab7c[_0x47ca0f(0x122)](_0x28efb7,Object['assign']({},_0x1a7ebe,{'id':_0x47ca0f(0x119),'ref':_0xf4c06c,'icon':_0x59cc17}));});_0x122031[_0x20ccf0(0xf4)]=_0x20ccf0(0xc9);const _0x4191d3={'extendConfirmContent':'univer-extend-confirm-content','extendConfirmRadioGroup':_0x20ccf0(0xfa),'customSortPanelContainer':_0x20ccf0(0x1d6),'customSortPanelExt':_0x20ccf0(0x17b),'addCondition':_0x20ccf0(0x184),'addConditionText':'univer-add-condition-text','addConditionDisable':_0x20ccf0(0x1c6),'customSortPanelFooter':_0x20ccf0(0x225),'customSortPanelFooterBtn':_0x20ccf0(0x1ee),'customSortPanelItem':_0x20ccf0(0x21b),'customSortPanelItemHead':_0x20ccf0(0x170),'customSortPanelItemHandler':_0x20ccf0(0xc4),'customSortPanelItemRemove':_0x20ccf0(0x12c),'customSortPanelItemColumnInput':_0x20ccf0(0x16b),'customSortPanelItemColumnInputDropdown':_0x20ccf0(0xe5),'customSortPanelItemColumnInputText':_0x20ccf0(0x106),'customSortPanelItemOrderRadio':'univer-custom-sort-panel-item-order-radio','customSortPanelItemOrderRadioCn':_0x20ccf0(0x135),'conditionList':_0x20ccf0(0xa6),'embedSortBtnContainer':_0x20ccf0(0x177),'embedSortBtn':_0x20ccf0(0x1ab),'embedSortBtnAsc':'univer-embed-sort-btn-asc','embedSortBtnDesc':_0x20ccf0(0xc2),'embedSortBtnIcon':_0x20ccf0(0x189),'customSortColMenu':'univer-custom-sort-col-menu','customSortColMenuItem':_0x20ccf0(0x132),'customSortColMenuItemDesc':'univer-custom-sort-col-menu-item-desc'},_0x3eae7d=_0x255d93(_0x26c50d=>{var _0x2567bc=_0x20ccf0;const [_0x4722f6,_0x24c471]=_0x45ab7c[_0x2567bc(0xe9)]('0'),_0x58175e=_0x3c5d30[_0x2567bc(0x1de)](_0x3c5d30['LocaleService']);return _0x45ab7c['createElement'](_0x2567bc(0x227),{'className':_0x4191d3[_0x2567bc(0xfc)]},_0x45ab7c[_0x2567bc(0x122)](_0x2567bc(0x227),{'className':'extend-confirm-desc'},_0x58175e['t']('sheets-sort.dialog.sort-reminder-desc')),_0x45ab7c['createElement'](_0x6f414d[_0x2567bc(0x1aa)],{'className':_0x4191d3['extendConfirmRadioGroup'],'value':_0x4722f6,'direction':_0x2567bc(0x12a),'onChange':_0x255d93(_0x2663d9=>{var _0x406449=_0x2567bc;_0x24c471(_0x2663d9),_0x26c50d[_0x406449(0x1c9)](_0x2663d9);},_0x2567bc(0x1c9))},_0x45ab7c[_0x2567bc(0x122)](_0x6f414d[_0x2567bc(0x1b3)],{'value':'0'},_0x58175e['t'](_0x2567bc(0x134))),_0x45ab7c[_0x2567bc(0x122)](_0x6f414d[_0x2567bc(0x1b3)],{'value':'1'},_0x58175e['t'](_0x2567bc(0x191)))));},_0x20ccf0(0xdc));var _0x3ef80c=Object[_0x20ccf0(0x108)],_0x16b388=Object[_0x20ccf0(0xce)],_0x3e8c83=_0x255d93((_0x2d18b1,_0x36a503,_0x272f23,_0x1f842e)=>{var _0x42d9e1=_0x20ccf0;for(var _0x1e3bca=_0x1f842e>0x1?void 0x0:_0x1f842e?_0x16b388(_0x36a503,_0x272f23):_0x36a503,_0x1ef38a=_0x2d18b1[_0x42d9e1(0x1ed)]-0x1,_0x21270f;_0x1ef38a>=0x0;_0x1ef38a--)(_0x21270f=_0x2d18b1[_0x1ef38a])&&(_0x1e3bca=(_0x1f842e?_0x21270f(_0x36a503,_0x272f23,_0x1e3bca):_0x21270f(_0x1e3bca))||_0x1e3bca);return _0x1f842e&&_0x1e3bca&&_0x3ef80c(_0x36a503,_0x272f23,_0x1e3bca),_0x1e3bca;},_0x20ccf0(0xe3)),_0x439e0c=_0x255d93((_0x5da779,_0x12317f)=>(_0x4b15f0,_0x4421f5)=>_0x12317f(_0x4b15f0,_0x4421f5,_0x5da779),'__decorateParam$2');const _0x190d76={'MERGE_ERROR':_0x20ccf0(0x131),'EMPTY_ERROR':'sheets-sort.error.empty','SINGLE_ERROR':_0x20ccf0(0x19b),'FORMULA_ARRAY':_0x20ccf0(0x1f1)};let _0x1d859d=(_0x1c2369=class extends _0x3c5d30[_0x20ccf0(0x1b1)]{constructor(_0x4a13b6,_0x90b3a,_0x1b62c0,_0x369339,_0x2470d3,_0x1f4399,_0x2e2568){var _0x5d2593=_0x20ccf0;super(),_0x4f4b38(this,'_customSortState$',new _0x36495a[(_0x5d2593(0x181))](null)),_0x4f4b38(this,_0x5d2593(0x124),this[_0x5d2593(0x222)]['asObservable']()),(this[_0x5d2593(0xf5)]=_0x4a13b6,this['_confirmService']=_0x90b3a,this[_0x5d2593(0x10e)]=_0x1b62c0,this['_selectionManagerService']=_0x369339,this['_sheetsSortService']=_0x2470d3,this[_0x5d2593(0x10d)]=_0x1f4399,this[_0x5d2593(0x105)]=_0x2e2568);}async[_0x20ccf0(0x1ac)](_0x3e271d,_0x451c70,_0x1e3910){var _0x10ec7c=_0x20ccf0;const _0x1894fa=_0x1e3910||await this['_detectSortLocation'](_0x451c70);if(!_0x1894fa||!this[_0x10ec7c(0xcc)](_0x1894fa))return!0x1;const _0x53fe08={'orderRules':[{'type':_0x3e271d?_0xf798f4[_0x10ec7c(0xeb)]['ASC']:_0xf798f4[_0x10ec7c(0xeb)][_0x10ec7c(0x16d)],'colIndex':_0x1894fa[_0x10ec7c(0x168)]}],'range':_0x1894fa[_0x10ec7c(0x1b9)]};return this['_sheetsSortService'][_0x10ec7c(0x1f3)](_0x53fe08,_0x1894fa['unitId'],_0x1894fa[_0x10ec7c(0x20a)]),!0x0;}async[_0x20ccf0(0xa9)](){var _0x213bae=_0x20ccf0;const _0x26195e=await this[_0x213bae(0x1a9)]();return!_0x26195e||!this[_0x213bae(0xcc)](_0x26195e)?!0x1:(this[_0x213bae(0x1ef)](_0x26195e),!0x0);}[_0x20ccf0(0x14e)](){var _0x3fc7cd=_0x20ccf0;return this[_0x3fc7cd(0x222)][_0x3fc7cd(0x128)]();}['getTitles'](_0x2cf3ca){var _0x243170=_0x20ccf0,_0x56ab7e,_0x43a814;const _0x420d71=(_0x56ab7e=this['customSortState']())==null?void 0x0:_0x56ab7e['location'];if(!_0x420d71)return[];const {unitId:_0x4ba88a,subUnitId:_0xc6400e,range:_0xa06092}=_0x420d71,_0xd48173=(_0x43a814=this['_univerInstanceService'][_0x243170(0x201)](_0x4ba88a))==null?void 0x0:_0x43a814[_0x243170(0xa7)](_0xc6400e);if(!_0xd48173)return[];const _0x512028=_0x39ae59(this[_0x243170(0x10d)]);return Array[_0x243170(0x149)]({'length':_0xa06092['endColumn']-_0xa06092[_0x243170(0x208)]+0x1},(_0x23ca05,_0x439b02)=>{var _0x5ac833=_0x243170,_0x3da9d6;const _0x58306f=(_0x3da9d6=_0xd48173[_0x5ac833(0xcb)](_0xa06092[_0x5ac833(0xc5)],_0x439b02+_0xa06092[_0x5ac833(0x208)]))==null?void 0x0:_0x3da9d6['v'];return{'index':_0x439b02+_0xa06092[_0x5ac833(0x208)],'label':_0x2cf3ca?''+(_0x58306f!=null?_0x58306f:_0x512028(_0x439b02+_0xa06092[_0x5ac833(0x208)])):_0x512028(_0x439b02+_0xa06092['startColumn'])};});}['setSelection'](_0xe2ffca,_0x4c6225,_0x13c695){var _0xa553c=_0x20ccf0,_0x24eb61;const _0x427d43=(_0x24eb61=this[_0xa553c(0xf5)][_0xa553c(0x201)](_0xe2ffca))==null?void 0x0:_0x24eb61[_0xa553c(0xa7)](_0x4c6225);if(!_0x427d43)return;const _0x23edc9={'unitId':_0xe2ffca,'subUnitId':_0x4c6225,'selections':[{'range':_0x13c695,'primary':_0x31e85e['getPrimaryForRange'](_0x13c695,_0x427d43),'style':null}]};this['_commandService'][_0xa553c(0x1a7)](_0x31e85e[_0xa553c(0x180)]['id'],_0x23edc9);}async['showCheckError'](_0x30d772){var _0x3cbdac=_0x20ccf0;return await this[_0x3cbdac(0x14c)][_0x3cbdac(0xdf)]({'id':_0x3cbdac(0x1d5),'title':{'title':this['_localeService']['t'](_0x3cbdac(0x182))},'children':{'title':_0x45ab7c[_0x3cbdac(0x122)]('div',null,this['_localeService']['t'](_0x30d772))}});}async['showExtendConfirm'](){var _0x15e307=_0x20ccf0;let _0x591a1a=!0x1;return await this[_0x15e307(0x14c)][_0x15e307(0xdf)]({'id':_0x15e307(0x10a),'title':{'title':this[_0x15e307(0x10d)]['t'](_0x15e307(0x1d2))},'children':{'title':_0x45ab7c[_0x15e307(0x122)](_0x3eae7d,{'onChange':_0x255d93(_0x22a7a7=>{_0x591a1a=_0x22a7a7==='1';},_0x15e307(0x1c9))})},'width':0x190})?_0x591a1a?_0x15e307(0x1a6):_0x15e307(0x1e3):'cancel';}['showCustomSortPanel'](_0x4b706c){var _0x3a302c=_0x20ccf0;this[_0x3a302c(0x222)][_0x3a302c(0xb8)]({'location':_0x4b706c,'show':!0x0});}[_0x20ccf0(0xe7)](){var _0x3a6c37=_0x20ccf0;this[_0x3a6c37(0x222)]['next']({'show':!0x1});}['_check'](_0x22344f){var _0x408b59=_0x20ccf0;return this[_0x408b59(0x158)][_0x408b59(0xf1)](_0x22344f)?this[_0x408b59(0x158)][_0x408b59(0xd0)](_0x22344f)?this['_sheetsSortService'][_0x408b59(0x140)](_0x22344f)?this['_sheetsSortService'][_0x408b59(0x13f)](_0x22344f)?!0x0:(this['showCheckError'](_0x190d76[_0x408b59(0xb1)]),!0x1):(this[_0x408b59(0x1c5)](_0x190d76[_0x408b59(0xc7)]),!0x1):(this['showCheckError'](_0x190d76[_0x408b59(0x214)]),!0x1):(this[_0x408b59(0x1c5)](_0x190d76['SINGLE_ERROR']),!0x1);}async['_detectSortLocation'](_0x2c4336){var _0x1190d4=_0x20ccf0;const _0x20f93c=this[_0x1190d4(0xf5)][_0x1190d4(0x163)](_0x3c5d30[_0x1190d4(0x156)][_0x1190d4(0x1ba)]),_0x2e2da7=_0x20f93c['getActiveSheet'](),_0x24811e=_0x20f93c['getUnitId'](),_0xa05057=_0x2e2da7[_0x1190d4(0x202)](),_0x7062b5=this[_0x1190d4(0xbc)]['getCurrentLastSelection']();if(!_0x7062b5)return null;let _0x30ff6b;if(_0x2c4336===!0x0)_0x30ff6b=_0x31e85e[_0x1190d4(0x12d)](_0x7062b5[_0x1190d4(0x1b9)],{'up':!0x0,'down':!0x0,'left':!0x0,'right':!0x0},_0x2e2da7),this['setSelection'](_0x24811e,_0xa05057,_0x30ff6b);else{if(_0x2c4336===!0x1)_0x30ff6b=_0x7062b5[_0x1190d4(0x1b9)];else{const _0x3daae5=await this[_0x1190d4(0x220)]();if(_0x3daae5===_0x1190d4(0x15b))return null;_0x3daae5===_0x1190d4(0x1e3)?_0x30ff6b=_0x7062b5[_0x1190d4(0x1b9)]:(_0x30ff6b=_0x31e85e[_0x1190d4(0x12d)](_0x7062b5[_0x1190d4(0x1b9)],{'up':!0x0,'down':!0x0,'left':!0x0,'right':!0x0},_0x2e2da7),this[_0x1190d4(0x221)](_0x24811e,_0xa05057,_0x30ff6b));}}return{'range':_0x30ff6b,'unitId':_0x24811e,'subUnitId':_0xa05057,'colIndex':_0x7062b5[_0x1190d4(0x11d)]['actualColumn']};}},_0x255d93(_0x1c2369,'SheetsSortUIService'),_0x1c2369);_0x1d859d=_0x3e8c83([_0x439e0c(0x0,_0x3c5d30[_0x20ccf0(0x1c8)]),_0x439e0c(0x1,_0x4cdad5['IConfirmService']),_0x439e0c(0x2,_0x3c5d30[_0x20ccf0(0xfb)]),_0x439e0c(0x3,_0x3c5d30[_0x20ccf0(0x17e)](_0x31e85e[_0x20ccf0(0x18b)])),_0x439e0c(0x4,_0x3c5d30[_0x20ccf0(0x17e)](_0xf798f4[_0x20ccf0(0xb6)])),_0x439e0c(0x5,_0x3c5d30['Inject'](_0x3c5d30[_0x20ccf0(0xd5)])),_0x439e0c(0x6,_0x3c5d30[_0x20ccf0(0xb2)])],_0x1d859d);function _0x39ae59(_0x303c60){return _0xbe681c=>{var _0x394f7e=_0x2e99;const _0x586874=_0x3c5d30[_0x394f7e(0xff)]['chatAtABC'](_0xbe681c);switch(_0x303c60[_0x394f7e(0xab)]()){case _0x3c5d30[_0x394f7e(0x18d)][_0x394f7e(0x117)]:return'\x22'+_0x586874+'\x22列';case _0x3c5d30[_0x394f7e(0x18d)][_0x394f7e(0x1a2)]:return _0x394f7e(0xee)+_0x586874+'\x22';default:return _0x394f7e(0xee)+_0x586874+'\x22';}};}_0x255d93(_0x39ae59,'colIndexTranslator');const _0x4115db={'id':_0x20ccf0(0x190),'type':_0x3c5d30['CommandType'][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x47f61c=>await _0x47f61c[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0x1ac)](!0x0,!0x1),_0x20ccf0(0xd6))},_0x194ccd={'id':_0x20ccf0(0x148),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x4047fa=>await _0x4047fa[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0x1ac)](!0x0,!0x0),'handler')},_0x2084f1={'id':'sheet.command.sort-range-desc','type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x3b4d8f=>await _0x3b4d8f[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0x1ac)](!0x1,!0x1),_0x20ccf0(0xd6))},_0x542b4f={'id':_0x20ccf0(0x151),'type':_0x3c5d30[_0x20ccf0(0x166)]['COMMAND'],'handler':_0x255d93(async _0x48e98b=>await _0x48e98b[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0x1ac)](!0x1,!0x0),_0x20ccf0(0xd6))},_0x413caa={'id':_0x20ccf0(0x1b8),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x38fa06=>await _0x38fa06[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0xa9)](),_0x20ccf0(0xd6))},_0x2ed394={'id':_0x20ccf0(0x1b5),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x48f49a=>await _0x48f49a[_0x20ccf0(0x205)](_0x1d859d)['triggerSortDirectly'](!0x0,!0x1),_0x20ccf0(0xd6))},_0x460f2d={'id':_0x20ccf0(0x18a),'type':_0x3c5d30['CommandType'][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x3af39c=>await _0x3af39c[_0x20ccf0(0x205)](_0x1d859d)['triggerSortDirectly'](!0x0,!0x0),_0x20ccf0(0xd6))},_0x308fbc={'id':_0x20ccf0(0x1c2),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x5237c2=>await _0x5237c2[_0x20ccf0(0x205)](_0x1d859d)[_0x20ccf0(0x1ac)](!0x1,!0x1),'handler')},_0x5ba6e2={'id':_0x20ccf0(0x100),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x29ca8e=>await _0x29ca8e['get'](_0x1d859d)[_0x20ccf0(0x1ac)](!0x1,!0x0),'handler')},_0x14cf81={'id':_0x20ccf0(0x174),'type':_0x3c5d30[_0x20ccf0(0x166)][_0x20ccf0(0x213)],'handler':_0x255d93(async _0x491577=>await _0x491577['get'](_0x1d859d)['triggerSortCustomize'](),_0x20ccf0(0xd6))};function _0x3805db(){var _0x5b25a5=_0x20ccf0;const _0x33b461=_0x3c5d30[_0x5b25a5(0x1de)](_0x1d859d),_0x228440=_0x3c5d30[_0x5b25a5(0x1de)](_0xf798f4[_0x5b25a5(0xb6)]),_0x521089=_0x3c5d30[_0x5b25a5(0x1de)](_0x3c5d30[_0x5b25a5(0xd5)]),[_0x142720,_0x166545]=_0x45ab7c['useState'](!0x1),[_0x4ff555,_0xf18f90]=_0x45ab7c[_0x5b25a5(0xe9)](0x0),_0x4b39df=_0x45ab7c['useRef'](null),_0x480fcd=_0x33b461[_0x5b25a5(0x14e)]();if(!_0x480fcd||!_0x480fcd[_0x5b25a5(0x15a)])return null;const {range:_0x41bd13,unitId:_0x2ecd82,subUnitId:_0x4657a4}=_0x480fcd[_0x5b25a5(0x15a)],_0x5278ba=_0x33b461[_0x5b25a5(0x115)](_0x142720),[_0x43fcb7,_0x21a26b]=_0x45ab7c[_0x5b25a5(0xe9)]([{'type':_0xf798f4[_0x5b25a5(0xeb)]['ASC'],'colIndex':_0x41bd13['startColumn']}]),_0x204439=_0x45ab7c[_0x5b25a5(0x206)]((_0x21b9c4,_0x211597)=>{var _0x40dea2=_0x5b25a5;const _0x5d94dd=[..._0x43fcb7];_0x211597===null?_0x5d94dd[_0x40dea2(0x1c0)](_0x21b9c4,0x1):_0x5d94dd[_0x21b9c4]=_0x211597,_0x21a26b(_0x5d94dd);},[_0x43fcb7]),_0x19a633=_0x45ab7c['useCallback'](_0x3c5d30[_0x5b25a5(0xe4)](()=>{var _0xd88b4e=_0x5b25a5;const _0x3f00ba=[..._0x43fcb7],_0xa9e8d1=_0x56e38c(_0x41bd13,_0x43fcb7);_0xa9e8d1!==null&&(_0x3f00ba[_0xd88b4e(0x19e)]({'type':_0xf798f4['SortType'][_0xd88b4e(0x136)],'colIndex':_0xa9e8d1}),_0x21a26b(_0x3f00ba));},0xc8),[_0x43fcb7,_0x41bd13]),_0x23f5e9=_0x45ab7c[_0x5b25a5(0x206)]((_0x309645,_0x359629)=>{var _0x187f5b=_0x5b25a5;_0x228440['applySort']({'range':_0x41bd13,'orderRules':_0x309645,'hasTitle':_0x359629}),_0x33b461[_0x187f5b(0xe7)]();},[_0x228440,_0x33b461,_0x41bd13]),_0x489cf5=_0x45ab7c['useCallback'](()=>{_0x33b461['closeCustomSortPanel']();},[_0x33b461]),_0x54952b=_0x45ab7c['useCallback'](_0x2b9015=>{var _0x25c566=_0x5b25a5;_0x166545(_0x2b9015),_0x2b9015?_0x33b461['setSelection'](_0x2ecd82,_0x4657a4,{..._0x41bd13,'startRow':_0x41bd13[_0x25c566(0xc5)]+0x1}):_0x33b461[_0x25c566(0x221)](_0x2ecd82,_0x4657a4,_0x41bd13);},[_0x33b461,_0x41bd13,_0x4657a4,_0x2ecd82]);_0x45ab7c[_0x5b25a5(0x20d)](()=>{var _0x5e8a9a=_0x5b25a5;_0x4b39df[_0x5e8a9a(0x11c)]&&_0x43fcb7['length']>0x5&&(_0x4b39df[_0x5e8a9a(0x11c)][_0x5e8a9a(0xd2)]=_0x4b39df[_0x5e8a9a(0x11c)][_0x5e8a9a(0xbb)]);},[_0x43fcb7]);const _0x53e604=_0x43fcb7['length']<_0x5278ba[_0x5b25a5(0x1ed)],_0x3dca16=_0x43fcb7[_0x5b25a5(0x1e4)](_0x23d862=>({..._0x23d862,'id':''+_0x23d862[_0x5b25a5(0x168)]}));return _0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0x210)]},_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0x21e)],'onMouseDown':_0x255d93(_0x22e065=>{var _0x8c2bb3=_0x5b25a5;_0x22e065[_0x8c2bb3(0xbf)]();},_0x5b25a5(0x199))},_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0x21c)]},_0x45ab7c['createElement'](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0xd8)]},_0x45ab7c[_0x5b25a5(0x122)](_0x6f414d[_0x5b25a5(0x21a)],{'checked':_0x142720,'onChange':_0x255d93(_0x3e63f8=>_0x54952b(!!_0x3e63f8),'onChange')},_0x521089['t']('sheets-sort.dialog.first-row-check'))),_0x53e604?_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3['addCondition'],'onClick':_0x19a633},_0x45ab7c['createElement'](_0x4ab43c,null),_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x10f),{'className':_0x4191d3[_0x5b25a5(0xb5)]},_0x521089['t']('sheets-sort.dialog.add-condition'))):_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0x18c)]+'\x20'+_0x4191d3[_0x5b25a5(0xf0)]},_0x45ab7c[_0x5b25a5(0x122)](_0x4ab43c,null),_0x45ab7c[_0x5b25a5(0x122)]('span',{'className':_0x4191d3[_0x5b25a5(0xb5)]},_0x521089['t']('sheets-sort.dialog.add-condition')))),_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3['conditionList'],'onScroll':_0x255d93(_0x547a51=>{var _0x3178b7=_0x5b25a5;const _0x3494d6=_0x547a51[_0x3178b7(0x1cd)][_0x3178b7(0xd2)];_0xf18f90(_0x3494d6);},_0x5b25a5(0x10c)),'ref':_0x4b39df},_0x45ab7c[_0x5b25a5(0x122)](_0x6f414d[_0x5b25a5(0x142)],{'list':_0x3dca16,'onListChange':_0x21a26b,'idKey':'id','draggableHandle':'.'+_0x4191d3[_0x5b25a5(0x19d)],'itemRender':_0x255d93(_0x12f9b0=>_0x45ab7c['createElement'](_0x51dcfd,{'titles':_0x5278ba,'list':_0x3dca16,'item':_0x12f9b0,'onChange':_0x255d93((_0x41ae9f,_0x1d622e)=>_0x204439(_0x1d622e,_0x41ae9f),_0x5b25a5(0x1c9)),'scrollPosition':_0x4ff555}),_0x5b25a5(0xfd)),'rowHeight':0x20,'margin':[0x0,0xc]}))),_0x45ab7c[_0x5b25a5(0x122)](_0x5b25a5(0x227),{'className':_0x4191d3[_0x5b25a5(0x107)]},_0x45ab7c[_0x5b25a5(0x122)](_0x6f414d[_0x5b25a5(0x1a1)],{'className':_0x4191d3['customSortPanelFooterBtn'],'type':_0x5b25a5(0x224),'onClick':_0x255d93(()=>_0x489cf5(),'onClick')},_0x521089['t']('sheets-sort.dialog.cancel')),_0x45ab7c[_0x5b25a5(0x122)](_0x6f414d['Button'],{'className':_0x4191d3[_0x5b25a5(0x147)],'type':_0x5b25a5(0x11d),'onClick':_0x255d93(()=>_0x23f5e9(_0x43fcb7,_0x142720),_0x5b25a5(0x16a))},_0x521089['t']('sheets-sort.dialog.confirm'))));}_0x255d93(_0x3805db,'CustomSortPanel');function _0x51dcfd(_0x129c0e){var _0x51140b=_0x20ccf0,_0x271446;const {list:_0x29cd31,item:_0x1c3a3e,titles:_0x197b24,onChange:_0x3bd103,scrollPosition:_0x4ede97}=_0x129c0e,_0x335442=_0x3c5d30['useDependency'](_0x3c5d30[_0x51140b(0xd5)]),_0x354bf9=_0x197b24[_0x51140b(0x1b4)](_0x120084=>!_0x29cd31[_0x51140b(0x1a8)](_0xa702dd=>_0xa702dd['colIndex']===_0x120084['index'])||_0x120084['index']===_0x1c3a3e['colIndex']),_0x22e386=_0x29cd31['findIndex'](_0x5485aa=>_0x5485aa[_0x51140b(0x168)]===_0x1c3a3e['colIndex']),_0x4b21e1=_0x45ab7c[_0x51140b(0x206)](_0x5bc952=>{_0x3bd103({..._0x1c3a3e,'colIndex':_0x5bc952['index']},_0x22e386),_0x2a59fc(!0x1);},[_0x22e386,_0x1c3a3e,_0x3bd103]),[_0x44890f,_0x2a59fc]=_0x45ab7c['useState'](!0x1),_0x1ef5cb=_0x255d93(_0x49c0ca=>{_0x2a59fc(_0x49c0ca);},_0x51140b(0x155));_0x45ab7c['useEffect'](()=>{_0x2a59fc(!0x1);},[_0x4ede97]);const _0x3f4bfd=_0x29cd31[_0x51140b(0x1ed)]>0x1,_0x48e54b=(_0x271446=_0x197b24['find'](_0x7fd9f2=>_0x7fd9f2[_0x51140b(0x146)]===_0x1c3a3e[_0x51140b(0x168)]))==null?void 0x0:_0x271446[_0x51140b(0x102)],_0x4e960b=_0x335442['getCurrentLocale']()===_0x3c5d30[_0x51140b(0x18d)][_0x51140b(0x117)]?_0x4191d3[_0x51140b(0x20b)]:_0x4191d3[_0x51140b(0x185)];return _0x45ab7c[_0x51140b(0x122)]('div',{'className':_0x4191d3[_0x51140b(0x1ff)]},_0x45ab7c['createElement'](_0x51140b(0x227),{'className':_0x4191d3[_0x51140b(0x187)]},_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x227),{'className':_0x4191d3[_0x51140b(0x19d)]},_0x45ab7c[_0x51140b(0x122)](_0x122031,null)),_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x227),{'className':_0x4191d3[_0x51140b(0x1d3)]},_0x45ab7c['createElement'](_0x6f414d[_0x51140b(0x1f5)],{'placement':'bottomLeft','trigger':['click'],'visible':_0x44890f,'onVisibleChange':_0x1ef5cb,'overlay':_0x45ab7c['createElement']('ul',{'className':_0x4191d3[_0x51140b(0x11e)]},_0x354bf9[_0x51140b(0x1e4)](_0x47928d=>_0x45ab7c[_0x51140b(0x122)]('li',{'key':_0x47928d[_0x51140b(0x146)],'onClick':_0x255d93(()=>_0x4b21e1(_0x47928d),_0x51140b(0x16a)),'className':_0x4191d3[_0x51140b(0xef)]},_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x10f),{'className':_0x4191d3[_0x51140b(0x21f)]},_0x47928d[_0x51140b(0x102)]),_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x10f),{'className':_0x4191d3[_0x51140b(0x152)]},_0x47928d[_0x51140b(0x146)]===_0x1c3a3e[_0x51140b(0x168)]&&_0x45ab7c[_0x51140b(0x122)](_0x1db7e7,null)))))},_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x227),{'className':_0x4191d3[_0x51140b(0x197)]},_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x10f),{'className':_0x4191d3[_0x51140b(0x178)]},_0x48e54b),_0x45ab7c[_0x51140b(0x122)](_0x283dfc,{'className':_0x4191d3['customSortPanelItemColumnInputDropdown']}))))),_0x45ab7c['createElement']('div',{'className':_0x4191d3[_0x51140b(0x211)]},_0x45ab7c[_0x51140b(0x122)](_0x6f414d[_0x51140b(0x1aa)],{'className':_0x4e960b,'value':_0x1c3a3e[_0x51140b(0x1fc)],'onChange':_0x255d93(_0x279093=>{_0x3bd103({..._0x1c3a3e,'type':_0x279093},_0x22e386);},'onChange')},_0x45ab7c['createElement'](_0x6f414d[_0x51140b(0x1b3)],{'value':_0xf798f4[_0x51140b(0xeb)][_0x51140b(0x136)]},_0x335442['t'](_0x51140b(0x1c3))),_0x45ab7c['createElement'](_0x6f414d[_0x51140b(0x1b3)],{'value':_0xf798f4[_0x51140b(0xeb)][_0x51140b(0x16d)]},_0x335442['t'](_0x51140b(0xea))))),_0x45ab7c[_0x51140b(0x122)](_0x51140b(0x227),{'className':_0x4191d3['customSortPanelItemRemove']},_0x3f4bfd&&_0x45ab7c[_0x51140b(0x122)](_0x3e2713,{'onClick':_0x255d93(()=>_0x3bd103(null,_0x22e386),_0x51140b(0x16a))})));}_0x255d93(_0x51dcfd,_0x20ccf0(0x12e));function _0x56e38c(_0x2a1f10,_0x300a6c){var _0x53948d=_0x20ccf0;const {startColumn:_0x5e0453,endColumn:_0x43aafe}=_0x2a1f10,_0x15260b=new Set(_0x300a6c[_0x53948d(0x1e4)](_0x4f9269=>_0x4f9269==null?void 0x0:_0x4f9269[_0x53948d(0x168)]));for(let _0x35a892=_0x5e0453;_0x35a892<=_0x43aafe;_0x35a892++)if(!_0x15260b[_0x53948d(0xb4)](_0x35a892))return _0x35a892;return null;}_0x255d93(_0x56e38c,_0x20ccf0(0x129));function _0x3bdd0e(_0x1fb445){var _0x19bf2a=_0x20ccf0;const {range:_0x2fed72,colIndex:_0x3bed2a,onClose:_0x10539a}=_0x1fb445,_0x178eef=_0x3c5d30[_0x19bf2a(0x1de)](_0x1d859d),_0x44d5fd=_0x3c5d30[_0x19bf2a(0x1de)](_0x3c5d30[_0x19bf2a(0x1c8)]),_0x265d81=_0x3c5d30[_0x19bf2a(0x1de)](_0x3c5d30[_0x19bf2a(0xd5)]),_0x4b3fb0=_0x45ab7c[_0x19bf2a(0x206)](_0x4edc92=>{var _0x460dfb=_0x19bf2a;const {unitId:_0x583a4c,subUnitId:_0x149ab1}=_0x31e85e[_0x460dfb(0x1f0)](_0x44d5fd)||{};if(_0x2fed72&&_0x583a4c&&_0x149ab1){const _0x197d6d={..._0x2fed72,'startRow':_0x2fed72[_0x460dfb(0xc5)]+0x1};_0x178eef['triggerSortDirectly'](_0x4edc92,!0x1,{'unitId':_0x583a4c,'subUnitId':_0x149ab1,'range':_0x197d6d,'colIndex':_0x3bed2a});}else console['warn']('Cannot\x20find\x20the\x20target\x20to\x20sort.\x20unitId:\x20'+_0x583a4c+_0x460dfb(0x14a)+_0x149ab1+_0x460dfb(0xa8)+_0x2fed72+_0x460dfb(0x167)+_0x3bed2a);_0x10539a();},[_0x2fed72,_0x3bed2a,_0x178eef,_0x44d5fd,_0x10539a]);return _0x45ab7c['createElement'](_0x19bf2a(0x227),{'className':_0x4191d3[_0x19bf2a(0x1a3)]},_0x45ab7c[_0x19bf2a(0x122)](_0x19bf2a(0x227),{'className':_0x4191d3[_0x19bf2a(0x216)]+'\x20'+_0x4191d3[_0x19bf2a(0xfe)],'onClick':_0x255d93(()=>_0x4b3fb0(!0x0),_0x19bf2a(0x16a))},_0x45ab7c[_0x19bf2a(0x122)](_0x1e6641,{'className':_0x4191d3[_0x19bf2a(0x1ad)]}),_0x265d81['t'](_0x19bf2a(0x1c3))),_0x45ab7c[_0x19bf2a(0x122)](_0x19bf2a(0x227),{'className':_0x4191d3[_0x19bf2a(0x216)]+'\x20'+_0x4191d3['embedSortBtnDesc'],'onClick':_0x255d93(()=>_0x4b3fb0(!0x1),_0x19bf2a(0x16a))},_0x45ab7c[_0x19bf2a(0x122)](_0x2da522,{'className':_0x4191d3['embedSortBtnIcon']}),_0x265d81['t'](_0x19bf2a(0xea))));}_0x255d93(_0x3bdd0e,_0x20ccf0(0x1da));const _0x252efd=_0x20ccf0(0xcd),_0x29eefe=_0x20ccf0(0x10b),_0x2f5115=_0x20ccf0(0x20e),_0x1c9d65=_0x20ccf0(0x125),_0x31e026=_0x20ccf0(0xc0),_0x1377c4=_0x20ccf0(0x20c),_0x5ee8fb='CustomSortSingle';function _0x3dd85f(_0x51ccbd){var _0x1b9807=_0x20ccf0;return{'id':_0x252efd,'type':_0x4cdad5[_0x1b9807(0x1b0)]['SUBITEMS'],'icon':_0x2f5115,'tooltip':'sheets-sort.general.sort','hidden$':_0x4cdad5[_0x1b9807(0x1e6)](_0x51ccbd,_0x3c5d30['UniverInstanceType'][_0x1b9807(0x1ba)]),'disabled$':_0x5c16c2['getCurrentRangeDisable$'](_0x51ccbd,{'workbookTypes':[_0x31e85e[_0x1b9807(0xae)]],'worksheetTypes':[_0x31e85e[_0x1b9807(0xad)],_0x31e85e[_0x1b9807(0x1cf)]],'rangeTypes':[_0x31e85e[_0x1b9807(0x104)]]})};}_0x255d93(_0x3dd85f,'sortRangeMenuFactory');function _0x1bd769(_0x5b0df1){var _0x578747=_0x20ccf0;return{'id':_0x4115db['id'],'icon':_0x2f5115,'title':_0x578747(0x1bb),'type':_0x4cdad5['MenuItemType']['BUTTON'],'hidden$':_0x5c16c2[_0x578747(0x164)](_0x5b0df1)};}_0x255d93(_0x1bd769,_0x20ccf0(0x1e9));function _0x35106f(_0x191490){var _0x436c83=_0x20ccf0;return{'id':_0x194ccd['id'],'title':_0x436c83(0x21d),'icon':_0x1c9d65,'type':_0x4cdad5[_0x436c83(0x1b0)]['BUTTON']};}_0x255d93(_0x35106f,'sortRangeAscExtMenuFactory');function _0x442079(_0x552ef4){var _0x2afe87=_0x20ccf0;return{'id':_0x2084f1['id'],'title':'sheets-sort.general.sort-desc-cur','icon':_0x31e026,'type':_0x4cdad5[_0x2afe87(0x1b0)][_0x2afe87(0x126)]};}_0x255d93(_0x442079,_0x20ccf0(0x11b));function _0x520823(_0xf119fb){var _0x29c5e5=_0x20ccf0;return{'id':_0x542b4f['id'],'title':_0x29c5e5(0x186),'icon':_0x1377c4,'type':_0x4cdad5[_0x29c5e5(0x1b0)][_0x29c5e5(0x126)]};}_0x255d93(_0x520823,'sortRangeDescExtMenuFactory');function _0x1f5304(_0xed047b){var _0x20af51=_0x20ccf0;return{'id':_0x413caa['id'],'title':_0x20af51(0xf8),'type':_0x4cdad5[_0x20af51(0x1b0)][_0x20af51(0x126)],'icon':_0x5ee8fb};}_0x255d93(_0x1f5304,_0x20ccf0(0x13c));function _0x27825a(_0x490623){var _0x4e07e5=_0x20ccf0;return{'id':_0x29eefe,'title':_0x4e07e5(0x144),'type':_0x4cdad5[_0x4e07e5(0x1b0)][_0x4e07e5(0x212)],'icon':_0x2f5115,'hidden$':_0x4cdad5[_0x4e07e5(0x1e6)](_0x490623,_0x3c5d30[_0x4e07e5(0x156)][_0x4e07e5(0x1ba)]),'disabled$':_0x5c16c2[_0x4e07e5(0x17a)](_0x490623,{'workbookTypes':[_0x31e85e[_0x4e07e5(0xae)]],'worksheetTypes':[_0x31e85e[_0x4e07e5(0xad)],_0x31e85e[_0x4e07e5(0x1cf)]],'rangeTypes':[_0x31e85e['RangeProtectionPermissionEditPoint']]})};}_0x255d93(_0x27825a,_0x20ccf0(0x1a5));function _0x5ea6ac(_0x3012c3){var _0x24e198=_0x20ccf0;return{'id':_0x2ed394['id'],'title':_0x24e198(0x1bb),'type':_0x4cdad5[_0x24e198(0x1b0)][_0x24e198(0x126)],'icon':_0x2f5115,'disabled$':_0x5c16c2[_0x24e198(0x17a)](_0x3012c3,{'workbookTypes':[_0x31e85e[_0x24e198(0xae)]],'worksheetTypes':[_0x31e85e[_0x24e198(0xad)],_0x31e85e[_0x24e198(0x1cf)]],'rangeTypes':[_0x31e85e[_0x24e198(0x104)]]})};}_0x255d93(_0x5ea6ac,'sortRangeAscCtxMenuFactory');function _0x11bd24(_0x46fdd2){var _0x1c4b77=_0x20ccf0;return{'id':_0x460f2d['id'],'title':_0x1c4b77(0x21d),'type':_0x4cdad5[_0x1c4b77(0x1b0)][_0x1c4b77(0x126)],'icon':_0x1c9d65,'disabled$':_0x5c16c2[_0x1c4b77(0x17a)](_0x46fdd2,{'workbookTypes':[_0x31e85e[_0x1c4b77(0xae)]],'worksheetTypes':[_0x31e85e[_0x1c4b77(0xad)],_0x31e85e[_0x1c4b77(0x1cf)]],'rangeTypes':[_0x31e85e[_0x1c4b77(0x104)]]})};}_0x255d93(_0x11bd24,_0x20ccf0(0x157));function _0xab4a63(_0x7110f1){var _0x18c2f0=_0x20ccf0;return{'id':_0x308fbc['id'],'title':_0x18c2f0(0x198),'type':_0x4cdad5[_0x18c2f0(0x1b0)][_0x18c2f0(0x126)],'icon':_0x31e026,'disabled$':_0x5c16c2[_0x18c2f0(0x17a)](_0x7110f1,{'workbookTypes':[_0x31e85e[_0x18c2f0(0xae)]],'worksheetTypes':[_0x31e85e[_0x18c2f0(0xad)],_0x31e85e[_0x18c2f0(0x1cf)]],'rangeTypes':[_0x31e85e[_0x18c2f0(0x104)]]})};}_0x255d93(_0xab4a63,_0x20ccf0(0x12f));function _0x9bdc2b(_0x3d3349){var _0x248947=_0x20ccf0;return{'id':_0x5ba6e2['id'],'title':'sheets-sort.general.sort-desc-ext','type':_0x4cdad5['MenuItemType'][_0x248947(0x126)],'icon':_0x1377c4,'disabled$':_0x5c16c2[_0x248947(0x17a)](_0x3d3349,{'workbookTypes':[_0x31e85e[_0x248947(0xae)]],'worksheetTypes':[_0x31e85e['WorksheetSortPermission'],_0x31e85e[_0x248947(0x1cf)]],'rangeTypes':[_0x31e85e['RangeProtectionPermissionEditPoint']]})};}_0x255d93(_0x9bdc2b,_0x20ccf0(0x20f));function _0xde7cf8(_0x59657f){var _0x1a4474=_0x20ccf0;return{'id':_0x14cf81['id'],'title':_0x1a4474(0xf8),'type':_0x4cdad5[_0x1a4474(0x1b0)]['BUTTON'],'icon':_0x5ee8fb,'disabled$':_0x5c16c2[_0x1a4474(0x17a)](_0x59657f,{'workbookTypes':[_0x31e85e[_0x1a4474(0xae)]],'worksheetTypes':[_0x31e85e[_0x1a4474(0xad)],_0x31e85e[_0x1a4474(0x1cf)]],'rangeTypes':[_0x31e85e[_0x1a4474(0x104)]]})};}_0x255d93(_0xde7cf8,_0x20ccf0(0x113));const _0x21bee8={[_0x4cdad5['RibbonStartGroup'][_0x20ccf0(0x137)]]:{[_0x252efd]:{'order':0x2,'menuItemFactory':_0x3dd85f,[_0x4115db['id']]:{'order':0x0,'menuItemFactory':_0x1bd769},[_0x194ccd['id']]:{'order':0x1,'menuItemFactory':_0x35106f},[_0x2084f1['id']]:{'order':0x2,'menuItemFactory':_0x442079},[_0x542b4f['id']]:{'order':0x3,'menuItemFactory':_0x520823},[_0x413caa['id']]:{'order':0x4,'menuItemFactory':_0x1f5304}}},[_0x4cdad5[_0x20ccf0(0x120)][_0x20ccf0(0x1f6)]]:{[_0x4cdad5['ContextMenuGroup'][_0x20ccf0(0x17c)]]:{[_0x29eefe]:{'order':0x0,'menuItemFactory':_0x27825a,[_0x2ed394['id']]:{'order':0x0,'menuItemFactory':_0x5ea6ac},[_0x460f2d['id']]:{'order':0x1,'menuItemFactory':_0x11bd24},[_0x308fbc['id']]:{'order':0x2,'menuItemFactory':_0xab4a63},[_0x5ba6e2['id']]:{'order':0x3,'menuItemFactory':_0x9bdc2b},[_0x14cf81['id']]:{'order':0x4,'menuItemFactory':_0xde7cf8}}}}};var _0x147cf1=Object['defineProperty'],_0x185040=Object[_0x20ccf0(0xce)],_0x596b38=_0x255d93((_0x1eda8b,_0xd6a205,_0x2b2cb3,_0x524050)=>{var _0x4b86ba=_0x20ccf0;for(var _0x4a1b2a=_0x524050>0x1?void 0x0:_0x524050?_0x185040(_0xd6a205,_0x2b2cb3):_0xd6a205,_0x5c4095=_0x1eda8b[_0x4b86ba(0x1ed)]-0x1,_0x428d17;_0x5c4095>=0x0;_0x5c4095--)(_0x428d17=_0x1eda8b[_0x5c4095])&&(_0x4a1b2a=(_0x524050?_0x428d17(_0xd6a205,_0x2b2cb3,_0x4a1b2a):_0x428d17(_0x4a1b2a))||_0x4a1b2a);return _0x524050&&_0x4a1b2a&&_0x147cf1(_0xd6a205,_0x2b2cb3,_0x4a1b2a),_0x4a1b2a;},'__decorateClass$1'),_0x2971c7=_0x255d93((_0xf9c474,_0x47d27a)=>(_0x58dcec,_0x470d33)=>_0x47d27a(_0x58dcec,_0x470d33,_0xf9c474),'__decorateParam$1');const _0x2b880f=_0x20ccf0(0xd3),_0x171c68=0x230;let _0x42720e=(_0x269066=class extends _0x3c5d30['RxDisposable']{constructor(_0x1b437c,_0x299e84,_0xb34fdc,_0x3bc834,_0xf093d7,_0x1eb64d,_0x3279b2,_0x23047b,_0x189ea3,_0x51fa38){var _0x52c38d=_0x20ccf0;super(),this['_commandService']=_0x1b437c,this[_0x52c38d(0x1ec)]=_0x299e84,this[_0x52c38d(0x101)]=_0xb34fdc,this[_0x52c38d(0x15d)]=_0x3bc834,this[_0x52c38d(0xc3)]=_0xf093d7,this[_0x52c38d(0x103)]=_0x1eb64d,this[_0x52c38d(0x10d)]=_0x3279b2,this[_0x52c38d(0x145)]=_0x23047b,this['_injector']=_0x189ea3,this[_0x52c38d(0x165)]=_0x51fa38,this[_0x52c38d(0x215)](),this[_0x52c38d(0x1fa)](),this[_0x52c38d(0x1f7)]();}['_initMenu'](){var _0x1a4c2d=_0x20ccf0;this['_menuManagerService'][_0x1a4c2d(0xaa)](_0x21bee8);}[_0x20ccf0(0x215)](){var _0x2fd931=_0x20ccf0;[_0x4115db,_0x194ccd,_0x2084f1,_0x542b4f,_0x413caa,_0x2ed394,_0x460f2d,_0x308fbc,_0x5ba6e2,_0x14cf81]['forEach'](_0x4cf4b9=>this['disposeWithMe'](this[_0x2fd931(0x105)]['registerCommand'](_0x4cf4b9))),this[_0x2fd931(0xed)](this[_0x2fd931(0x103)][_0x2fd931(0x19f)](_0xf798f4[_0x2fd931(0x19c)]['id']));}[_0x20ccf0(0x1f7)](){var _0x105cb9=_0x20ccf0;this[_0x105cb9(0xed)](this[_0x105cb9(0x165)]['register'](_0x105cb9(0xd4),_0x3805db)),this[_0x105cb9(0xed)](this[_0x105cb9(0xc3)]['registerComponent'](_0x5c16c2[_0x105cb9(0x14f)][_0x105cb9(0x1ea)],()=>_0x3c5d30[_0x105cb9(0x207)](_0x3bdd0e,this[_0x105cb9(0xcf)]))),this[_0x105cb9(0xed)](this[_0x105cb9(0x165)][_0x105cb9(0x1cb)](_0x2f5115,_0x1e6641)),this[_0x105cb9(0xed)](this[_0x105cb9(0x165)]['register'](_0x1c9d65,_0x3115e2)),this[_0x105cb9(0xed)](this[_0x105cb9(0x165)]['register'](_0x31e026,_0x2da522)),this[_0x105cb9(0xed)](this[_0x105cb9(0x165)][_0x105cb9(0x1cb)](_0x1377c4,_0x271b58)),this[_0x105cb9(0xed)](this[_0x105cb9(0x165)]['register'](_0x5ee8fb,_0x3d49a4)),this['_sheetsSortUIService']['customSortState$']['pipe'](_0x36495a[_0x105cb9(0x1fb)](this[_0x105cb9(0x226)]))['subscribe'](_0xca3214=>{var _0x362d91=_0x105cb9;_0xca3214&&_0xca3214[_0x362d91(0xf6)]&&_0xca3214[_0x362d91(0x15a)]?this[_0x362d91(0x169)](_0xca3214[_0x362d91(0x15a)]):_0xca3214&&!(_0xca3214!=null&&_0xca3214[_0x362d91(0xf6)])&&this[_0x362d91(0x219)]();});}[_0x20ccf0(0x169)](_0x1ff8d6){var _0x4aa06d=_0x20ccf0;this[_0x4aa06d(0x101)]['open']({'id':_0x2b880f,'draggable':!0x0,'width':_0x171c68,'title':{'title':this['_localeService']['t'](_0x4aa06d(0xf8))+':\x20'+_0x3f646c[_0x4aa06d(0xe2)](_0x1ff8d6[_0x4aa06d(0x1b9)])},'children':{'label':_0x4aa06d(0xd4)},'destroyOnClose':!0x0,'defaultPosition':_0x3d3d22(),'preservePositionOnDestroy':!0x1,'onClose':_0x255d93(()=>this[_0x4aa06d(0x219)](),_0x4aa06d(0x196)),'mask':!0x0});}['_closePanel'](){var _0x7a065d=_0x20ccf0;this[_0x7a065d(0x101)][_0x7a065d(0x15f)](_0x2b880f),queueMicrotask(()=>this[_0x7a065d(0x15d)][_0x7a065d(0xaf)]());}},_0x255d93(_0x269066,_0x20ccf0(0x188)),_0x269066);_0x42720e=_0x596b38([_0x2971c7(0x0,_0x3c5d30[_0x20ccf0(0xb2)]),_0x2971c7(0x1,_0x4cdad5['IMenuManagerService']),_0x2971c7(0x2,_0x4cdad5[_0x20ccf0(0x218)]),_0x2971c7(0x3,_0x4cdad5[_0x20ccf0(0x1d1)]),_0x2971c7(0x4,_0x4cdad5['IUIPartsService']),_0x2971c7(0x5,_0x3c5d30[_0x20ccf0(0x17e)](_0x5c16c2[_0x20ccf0(0x17d)])),_0x2971c7(0x6,_0x3c5d30[_0x20ccf0(0x17e)](_0x3c5d30[_0x20ccf0(0xd5)])),_0x2971c7(0x7,_0x3c5d30[_0x20ccf0(0x17e)](_0x1d859d)),_0x2971c7(0x8,_0x3c5d30[_0x20ccf0(0x17e)](_0x3c5d30[_0x20ccf0(0x209)])),_0x2971c7(0x9,_0x3c5d30[_0x20ccf0(0x17e)](_0x4cdad5[_0x20ccf0(0xd1)]))],_0x42720e);function _0x3d3d22(){return{'x':0x0,'y':0x0};}_0x255d93(_0x3d3d22,_0x20ccf0(0x138));var _0x134249=Object[_0x20ccf0(0x108)],_0x2ef6e4=Object[_0x20ccf0(0xce)],_0x476694=_0x255d93((_0x34758a,_0x117523,_0x194a5f)=>_0x117523 in _0x34758a?_0x134249(_0x34758a,_0x117523,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x194a5f}):_0x34758a[_0x117523]=_0x194a5f,_0x20ccf0(0xba)),_0x3c92ab=_0x255d93((_0x3c8bbb,_0x3aec7f,_0x5f27e4,_0x3890cd)=>{for(var _0x3ea142=_0x3890cd>0x1?void 0x0:_0x3890cd?_0x2ef6e4(_0x3aec7f,_0x5f27e4):_0x3aec7f,_0x217565=_0x3c8bbb['length']-0x1,_0x37ce61;_0x217565>=0x0;_0x217565--)(_0x37ce61=_0x3c8bbb[_0x217565])&&(_0x3ea142=(_0x3890cd?_0x37ce61(_0x3aec7f,_0x5f27e4,_0x3ea142):_0x37ce61(_0x3ea142))||_0x3ea142);return _0x3890cd&&_0x3ea142&&_0x134249(_0x3aec7f,_0x5f27e4,_0x3ea142),_0x3ea142;},_0x20ccf0(0xac)),_0x1b7d6f=_0x255d93((_0x545296,_0x892d4a)=>(_0x441335,_0x567d6d)=>_0x892d4a(_0x441335,_0x567d6d,_0x545296),_0x20ccf0(0x1e5)),_0x46d0f8=_0x255d93((_0x3cf2e6,_0x45c077,_0x4c31ce)=>_0x476694(_0x3cf2e6,typeof _0x45c077!=_0x20ccf0(0x193)?_0x45c077+'':_0x45c077,_0x4c31ce),'__publicField');const _0x26dcb8=_0x20ccf0(0x1df);_0x58139f[_0x20ccf0(0x1dd)]=(_0x2a81ae=class extends _0x3c5d30[_0x20ccf0(0x1fd)]{constructor(_0x44890e=_0x35551a,_0x185349,_0x14fa44){var _0x3355fa=_0x20ccf0;super(),this['_config']=_0x44890e,this[_0x3355fa(0xcf)]=_0x185349,this['_configService']=_0x14fa44;const {..._0x5de139}=this['_config'];this[_0x3355fa(0x1d0)][_0x3355fa(0x123)](_0x4e2a87,_0x5de139);}[_0x20ccf0(0x18f)](){var _0x4f5e91=_0x20ccf0;[[_0x1d859d],[_0x42720e]][_0x4f5e91(0xc6)](_0x5b5ea6=>this[_0x4f5e91(0xcf)]['add'](_0x5b5ea6));}[_0x20ccf0(0x1e7)](){var _0x3deee7=_0x20ccf0;this[_0x3deee7(0xcf)][_0x3deee7(0x205)](_0x42720e);}},_0x255d93(_0x2a81ae,_0x20ccf0(0x1dd)),_0x2a81ae),_0x46d0f8(_0x58139f[_0x20ccf0(0x1dd)],_0x20ccf0(0x1fc),_0x3c5d30[_0x20ccf0(0x156)][_0x20ccf0(0x1ba)]),_0x46d0f8(_0x58139f[_0x20ccf0(0x1dd)],_0x20ccf0(0x1e2),_0x26dcb8),_0x58139f['UniverSheetsSortUIPlugin']=_0x3c92ab([_0x3c5d30[_0x20ccf0(0x1dc)](_0xf798f4[_0x20ccf0(0x1bf)]),_0x1b7d6f(0x1,_0x3c5d30[_0x20ccf0(0x17e)](_0x3c5d30[_0x20ccf0(0x209)])),_0x1b7d6f(0x2,_0x3c5d30[_0x20ccf0(0x13a)])],_0x58139f[_0x20ccf0(0x1dd)]),_0x58139f[_0x20ccf0(0x16c)]=_0x4115db,_0x58139f['SortRangeAscExtCommand']=_0x194ccd,_0x58139f[_0x20ccf0(0x111)]=_0x460f2d,_0x58139f[_0x20ccf0(0xe0)]=_0x2ed394,_0x58139f['SortRangeCustomCommand']=_0x413caa,_0x58139f[_0x20ccf0(0xb3)]=_0x14cf81,_0x58139f[_0x20ccf0(0x1c7)]=_0x2084f1,_0x58139f[_0x20ccf0(0xe6)]=_0x542b4f,_0x58139f['SortRangeDescExtInCtxMenuCommand']=_0x5ba6e2,_0x58139f[_0x20ccf0(0x1bc)]=_0x308fbc,Object[_0x20ccf0(0x108)](_0x58139f,Symbol[_0x20ccf0(0x179)],{'value':_0x20ccf0(0x14d)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-sort-ui",
|
|
3
|
-
"version": "0.3.0-
|
|
3
|
+
"version": "0.3.0-nightly.202410101606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Univer Sheets Sort UI",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,25 +47,25 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
49
49
|
"rxjs": ">=7.0.0",
|
|
50
|
-
"@univerjs/core": "0.3.0-
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets-
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs/core": "0.3.0-nightly.202410101606",
|
|
51
|
+
"@univerjs/sheets": "0.3.0-nightly.202410101606",
|
|
52
|
+
"@univerjs/design": "0.3.0-nightly.202410101606",
|
|
53
|
+
"@univerjs/sheets-sort": "0.3.0-nightly.202410101606",
|
|
54
|
+
"@univerjs/sheets-ui": "0.3.0-nightly.202410101606",
|
|
55
|
+
"@univerjs/engine-formula": "0.3.0-nightly.202410101606",
|
|
56
|
+
"@univerjs/ui": "0.3.0-nightly.202410101606"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^0.1.78",
|
|
60
60
|
"clsx": "^2.1.1",
|
|
61
61
|
"rc-virtual-list": "^3.14.5",
|
|
62
|
-
"@univerjs/core": "0.3.0-
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-ui": "0.3.0-
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
62
|
+
"@univerjs/core": "0.3.0-nightly.202410101606",
|
|
63
|
+
"@univerjs/engine-render": "0.3.0-nightly.202410101606",
|
|
64
|
+
"@univerjs/design": "0.3.0-nightly.202410101606",
|
|
65
|
+
"@univerjs/sheets": "0.3.0-nightly.202410101606",
|
|
66
|
+
"@univerjs/sheets-ui": "0.3.0-nightly.202410101606",
|
|
67
|
+
"@univerjs/sheets-sort": "0.3.0-nightly.202410101606",
|
|
68
|
+
"@univerjs/ui": "0.3.0-nightly.202410101606"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"less": "^4.2.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.6.2",
|
|
75
75
|
"vite": "^5.4.8",
|
|
76
76
|
"vitest": "^2.1.1",
|
|
77
|
-
"@univerjs-infra/shared": "0.3.0
|
|
77
|
+
"@univerjs-infra/shared": "0.3.0"
|
|
78
78
|
},
|
|
79
79
|
"univerSpace": {
|
|
80
80
|
".": {
|
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
|