@next-bricks/advanced 0.44.1 → 0.44.3

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.
@@ -1030,53 +1030,53 @@
1030
1030
  "category": "form-input-basic"
1031
1031
  },
1032
1032
  {
1033
- "name": "advanced.pdf-viewer",
1033
+ "name": "eo-text-tooltip",
1034
1034
  "properties": [
1035
1035
  {
1036
- "name": "url",
1036
+ "name": "label",
1037
+ "description": "文案",
1038
+ "default": null,
1037
1039
  "type": "string"
1038
1040
  },
1039
1041
  {
1040
- "name": "page",
1042
+ "name": "lineClamp",
1043
+ "description": "省略行数",
1044
+ "default": "1",
1041
1045
  "type": "number"
1042
- },
1043
- {
1044
- "name": "search",
1045
- "type": "string"
1046
- },
1047
- {
1048
- "name": "viewerStyle",
1049
- "attribute": false,
1050
- "type": "React.CSSProperties"
1051
1046
  }
1052
1047
  ],
1053
1048
  "events": [],
1054
1049
  "slots": [],
1055
1050
  "methods": [],
1056
1051
  "parts": [],
1057
- "description": "构件 `advanced.pdf-viewer`"
1052
+ "description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
1058
1053
  },
1059
1054
  {
1060
- "name": "eo-text-tooltip",
1055
+ "name": "advanced.pdf-viewer",
1061
1056
  "properties": [
1062
1057
  {
1063
- "name": "label",
1064
- "description": "文案",
1065
- "default": null,
1058
+ "name": "url",
1066
1059
  "type": "string"
1067
1060
  },
1068
1061
  {
1069
- "name": "lineClamp",
1070
- "description": "省略行数",
1071
- "default": "1",
1062
+ "name": "page",
1072
1063
  "type": "number"
1064
+ },
1065
+ {
1066
+ "name": "search",
1067
+ "type": "string"
1068
+ },
1069
+ {
1070
+ "name": "viewerStyle",
1071
+ "attribute": false,
1072
+ "type": "React.CSSProperties"
1073
1073
  }
1074
1074
  ],
1075
1075
  "events": [],
1076
1076
  "slots": [],
1077
1077
  "methods": [],
1078
1078
  "parts": [],
1079
- "description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
1079
+ "description": "构件 `advanced.pdf-viewer`"
1080
1080
  }
1081
1081
  ],
1082
1082
  "providers": [
package/dist/types.json CHANGED
@@ -1296,6 +1296,26 @@
1296
1296
  ],
1297
1297
  "methods": []
1298
1298
  },
1299
+ "eo-text-tooltip": {
1300
+ "properties": [
1301
+ {
1302
+ "name": "label",
1303
+ "annotation": {
1304
+ "type": "keyword",
1305
+ "value": "string"
1306
+ }
1307
+ },
1308
+ {
1309
+ "name": "lineClamp",
1310
+ "annotation": {
1311
+ "type": "keyword",
1312
+ "value": "number"
1313
+ }
1314
+ }
1315
+ ],
1316
+ "events": [],
1317
+ "methods": []
1318
+ },
1299
1319
  "advanced.pdf-viewer": {
1300
1320
  "properties": [
1301
1321
  {
@@ -1340,26 +1360,6 @@
1340
1360
  "events": [],
1341
1361
  "methods": []
1342
1362
  },
1343
- "eo-text-tooltip": {
1344
- "properties": [
1345
- {
1346
- "name": "label",
1347
- "annotation": {
1348
- "type": "keyword",
1349
- "value": "string"
1350
- }
1351
- },
1352
- {
1353
- "name": "lineClamp",
1354
- "annotation": {
1355
- "type": "keyword",
1356
- "value": "number"
1357
- }
1358
- }
1359
- ],
1360
- "events": [],
1361
- "methods": []
1362
- },
1363
1363
  "advanced.capture-snapshot": {
1364
1364
  "type": "provider",
1365
1365
  "params": [
@@ -3,5 +3,7 @@ import { WorkbenchComponent } from "../interfaces";
3
3
  export interface DraggableComponentMenuItemProps {
4
4
  component: WorkbenchComponent;
5
5
  onClick?(): void;
6
+ onDragStart?(): void;
7
+ onDragEnd?(): void;
6
8
  }
7
9
  export declare function DraggableComponentMenuItem(props: DraggableComponentMenuItemProps): React.ReactElement;
@@ -4,7 +4,6 @@ export interface DroppableComponentLayoutItemProps {
4
4
  component: WorkbenchComponent;
5
5
  layout?: ExtraLayout;
6
6
  isEdit?: boolean;
7
- onDrop?(component: WorkbenchComponent): void;
8
7
  onDelete?(): void;
9
8
  }
10
9
  export declare function DroppableComponentLayoutItem(props: DroppableComponentLayoutItemProps): React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.44.1",
3
+ "version": "0.44.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/icons": "*",
46
46
  "@next-bricks/markdown": "*"
47
47
  },
48
- "gitHead": "07cde33e703a569208372ddf4239988bde789140"
48
+ "gitHead": "398487ed713fdf922b717b7395c82600e9a9f7ba"
49
49
  }
@@ -1,2 +0,0 @@
1
- (globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[7157],{2198:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".brickTableOddRow{background-color:var(--color-fill-bg-base-4)}.ant-table-small .ant-table-body{margin:0}.ant-table-small .ant-table-thead{background:var(--antd-table-header-bg)}.ant-table-small .ant-table-row{line-height:26px}.ant-table-tbody > tr.invalidRow > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.invalidRow:hover > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.disabledRow > td{background-color:var(--theme-gray-border-color)}.ant-table-tbody > .ant-table-row-selected td{background:var(--antd-table-cell-fixed-body-bg)!important}td.alignTop{vertical-align:top}td.alignBottom{vertical-align:bottom}.expandIconCellHidden .ant-table-row-expand-icon-cell,\n.expandIconCellHidden .ant-table-expand-icon-col{width:1px;min-width:auto}.expandIconCellHidden .ant-table-row-expand-icon-cell > *,\n.expandIconCellHidden .ant-table-expand-icon-col > *{display:none}.expandIconSpan{cursor:pointer;margin-right:9px;color:var(--antd-table-row-expand-icon-color);font-size:11px}.expandIconSpan .anticon{background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.tableThTransparent thead.ant-table-thead > tr > th{background:var(--antd-table-header-bg)}.zebraPatternTable .ant-table-tbody tr td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.totalText{color:var(--antd-pagination-total-text)}.total{font-weight:normal;color:var(--antd-pagination-total-strong-text)}.ant-table-wrapper .ant-table-thead > tr > th{padding:11px 16px;font-size:12px;line-height:20px;border-bottom:0;font-weight:500;color:var(--antd-table-header-color)}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin:24px 0}.xSmallSizeTable .ant-table{line-height:1}.xSmallSizeTable .ant-table .ant-table-selection-col{width:32px}.xSmallSizeTable .ant-table-thead tr th,\n.xSmallSizeTable .ant-table-tbody tr td{padding:0px 2px}.xSmallSizeTable .ant-table-thead tr th:first-child,\n.xSmallSizeTable .ant-table-tbody tr td:first-child{padding:0}",""]);const o=n.toString()},16322:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),o=i(20062),l=i.n(o),h=new URL(i(59224),i.b),d=n()(s()),c=l()(h);d.push([e.id,`.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(${c});background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,\n.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,\n.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}`,""]);const p=d.toString()},25629:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:inline;width:-moz-fit-content;width:fit-content;max-width:100%}:host([hidden]){display:none}.ellipsisWrap{display:-webkit-box;word-break:break-all;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp);white-space:normal;overflow:hidden}",""]);const o=n.toString()},28383:()=>{},34566:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,'.react-grid-layout{position:relative;transition:height 200ms ease}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:0.2;transition-duration:100ms;z-index:2;-webkit-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item > .react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item > .react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,0.4);border-bottom:2px solid rgba(0,0,0,0.4)}.react-resizable-hide > .react-resizable-handle{display:none}.react-grid-item > .react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}',""]);const o=n.toString()},34695:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:block}:host([hidden]){display:none}.ant-tree-select{width:100%;min-height:28px;height:max-content}.ant-select-lg{height:38px}.ant-select-sm{height:20px}.ant-select-multiple .ant-select-selector{border-radius:var(--small-border-radius)}.ant-select-multiple .ant-select-selector:after{line-height:22px}",""]);const o=n.toString()},37564:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),o=i(20062),l=i.n(o),h=new URL(i(59224),i.b),d=n()(s()),c=l()(h);d.push([e.id,`.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(${c});background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,\n.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,\n.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}`,""]);const p=d},39138:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:block}:host([hidden]){display:none}:host .ant-tree{background-color:transparent}",""]);const o=n.toString()},39630:()=>{},59224:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},61590:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".component--MVAoEnGN{height:100%}.editMask--nl6r17tE{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.deleteIcon--tNyE_ou4{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.deleteIcon--tNyE_ou4:hover{color:var(--color-error)}.deleteIcon--tNyE_ou4:active{color:var(--color-error-active)}",""]),n.locals={component:"component--MVAoEnGN",editMask:"editMask--nl6r17tE",deleteIcon:"deleteIcon--tNyE_ou4"};const o=n},71040:()=>{},71058:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".ant-select-single .ant-select-selector{border-radius:var(--medius-border-radius)}.ant-select-dropdown{border-radius:var(--medius-border-radius)}.ant-cascader-dropdown .ant-cascader-menu-item{border-radius:var(--small-border-radius)}",""]);const o=n.toString()},82474:()=>{},82590:()=>{},85515:()=>{},85689:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),o=i(87796),l=i(37564),h=n()(s());h.i(o.A),h.i(l.A),h.push([e.id,".react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=h},87796:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,'.react-grid-layout{position:relative;transition:height 200ms ease}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:0.2;transition-duration:100ms;z-index:2;-webkit-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item > .react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item > .react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,0.4);border-bottom:2px solid rgba(0,0,0,0.4)}.react-resizable-hide > .react-resizable-handle{display:none}.react-grid-item > .react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}',""]);const o=n},89739:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".gridLayoutWrapper--DIttynOM{display:flex;height:100%;position:relative}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP,.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR{overflow:auto}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP{width:200px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:sticky;top:0}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentTitle--nKf9GEoj{font-size:16px;padding:6px 0;font-weight:500}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB{margin-top:6px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR{flex:1;display:flex;flex-direction:column;align-items:center}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj,.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{width:100%}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj{flex-grow:1;max-width:1300px;margin:0 auto}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}",""]),n.locals={gridLayoutWrapper:"gridLayoutWrapper--DIttynOM",componentWrapper:"componentWrapper--P8xsKOQP",layoutWrapper:"layoutWrapper--pk1t3UAR",componentTitle:"componentTitle--nKf9GEoj",componentList:"componentList--s3XnAYsB",layout:"layout--kz28taJj",actionsWrapper:"actionsWrapper--vQro2Dyn"};const o=n},91116:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),o=i(34566),l=i(16322),h=n()(s());h.i(o.A),h.i(l.A),h.push([e.id,":host{display:block}:host([hidden]){display:none}.grid-layout-wrapper{display:flex;height:100%;position:relative}.grid-layout-wrapper .component-wrapper{width:150px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:sticky;top:0}.grid-layout-wrapper .component-wrapper .component-title{font-size:16px;padding:6px 0;font-weight:500}.grid-layout-wrapper .component-wrapper .component-list{margin-top:6px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.grid-layout-wrapper .layout-wrapper{flex:1}.grid-layout-wrapper .layout-wrapper .layout{max-width:1300px;margin:0 auto}.grid-layout-wrapper .layout-wrapper .actions-wrapper{position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}.grid-layout-wrapper .layout-wrapper .edit-mask{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.grid-layout-wrapper .layout-wrapper .delete-icon{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.grid-layout-wrapper .layout-wrapper .delete-icon:hover{color:var(--color-error)}.grid-layout-wrapper .layout-wrapper .delete-icon:active{color:var(--color-error-active)}.react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=h.toString()},93815:(e,t,i)=>{"use strict";var a=i(24586),s=i(74635),r=i(70918),n=i(26902),o=i(5536),l=i(86121),h=i(70829),d=i(62740),c=i(18769),p=i.n(c),u=i(6192),g=i(99859),m=i(2198),A=i(41030),w=i(18974),b=i(89575),y=i(10212),f=i(40194);const k={$eq:A.isEqual,$lt:A.lt,$lte:A.lte,$gt:A.gt,$gte:A.gte,$ne:(e,t)=>!(0,A.isEqual)(e,t),$isEqual:A.isEqual,$notEqual:(e,t)=>!(0,A.isEqual)(e,t),$in:A.includes,$nin:(e,t)=>!(0,A.includes)(e,t),$exists:(e,t)=>e?!(0,A.isUndefined)(t):(0,A.isUndefined)(t)};function x(e,t,i){const{dataIndex:a,mapping:s}=e,r=void 0!==a?(0,A.get)(t,a):i,n=s.find((e=>e.value===r));return n?{borderLeft:`4px solid ${n.leftBorderColor}`}:{}}const v=(e,t,i,a)=>{e&&(0,A.forEach)(e,(e=>{const s=(0,A.get)(e,i),r=(0,A.get)(e,t);a.push(r),null!=s&&s.length&&v(s,t,i,a)}))},C=(e,t,i)=>{e&&(0,A.forEach)(e,(e=>{const a=(0,A.get)(e,t);i.push(e),null!=a&&a.length&&C(a,t,i)}))};function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var i;return null!==(i=t[e])&&void 0!==i&&i.length?E(e,t[e]):(delete t[e],t)})),t}var S=i(53373),W=i.n(S),M=i(47522),z=i(80255),R=i(63737),_=i(50692),B=i(53435),D=i.n(B),N=i(88361),I=i(95694);var P=i(69704),K=i(99733),T=i(84352),U=i(26386);(0,P.initializeReactI18n)("bricks/advanced/eo-table",{en:{},zh:{}});const L="DraggableBodyRow",F={lib:"antd",icon:"down",theme:"outlined"},O={lib:"antd",icon:"right",theme:"outlined"},H=(0,g.wrapBrick)("eo-icon"),$=e=>{let{index:t,moveRow:i,className:a,style:s,...r}=e;const n=p().useRef(null),[{isOver:o,dropClassName:l},h]=(0,M.H)({accept:L,collect:e=>{const{index:i}=e.getItem()||{};return i===t?{}:{isOver:e.isOver(),dropClassName:i<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{i(e.index,t)}}),[,d]=(0,z.i)({type:L,item:{type:L,index:t},collect:e=>({isDragging:e.isDragging()})});return h(d(n)),p().createElement("tr",(0,b.A)({ref:n,className:W()(a,{[l]:o}),style:{cursor:"move",...s}},r))};function q(e){const t="zh"===K.i18n.language.split("-")[0]?U.A:T.A;if(e.error)throw e.error;const{configProps:i={pagination:!0,sortBy:!1},columns:a,rowKey:s="key",expandIconAsCell:r,expandIconColumnIndex:n,childrenColumnName:o,scroll:l,onDelete:h,ellipsisInfo:d,showHeader:u}=e,g=(0,c.useMemo)((()=>{var t;return null===(t=e.dataSource)||void 0===t?void 0:t.map(((e,t)=>(0,A.isNil)(e[s])?{...e,[s]:t}:e))}),[e.dataSource,s]),[m,w]=(0,c.useState)(g),k=(0,c.useRef)(new Map),v=(0,c.useRef)(new Map),C=(0,c.useRef)(new Map),E=(0,c.useRef)(new Map);(0,c.useEffect)((()=>{E.current.clear(),w(g)}),[g]);const S=null!=i&&i.rowSelection?-1:0,M=(0,c.useMemo)((()=>{if(a){v.current.clear(),C.current.clear();const e=a.map(((e,t)=>{const{useBrick:i,valueSuffix:a,cellStatus:l,cellStyle:h={},headerBrick:c,colSpanKey:u,rowSpanKey:g,filterDropdownBrick:m,...w}=e;if(null!=c&&c.useBrick){const t=null==c?void 0:c.useBrick;let i=v.current.get(e);i||(i={title:w.title},v.current.set(e,i)),w.title=((e,t)=>function(){return p().createElement(N.ReactUseMultipleBricks,{useBrick:e,data:t})})(t,i)}if(null!=m&&m.useBrick&&(w.filterDropdown=p().createElement(N.ReactUseMultipleBricks,{useBrick:m.useBrick})),i){let e;i&&(e=C.current.get(i),e||(e=new Map,C.current.set(i,e))),w.render=((e,t)=>function(i,a,s){if(e){let r=null==t?void 0:t.get(a);return r||(r={cellData:i,rowData:a,columnIndex:s},null==t||t.set(a,r)),p().createElement(N.ReactUseMultipleBricks,{useBrick:e,data:r})}})(i,e),w.shouldCellUpdate=(e,t)=>!(0,A.isEqual)(e,t)}else a&&(w.render=e=>e+a);if(!r&&t===Number(n)+S){const e=w.render;w.render=function(t,i,a){return p().createElement(p().Fragment,null,!i[o]&&k.current.get(s?i[s]:i),e?e(t,i,a):t)}}if(l||u||g||h){const e=w.render;w.render=(t,i,a)=>({children:e?e(t,i,a):t,props:{colSpan:i[u],rowSpan:i[g],style:{...l?x(l,i,t):{},...h}}})}return"string"==typeof w.dataIndex&&(w.dataIndex=(0,A.toPath)(w.dataIndex)),"top"===w.verticalAlign&&(w.className?w.className+=" alignTop":w.className="alignTop"),"bottom"===w.verticalAlign&&(w.className?w.className+=" alignBottom":w.className="alignBottom"),d&&(w.className?w.className+=" ellipsisInfoCell":w.className="ellipsisInfoCell"),w}));return e}}),[a,o,r,n,S,s,h,d]),z={body:{row:$}},B=(t,i)=>{const a=m[t],s=D()(m,{$splice:[[t,1],[i,0,a]]});w(s),e.onDrag&&e.onDrag(s)},P=(0,A.pickBy)({expandIconColumnIndex:n,expandIconAsCell:r,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,A.isNil)(e)));let L=p().createElement(y.A,(0,b.A)({className:W()("brickTable",{expandIconCellHidden:!r,customDropTable:e.tableDraggable,tableThTransparent:e.thTransparent,zebraPatternTable:(null==m?void 0:m.length)>=2&&e.zebraPattern,xSmallSizeTable:e.xSmallSizeTable}),dataSource:m},e.tableDraggable?{components:z,onRow:(e,t)=>({index:t,moveRow:B})}:{},{columns:M,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,i)=>{var a;let s=E.current.get(t);return s||(s={rowData:t,rowIndex:i},E.current.set(t,s)),p().createElement(N.ReactUseMultipleBricks,{useBrick:null===(a=e.expandedRowBrick)||void 0===a?void 0:a.useBrick,data:s})}}:{},P,{onExpand:(t,i)=>{e.onExpand&&e.onExpand(t,i)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:s,childrenColumnName:o,rowClassName:(t,i)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&i%2?"brickTableOddRow":"",expandIcon:t=>{var i;const{record:a,expandable:n,expanded:o,onExpand:l}=t;let h,d=(null===(i=e.expandIcon)||void 0===i?void 0:i.collapsedIcon)||F;var c;n?(o||(d=(null===(c=e.expandIcon)||void 0===c?void 0:c.expandedIcon)||O),h=p().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon",onClick:e=>{l(a,e)}},p().createElement(H,d))):h=p().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon"},p().createElement("span",{style:{visibility:"hidden"}},p().createElement(H,d)));return h?(r||k.current.set(s?a[s]:a,h),h):p().createElement(p().Fragment,null)},scroll:l,showHeader:u},i));e.tableDraggable&&(L=p().createElement(R.Q,{backend:_.t2,context:window},L));const q=(0,c.useMemo)((()=>(0,I.VC)()),[]);return p().createElement(f.Ay,{locale:t},p().createElement(I.N7,{container:e.shadowRoot,cache:q},L))}var j;let Q,V,Z,G,Y,J,X,ee,te,ie,ae,se,re,ne,oe,le,he,de,ce,pe,ue,ge,me,Ae,we,be,ye,fe,ke,xe,ve,Ce,Ee,Se,We,Me,ze,Re,_e,Be,De,Ne,Ie,Pe,Ke,Te,Ue,Le,Fe,Oe,He,$e,qe,je,Qe,Ve,Ze,Ge,Ye,Je,Xe,et,tt,it,at,st,rt,nt,ot,lt,ht,dt,ct,pt,ut,gt,mt,At,wt,bt,yt,ft,kt,xt,vt,Ct,Et,St,Wt,Mt,zt,Rt,_t,Bt,Dt,Nt,It,Pt,Kt,Tt,Ut,Lt,Ft,Ot,Ht,$t,qt,jt,Qt,Vt,Zt,Gt,Yt,Jt,Xt,ei,ti,ii,ai,si,ri,ni,oi,li;i(76477);const{defineElement:hi,property:di,event:ci,method:pi}=(0,u.createDecorators)();let ui;var gi=new WeakMap,mi=new WeakSet,Ai=new WeakMap,wi=new WeakMap,bi=new WeakMap,yi=new WeakMap,fi=new WeakMap,ki=new WeakMap,xi=new WeakMap,vi=new WeakMap,Ci=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Wi=new WeakMap,Mi=new WeakMap,zi=new WeakMap,Ri=new WeakMap,_i=new WeakMap,Bi=new WeakMap,Di=new WeakMap,Ni=new WeakMap,Ii=new WeakMap,Pi=new WeakMap,Ki=new WeakMap,Ti=new WeakMap,Ui=new WeakMap,Li=new WeakMap,Fi=new WeakMap,Oi=new WeakMap,Hi=new WeakMap,$i=new WeakMap,qi=new WeakMap,ji=new WeakMap,Qi=new WeakMap,Vi=new WeakMap,Zi=new WeakMap,Gi=new WeakMap,Yi=new WeakMap,Ji=new WeakMap,Xi=new WeakMap,ea=new WeakMap,ta=new WeakMap,ia=new WeakMap,aa=new WeakMap,sa=new WeakMap,ra=new WeakMap,na=new WeakMap,oa=new WeakMap,la=new WeakMap,ha=new WeakMap,da=new WeakMap,ca=new WeakMap,pa=new WeakMap,ua=new WeakMap,ga=new WeakMap;class ma extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,mi),(0,r.A)(this,gi,(Q(this),Z(this))),(0,r.A)(this,Ai,(J(this),X(this))),(0,r.A)(this,wi,(ie(this),ae(this))),(0,r.A)(this,bi,(ne(this),oe(this))),(0,r.A)(this,yi,(de(this),ce(this))),(0,r.A)(this,fi,(ge(this),me(this))),(0,r.A)(this,ki,(be(this),ye(this))),(0,r.A)(this,xi,(xe(this),ve(this))),(0,r.A)(this,vi,(Se(this),We(this,!0))),(0,r.A)(this,Ci,(Me(this),ze(this))),(0,r.A)(this,Ei,(Re(this),_e(this))),(0,r.A)(this,Si,(Be(this),De(this))),(0,r.A)(this,Wi,(Ne(this),Ie(this,!1))),(0,r.A)(this,Mi,(Pe(this),Ke(this))),(0,r.A)(this,zi,(Te(this),Ue(this))),(0,r.A)(this,Ri,(Le(this),Fe(this))),(0,r.A)(this,_i,(Oe(this),He(this))),(0,r.A)(this,Bi,($e(this),qe(this))),(0,r.A)(this,Di,(je(this),Qe(this))),(0,r.A)(this,Ni,(Ve(this),Ze(this))),(0,r.A)(this,Ii,(Ge(this),Ye(this,!0))),(0,r.A)(this,Pi,(Je(this),Xe(this))),(0,r.A)(this,Ki,(et(this),tt(this))),(0,r.A)(this,Ti,(it(this),at(this))),(0,r.A)(this,Ui,(st(this),rt(this,!1))),(0,r.A)(this,Li,(nt(this),ot(this))),(0,r.A)(this,Fi,(lt(this),ht(this))),(0,r.A)(this,Oi,(dt(this),ct(this))),(0,r.A)(this,Hi,(pt(this),ut(this))),(0,r.A)(this,$i,(gt(this),mt(this))),(0,a.A)(this,"_disabledChildrenKeys",(At(this),[])),(0,r.A)(this,qi,wt(this,"children")),(0,r.A)(this,ji,(bt(this),yt(this,!0))),(0,r.A)(this,Qi,(ft(this),kt(this))),(0,r.A)(this,Vi,(xt(this),vt(this,""))),(0,r.A)(this,Zi,(Ct(this),Et(this))),(0,r.A)(this,Gi,(St(this),Wt(this))),(0,r.A)(this,Yi,(Mt(this),zt(this))),(0,r.A)(this,Ji,(Rt(this),_t(this))),(0,r.A)(this,Xi,(Bt(this),Dt(this,{x:!0}))),(0,r.A)(this,ea,(Nt(this),It(this,"q"))),(0,r.A)(this,ta,(Pt(this),Kt(this))),(0,r.A)(this,ia,(Tt(this),Ut(this))),(0,r.A)(this,aa,(Lt(this),Ft(this))),(0,r.A)(this,sa,(Ot(this),Ht(this,[]))),(0,r.A)(this,ra,($t(this),qt(this))),(0,r.A)(this,na,(jt(this),Qt(this))),(0,r.A)(this,oa,(Vt(this),Zt(this,!0))),(0,r.A)(this,la,(Gt(this),Yt(this))),(0,r.A)(this,ha,(Jt(this),Xt(this))),(0,r.A)(this,da,(ei(this),ti(this))),(0,r.A)(this,ca,(ii(this),ai(this,!0))),(0,r.A)(this,pa,(si(this),ri(this,!0))),(0,a.A)(this,"_originalDataSource",(ni(this),[])),(0,a.A)(this,"_dataSource",[]),(0,a.A)(this,"_pureSource",void 0),(0,a.A)(this,"_columns",void 0),(0,a.A)(this,"_finalConfigProps",{}),(0,a.A)(this,"_error",void 0),(0,r.A)(this,ua,void 0),(0,a.A)(this,"_selectUpdateEventName",""),(0,a.A)(this,"_selectUpdateEventDetailKeys",[]),(0,a.A)(this,"_selectUpdateEventDetailField",""),(0,a.A)(this,"_selectUpdateEventDetailExtra",{}),(0,a.A)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,r.A)(this,ga,oi(this,[])),(0,a.A)(this,"_selected",(li(this),!1)),(0,a.A)(this,"_selectedRow",void 0),(0,a.A)(this,"_selectedRows",[]),(0,a.A)(this,"_allChildren",[]),(0,a.A)(this,"_isInSelect",!1),(0,a.A)(this,"_getRowKey",(()=>{var e,t,i,a;return null!==(e=null!==(t=null!==(i=this.rowKey)&&void 0!==i?i:this._fields.rowKey)&&void 0!==t?t:null===(a=this.configProps)||void 0===a?void 0:a.rowKey)&&void 0!==e?e:"key"})),(0,a.A)(this,"_findParentByChildKeyValue",((e,t,i,a)=>{let s;return i.some((i=>{if(i[t]===e)s=a;else{const a=i[this.childrenColumnName];a&&(s=this._findParentByChildKeyValue(e,t,a,i))}return!!s})),s})),(0,a.A)(this,"_handleRowSelectChange",((e,t)=>{const i=this._getRowKey(),a=(0,A.keyBy)(t,i);if(this._selected){const t=[...e];if(this._allChildren.forEach((e=>{const s=e[i];t.push(s),a[s]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){const s=new Set(e),r=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource);if(r&&r[this.childrenColumnName].every((e=>s.has(e[i])))){const e=r[i];t.push(e),a[e]=r}}this.selectedRowKeys=(0,A.uniq)(t)}else{let t;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(t=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource)),this.selectedRowKeys=(0,A.pullAll)(e,(0,A.map)(this._allChildren.concat(t),i))}this._selectedRow=void 0;const s=(0,A.keyBy)(this.extraRows,i);this._selectedRows=this.selectedRowKeys.map((e=>a[e]||s[e]));let r=null;const n=(0,A.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,A.map)(this._selectedRows,(e=>(0,A.get)(e,this._selectUpdateEventDetailField)));r=(0,A.isEmpty)(this._selectUpdateEventDetailKeys)||(0,A.isEmpty)(n)?n:(0,A.set)({},this._selectUpdateEventDetailKeys,n),(0,A.isEmpty)(r)||(r=(0,A.merge)(r,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:r})):(0,o.A)(mi,this,se).emit(r),(0,o.A)(mi,this,le).emit(e)})),(0,a.A)(this,"_getSelectedRowsWithChildren",(e=>{const t=[];return!(0,A.isEmpty)(e[this.childrenColumnName])&&(0,A.isArray)(e[this.childrenColumnName])&&(0,A.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,a.A)(this,"_handleOnSelect",((e,t)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;const i=this._getRowKey(),a=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=a,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,A.uniq)([...this._disabledChildrenKeys,...(0,A.map)(a,i)]):(0,A.pullAll)(this._disabledChildrenKeys,[...(0,A.map)(a,i)])),this.storeCheckedByUrl&&i&&this._updateUrlChecked([e[i]],t)})),(0,a.A)(this,"_handleSelectAll",((e,t,i)=>{this._selected=e,this._isInSelect=!0;const a=this._getRowKey();if(this.selectAllChildren){const t=(0,A.map)(this._dataSource,a),s=i.filter((e=>t.includes(e[a]))),r=(0,A.flatten)((0,A.map)(s,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e[a]))))),n=(0,A.flatten)((0,A.map)(s,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=n,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,A.uniq)(this._disabledChildrenKeys.concat(r)):this._disabledChildrenKeys.filter((e=>!r.includes(e))))}this.storeCheckedByUrl&&a&&this._updateUrlChecked((0,A.map)(i,a),e)})),(0,a.A)(this,"_getCheckedFromUrl",(()=>{const e=(0,w.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,A.isEmpty)(t)?[]:t.split(",")})),(0,a.A)(this,"_updateUrlChecked",((e,t)=>{const i=(0,w.getHistory)();let a=this._getCheckedFromUrl();t?a=[...a,...e]:(0,A.pull)(a,...e),this.shouldUpdateUrlParams&&i.pushQuery({checked:a.join(",")},{notify:!1})})),(0,a.A)(this,"_handleOnChange",((e,t,i)=>{const a=(0,w.getHistory)(),s=new URLSearchParams(a.location.search);if(!(0,A.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,s.set("page","1"),s.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,o.A)(mi,this,ee).emit({[this._fields.pageSize]:e.pageSize,[this._fields.page]:1}),this.page=1,this.pageSize=e.pageSize;else if(e.current!==this.page){const t=e.current||1;s.set("page",t.toString()),(0,o.A)(mi,this,G).emit({[this._fields.page]:t}),this.page=t}this.filters=t,(0,A.isEmpty)(t)||(0,A.forEach)(t,((e,t)=>{(0,A.isNil)(e)||0===e.length?s.delete(t):s.set(t,e)})),i.order&&(0,A.isNil)(i.order)&&(i.columnKey!==this.sort||this._fields[i.order]!==this.order)&&(i.columnKey&&i.order?(s.set("sort",i.columnKey),s.set("order",this._fields[i.order].toString()),this.sort=i.columnKey,this.order=this._fields[i.order]):(s.delete("sort"),s.delete("order"),this.sort=null,this.order=null),(0,o.A)(mi,this,pe).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&a.push(`?${s}`,{notify:!1}),this.frontendSearch(e,t,i)):this.shouldUpdateUrlParams&&a.push(`?${s}`,{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,a.A)(this,"renderSelectInfo",(()=>p().createElement("span",{style:{marginLeft:20}},p().createElement("span",null,"已选择",this.selectedRowKeys.length,"项"),p().createElement("a",{role:"button",style:{marginLeft:"10px"},onClick:()=>{this.selectedRowKeys=[],this._selectedRows=[],this._disabledChildrenKeys=[],this._allChildren=[],this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:[]})):(0,o.A)(mi,this,se).emit([])}},"清空")))),(0,a.A)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){const i=this._getRowKey(),a=[(0,A.get)(t,i)],s=(0,A.get)(t,this.childrenColumnName);if(!(0,A.isEmpty)(s)){const e=(0,A.map)((0,A.filter)(s,(e=>(0,A.isEmpty)((0,A.get)(e,this.childrenColumnName)))),i);a.push(...e)}this.expandedRowKeys=e?[...this.expandedRowKeys,...a]:(0,A.pull)(this.expandedRowKeys,...a),this._render()}(0,o.A)(mi,this,Ae).emit({expanded:e,record:t})})),(0,a.A)(this,"_handleOnExpandedRowsChange",(e=>{(0,o.A)(mi,this,fe).emit({expandedRows:e})})),(0,a.A)(this,"_handleOnDrag",(e=>{(0,o.A)(mi,this,Ce).emit({data:e})})),(0,a.A)(this,"_getAllRows",(()=>{const e=[];return C(this._dataSource,this.childrenColumnName,e),e})),(0,a.A)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;const e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,A.map)(this._selectedRows,e),this.selectedRowKeys})),(0,a.A)(this,"_initConfigProps",(()=>{var e,t;const i={current:this.page,pageSize:this.pageSize,total:(0,h.A)(ua,this),showSizeChanger:!0,pageSizeOptions:["10","20","50"],showTotal:e=>{var t;return p().createElement(p().Fragment,null,p().createElement("span",{className:"totalText"},"共 ",p().createElement("strong",{className:"total"},e)," 条"),((null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)||this.rowSelection)&&this.showSelectInfo&&0!==this.selectedRowKeys.length&&this.renderSelectInfo())}},a=this._getRowKey();let s;this.rowDisabledConfig&&(s=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);const r={...a?{selectedRowKeys:this._isInSelect?this.selectedRowKeys:this.storeCheckedByUrl?this._getCheckedFromUrl():this.defaultSelectAll?this._handleDefaultSelectAll():this.selectedRowKeys,onSelect:this._handleOnSelect,onSelectAll:this._handleSelectAll,onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}:{onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0},getCheckboxProps:e=>!(0,A.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,A.get)(e,a))?{disabled:!0}:s?{disabled:s.some((t=>{const{field:i,value:a,operator:s}=t,r=k[s];return null==r?void 0:r(a,(0,A.get)(e,i))}))}:{}};this.configProps?(this._finalConfigProps=(0,A.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination={...i,...this.pagination,...this.configProps.pagination},void 0!==this.configProps.pagination&&null!==this.configProps.pagination||!1!==this.pagination||(this._finalConfigProps.pagination=!1)),this.configProps.size||(this._finalConfigProps.size="x-small"==this.size?"":this.size)):(this._finalConfigProps={},this._finalConfigProps.pagination=!1!==this.pagination&&i,this._finalConfigProps.size="x-small"==this.size?"":this.size);const n=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;var o,l;n?this._finalConfigProps.rowSelection=!0===n?{...r,type:null!==(o=this.type)&&void 0!==o?o:"checkbox"}:{...r,type:null!==(l=this.type)&&void 0!==l?l:"checkbox",...n,...r.selectedRowKeys?{selectedRowKeys:r.selectedRowKeys}:{}}:this.type?this._finalConfigProps.rowSelection={...r,type:this.type}:this._finalConfigProps.rowSelection=!1,this._columns&&(this._columns=this._columns.map((e=>{if((0,A.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,A.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,i;const a=(0,w.getHistory)(),s=null!==(t=new URLSearchParams(a.location.search).get(e.key))&&void 0!==t?t:null===(i=(0,A.get)(this.filters,e.key))||void 0===i?void 0:i.join(",");(0,A.isNil)(s)||(0,A.isEmpty)(s)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=s.split(",").map((t=>{var i,a;return null!==(i=null===(a=(0,A.find)(e.filters,(e=>String(e.value)===t)))||void 0===a?void 0:a.value)&&void 0!==i?i:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,i,a,s,r,n;(this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,A.cloneDeep)(this._fields.dataSource?(0,A.get)(e,this._fields.dataSource):e),this._pureSource=(0,A.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren)&&E((null===(n=this.configProps)||void 0===n||null===(n=n.expandable)||void 0===n?void 0:n.childrenColumnName)||"children",this._dataSource);(0,l.A)(ua,this,(0,A.get)(e,this._fields.total)),this.page=null!==(t=null!==(i=(0,A.get)(e,"page"))&&void 0!==i?i:this.page)&&void 0!==t?t:1,this.pageSize=null!==(a=null!==(s=null!==(r=(0,A.get)(e,"page_size"))&&void 0!==r?r:(0,A.get)(e,"pageSize"))&&void 0!==s?s:this.pageSize)&&void 0!==a?a:10,this._render()}get showCard(){return(0,h.A)(vi,this)}set showCard(e){(0,l.A)(vi,this,e)}get rowSelection(){return(0,h.A)(Ci,this)}set rowSelection(e){(0,l.A)(Ci,this,e)}get rowKey(){return(0,h.A)(Ei,this)}set rowKey(e){(0,l.A)(Ei,this,e)}get hiddenColumns(){return(0,h.A)(Si,this)}set hiddenColumns(e){(0,l.A)(Si,this,e)}get showSelectInfo(){return(0,h.A)(Wi,this)}set showSelectInfo(e){(0,l.A)(Wi,this,e)}get filters(){return(0,h.A)(Mi,this)}set filters(e){(0,l.A)(Mi,this,e)}get configProps(){return(0,h.A)(zi,this)}set configProps(e){(0,l.A)(zi,this,e)}get sort(){return(0,h.A)(Ri,this)}set sort(e){(0,l.A)(Ri,this,e)}get order(){return(0,h.A)(_i,this)}set order(e){(0,l.A)(_i,this,e)}get rowDisabledConfig(){return(0,h.A)(Bi,this)}set rowDisabledConfig(e){(0,l.A)(Bi,this,e)}get expandedRowBrick(){return(0,h.A)(Di,this)}set expandedRowBrick(e){(0,l.A)(Di,this,e)}get expandIcon(){return(0,h.A)(Ni,this)}set expandIcon(e){(0,l.A)(Ni,this,e)}get expandIconAsCell(){return(0,h.A)(Ii,this)}set expandIconAsCell(e){(0,l.A)(Ii,this,e)}get expandIconColumnIndex(){return(0,h.A)(Pi,this)}set expandIconColumnIndex(e){(0,l.A)(Pi,this,e)}get expandRowByClick(){return(0,h.A)(Ki,this)}set expandRowByClick(e){(0,l.A)(Ki,this,e)}get optimizedColumns(){return(0,h.A)(Ti,this)}set optimizedColumns(e){(0,l.A)(Ti,this,e)}get stripEmptyExpandableChildren(){return(0,h.A)(Ui,this)}set stripEmptyExpandableChildren(e){(0,l.A)(Ui,this,e)}get defaultExpandAllRows(){return(0,h.A)(Li,this)}set defaultExpandAllRows(e){(0,l.A)(Li,this,e)}get ellipsisInfo(){return(0,h.A)(Fi,this)}set ellipsisInfo(e){(0,l.A)(Fi,this,e)}get expandedRowKeys(){return(0,h.A)(Oi,this)}set expandedRowKeys(e){(0,l.A)(Oi,this,e)}get selectAllChildren(){return(0,h.A)(Hi,this)}set selectAllChildren(e){(0,l.A)(Hi,this,e)}get defaultSelectAll(){return(0,h.A)($i,this)}set defaultSelectAll(e){(0,l.A)($i,this,e)}get childrenColumnName(){return(0,h.A)(qi,this)}set childrenColumnName(e){(0,l.A)(qi,this,e)}get sortable(){return(0,h.A)(ji,this)}set sortable(e){(0,l.A)(ji,this,e)}set fields(e){this._fields={...this._fields,...e},this._render()}get frontSearch(){return(0,h.A)(Qi,this)}set frontSearch(e){(0,l.A)(Qi,this,e)}get frontSearchQuery(){return(0,h.A)(Vi,this)}set frontSearchQuery(e){(0,l.A)(Vi,this,e)}get exactSearch(){return(0,h.A)(Zi,this)}set exactSearch(e){(0,l.A)(Zi,this,e)}get frontSearchFilterKeys(){return(0,h.A)(Gi,this)}set frontSearchFilterKeys(e){(0,l.A)(Gi,this,e)}get page(){return(0,h.A)(Yi,this)}set page(e){(0,l.A)(Yi,this,e)}get pageSize(){return(0,h.A)(Ji,this)}set pageSize(e){(0,l.A)(Ji,this,e)}get scrollConfigs(){return(0,h.A)(Xi,this)}set scrollConfigs(e){(0,l.A)(Xi,this,e)}get qField(){return(0,h.A)(ea,this)}set qField(e){(0,l.A)(ea,this,e)}get tableDraggable(){return(0,h.A)(ta,this)}set tableDraggable(e){(0,l.A)(ta,this,e)}get zebraPattern(){return(0,h.A)(ia,this)}set zebraPattern(e){(0,l.A)(ia,this,e)}get storeCheckedByUrl(){return(0,h.A)(aa,this)}set storeCheckedByUrl(e){(0,l.A)(aa,this,e)}get extraRows(){return(0,h.A)(sa,this)}set extraRows(e){(0,l.A)(sa,this,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,h.A)(ra,this)}set autoSelectParentWhenAllChildrenSelected(e){(0,l.A)(ra,this,e)}get thTransparent(){return(0,h.A)(na,this)}set thTransparent(e){(0,l.A)(na,this,e)}get showHeader(){return(0,h.A)(oa,this)}set showHeader(e){(0,l.A)(oa,this,e)}get pagination(){return(0,h.A)(la,this)}set pagination(e){(0,l.A)(la,this,e)}get size(){return(0,h.A)(ha,this)}set size(e){(0,l.A)(ha,this,e)}get type(){return(0,h.A)(da,this)}set type(e){(0,l.A)(da,this,e)}get shouldUpdateUrlParams(){return(0,h.A)(ca,this)}set shouldUpdateUrlParams(e){(0,l.A)(ca,this,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,h.A)(pa,this)}set shouldRenderWhenUrlParamsUpdate(e){(0,l.A)(pa,this,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,h.A)(ga,this)}set selectedRowKeys(e){(0,l.A)(ga,this,e)}filterSourceData(e){const t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){const e=(0,w.getHistory)(),i=new URLSearchParams(e.location.search);i.set("page","1"),t?(i.set(this.qField,t),e.push(`?${i}`,{notify:!this.frontSearch})):(i.delete(this.qField),e.push(`?${i}`,{notify:!this.frontSearch})),this.page=1}this.frontSearchQuery=t}handleFrontendDataChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.shouldUpdateUrlParams){const e=(0,w.getHistory)(),t=new URLSearchParams(e.location.search);this.frontSearchQuery=t.get(this.qField)}let i=[];i=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);const a=(0,A.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return i=this.handleFrontendSorter(i,{columnKey:this.sort,order:a}),i=this.handleFrontendFilters(i),(0,l.A)(ua,this,i.length),i}handleFrontendFilterSource(e,t,i,a){if(!t)return e;const s=[];return a||(a=this.frontSearchFilterKeys||i.map((e=>e.dataIndex))),e.forEach((e=>{var r;const n=e[this.childrenColumnName];if(n){const r=this.handleFrontendFilterSource(n,t,i,a);if(r.length>0)return void s.push({...e,[this.childrenColumnName]:r})}(null===(r=a)||void 0===r?void 0:r.some((i=>{const a=(0,A.get)(e,i);return!(0,A.isNil)(a)&&(this.exactSearch?a===t:JSON.stringify(a).toLowerCase().includes(t))})))&&s.push(e)})),s}handleFrontendSorter(e,t){const i=e||[],{columnKey:a,order:s}=t;if(!a||!s)return e;let r=1;return"descend"===s?r=-1:"ascend"===s&&(r=1),void 0!==r&&(i.sort(((e,t)=>{const i=(0,A.get)(e,a),s=(0,A.get)(t,a);if((0,A.isNil)(i)){if(!(0,A.isNil)(s))return 1}else if((0,A.isNil)(s))return-1;return i==s?0:i>s?r:-r})),i.forEach((e=>{const i=e[this.childrenColumnName];i&&this.handleFrontendSorter(i,t)}))),i}handleFrontendFilters(e){let t=e||[];const i=(0,A.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,A.isNil)(e.value)&&0!==e.value.length));return t=t.filter((e=>(0,A.every)(i,(t=>{var i,a;return null===(i=null===(a=t.value)||void 0===a?void 0:a.includes((0,A.get)(e,t.key)))||void 0===i||i})))),t}frontendSearch(e,t,i){this.sort=(0,A.isNil)(i.order)?null:i.columnKey,this.order=(0,A.isNil)(i.order)?null:this._fields[i.order]}expandAll(){const e=[],t=this._getRowKey();this._dataSource&&v(this._dataSource,t,this.childrenColumnName,e),this.expandedRowKeys=e}getModifyColumns(){let e=this._columns;return this._columns&&this.hiddenColumns&&(e=this._columns.filter((e=>{var t,i;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(i=e.dataIndex)&&void 0!==i?i:e.key))}))),!1===this.sortable&&(e=(0,A.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),p().createElement(q,{shadowRoot:this.shadowRoot,dataSource:this._dataSource||[],columns:this.getModifyColumns(),configProps:this._finalConfigProps,error:this._error,onChange:this._handleOnChange,showCard:this.showCard,showHeader:this.showHeader,expandedRowBrick:this.expandedRowBrick,expandIconAsCell:this.expandIconAsCell,expandIconColumnIndex:this.expandIconColumnIndex,expandRowByClick:this.expandRowByClick,defaultExpandAllRows:this.defaultExpandAllRows,onExpand:this._handleOnExpand,onExpandedRowsChange:this._handleOnExpandedRowsChange,expandedRowKeys:this.expandedRowKeys,rowKey:this._getRowKey(),childrenColumnName:this.childrenColumnName,tableDraggable:this.tableDraggable||this.draggable,onDrag:this._handleOnDrag,zebraPattern:this.zebraPattern,expandIcon:this.expandIcon,scroll:this.scrollConfigs,optimizedColumns:this.optimizedColumns,ellipsisInfo:this.ellipsisInfo,thTransparent:this.thTransparent,xSmallSizeTable:"x-small"==this.size})}_test_only_getOriginalDataSource(){return this._originalDataSource}updateData(e){this._dataSource=e.detail,this._error=null,this._render()}updateError(e){this._error=e.detail,this._render()}set selectUpdateEventName(e){this._selectUpdateEventName=e}set selectUpdateEventDetailKeys(e){this._selectUpdateEventDetailKeys=e}set selectUpdateEventDetailField(e){this._selectUpdateEventDetailField=e}set selectUpdateEventDetailExtra(e){this._selectUpdateEventDetailExtra=e}}j=ma,({e:[Z,G,Y,J,X,ee,te,ie,ae,se,re,ne,oe,le,he,de,ce,pe,ue,ge,me,Ae,we,be,ye,fe,ke,xe,ve,Ce,Ee,Se,We,Me,ze,Re,_e,Be,De,Ne,Ie,Pe,Ke,Te,Ue,Le,Fe,Oe,He,$e,qe,je,Qe,Ve,Ze,Ge,Ye,Je,Xe,et,tt,it,at,st,rt,nt,ot,lt,ht,dt,ct,pt,ut,gt,mt,At,wt,bt,yt,ft,kt,xt,vt,Ct,Et,St,Wt,Mt,zt,Rt,_t,Bt,Dt,Nt,It,Pt,Kt,Tt,Ut,Lt,Ft,Ot,Ht,$t,qt,jt,Qt,Vt,Zt,Gt,Yt,Jt,Xt,ei,ti,ii,ai,si,ri,ni,oi,li,Q],c:[ui,V]}=(0,d.A)(j,[hi("eo-table",{styleTexts:[m.A],alias:["advanced.general-table"]})],[[ci({type:"page.update"}),1,"pageUpdate",e=>(0,h.A)(gi,e),(e,t)=>(0,l.A)(gi,e,t)],[ci({type:"filter.update"}),1,"filterUpdate",e=>(0,h.A)(Ai,e),(e,t)=>(0,l.A)(Ai,e,t)],[ci({type:"select.update"}),1,"selectUpdate",e=>(0,h.A)(wi,e),(e,t)=>(0,l.A)(wi,e,t)],[ci({type:"select.row.keys.update"}),1,"selectRowKeysUpdate",e=>(0,h.A)(bi,e),(e,t)=>(0,l.A)(bi,e,t)],[ci({type:"sort.update",cancelable:!0}),1,"sortUpdate",e=>(0,h.A)(yi,e),(e,t)=>(0,l.A)(yi,e,t)],[ci({type:"row.expand"}),1,"rowExpand",e=>(0,h.A)(fi,e),(e,t)=>(0,l.A)(fi,e,t)],[ci({type:"expand.rows.change"}),1,"expandRowsChange",e=>(0,h.A)(ki,e),(e,t)=>(0,l.A)(ki,e,t)],[ci({type:"row.drag"}),1,"rowDrag",e=>(0,h.A)(xi,e),(e,t)=>(0,l.A)(xi,e,t)],[di({type:Boolean}),1,"showCard"],[di({attribute:!1}),1,"rowSelection"],[di(),1,"rowKey"],[di({attribute:!1}),1,"hiddenColumns"],[di({type:Boolean}),1,"showSelectInfo"],[di({attribute:!1}),1,"filters"],[di({attribute:!1}),1,"configProps"],[di(),1,"sort"],[di({attribute:!1}),1,"order"],[di({attribute:!1}),1,"rowDisabledConfig"],[di({attribute:!1}),1,"expandedRowBrick"],[di({attribute:!1}),1,"expandIcon"],[di({attribute:!1}),1,"expandIconAsCell"],[di({type:Number}),1,"expandIconColumnIndex"],[di({type:Boolean}),1,"expandRowByClick"],[di({attribute:!1}),1,"optimizedColumns"],[di({attribute:!1}),1,"stripEmptyExpandableChildren"],[di({type:Boolean}),1,"defaultExpandAllRows"],[di({type:Boolean}),1,"ellipsisInfo"],[di({attribute:!1}),1,"expandedRowKeys"],[di({type:Boolean}),1,"selectAllChildren"],[di({type:Boolean}),1,"defaultSelectAll"],[di({attribute:!1}),1,"childrenColumnName"],[di({attribute:!1}),1,"sortable"],[di({type:Boolean}),1,"frontSearch"],[di(),1,"frontSearchQuery"],[di({type:Boolean}),1,"exactSearch"],[di({attribute:!1}),1,"frontSearchFilterKeys"],[di({type:Number}),1,"page"],[di({type:Number}),1,"pageSize"],[di({attribute:!1}),1,"scrollConfigs"],[di(),1,"qField"],[di({type:Boolean}),1,"tableDraggable"],[di({type:Boolean}),1,"zebraPattern"],[di({type:Boolean}),1,"storeCheckedByUrl"],[di({attribute:!1}),1,"extraRows"],[di({type:Boolean}),1,"autoSelectParentWhenAllChildrenSelected"],[di({type:Boolean}),1,"thTransparent"],[di({type:Boolean}),1,"showHeader"],[di({attribute:!1}),1,"pagination"],[di(),1,"size"],[di({attribute:!1}),1,"type"],[di({type:Boolean}),1,"shouldUpdateUrlParams"],[di({type:Boolean}),1,"shouldRenderWhenUrlParamsUpdate"],[di({attribute:!1}),1,"selectedRowKeys"],[pi(),2,"filterSourceData"],[pi(),2,"expandAll"]],0,(e=>ua.has((0,n.A)(e))),g.ReactNextElement)),V();var Aa,wa=i(16768),ba=i(97039),ya=i(99492);let fa,ka,xa,va,Ca,Ea,Sa,Wa,Ma;const{method:za,property:Ra}=(0,u.createDecorators)();var _a=new WeakMap,Ba=new WeakSet,Da=new WeakMap,Na=new WeakMap,Ia=new WeakMap,Pa=new WeakMap,Ka=new WeakMap,Ta=new WeakMap;class Ua extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Ba),(0,r.A)(this,_a,(fa(this),!1)),(0,r.A)(this,Da,"normal"),(0,r.A)(this,Na,!1),(0,r.A)(this,Ia,ka(this)),(0,r.A)(this,Pa,(xa(this),va(this))),(0,r.A)(this,Ka,(Ca(this),Ea(this))),(0,r.A)(this,Ta,(Sa(this),Wa(this))),Ma(this)}get isFormItemElement(){return!0}set validateState(e){(0,ya.A)(Ba,Ha,this,e),this._render()}get validateState(){return(0,o.A)(Ba,this,Oa)}set notRender(e){this.hidden=e,(0,ya.A)(Ba,Fa,this,e),this._render()}get notRender(){return(0,o.A)(Ba,this,La)}get $bindFormItem(){return(0,o.A)(Ba,this,$a)}set $bindFormItem(e){(0,ya.A)(Ba,qa,this,e),this._render()}get helpBrick(){return(0,h.A)(Ia,this)}set helpBrick(e){(0,l.A)(Ia,this,e)}get labelBrick(){return(0,h.A)(Pa,this)}set labelBrick(e){(0,l.A)(Pa,this,e)}get labelCol(){return(0,h.A)(Ka,this)}set labelCol(e){(0,l.A)(Ka,this,e)}get wrapperCol(){return(0,h.A)(Ta,this)}set wrapperCol(e){(0,l.A)(Ta,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function La(e){return(0,h.A)(_a,e)}function Fa(e,t){(0,l.A)(_a,e,t)}function Oa(e){return(0,h.A)(Da,e)}function Ha(e,t){(0,l.A)(Da,e,t)}function $a(e){return(0,h.A)(Na,e)}function qa(e,t){(0,l.A)(Na,e,t)}Aa=Ua,[ka,xa,va,Ca,Ea,Sa,Wa,Ma,fa]=(0,d.A)(Aa,[],[[Ra({attribute:!1}),1,"helpBrick"],[Ra({attribute:!1}),1,"labelBrick"],[Ra({attribute:!1}),1,"labelCol"],[Ra({attribute:!1}),1,"wrapperCol"],[za(),2,"setNotRender"],[za(),2,"getFormElement"]],0,void 0,g.ReactNextElement).e;var ja,Qa=i(71058);let Va,Za,Ga,Ya,Ja,Xa,es,ts,is,as,ss,rs,ns,os,ls,hs,ds,cs,ps,us,gs,ms,As,ws,bs,ys,fs,ks,xs,vs,Cs,Es,Ss,Ws,Ms,zs,Rs,_s,Bs,Ds,Ns;const{defineElement:Is,property:Ps,event:Ks}=(0,u.createDecorators)(),Ts=(0,g.wrapBrick)("eo-icon"),Us=(0,g.wrapBrick)("eo-form-item");let Ls;var Fs=new WeakMap,Os=new WeakMap,Hs=new WeakMap,$s=new WeakMap,qs=new WeakMap,js=new WeakMap,Qs=new WeakMap,Vs=new WeakMap,Zs=new WeakMap,Gs=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Xs=new WeakMap,er=new WeakMap,tr=new WeakMap,ir=new WeakMap,ar=new WeakMap,sr=new WeakMap,rr=new WeakMap,nr=new WeakSet;function or(e){const{shadowRoot:t,options:i,fieldNames:a,value:s,placeholder:r,disabled:n,multiple:o,allowClear:l,showSearch:h,expandTrigger:d,size:u,limit:g,popupPlacement:m,cascaderStyle:A,suffixIcon:w,maxTagCount:b,onChange:y}=e,k=(0,N.useCurrentTheme)(),x=(0,c.useMemo)((()=>(0,I.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===k?wa.A.darkAlgorithm:wa.A.defaultAlgorithm}},p().createElement(I.N7,{container:t,cache:x,hashPriority:"high"},p().createElement(ba.A,{getPopupContainer:e=>e.parentElement,allowClear:l,disabled:n,multiple:o,expandTrigger:d,fieldNames:a,placeholder:r,size:u,showSearch:h&&{limit:g,filter:(e,t)=>{const i=(null==a?void 0:a.label)||"label",s=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase()));for(let e=0;e<s.length;e++)if(!t.some((t=>t[i].toLowerCase().includes(s[e]))))return!1;return!0}},placement:m,style:A,suffixIcon:w&&p().createElement(Ts,w),maxTagCount:b,value:s,options:i,onChange:(e,t)=>null==y?void 0:y(e,t)})))}ja=class extends Ua{constructor(){super(...arguments),(0,s.A)(this,nr),(0,r.A)(this,Fs,Za(this)),(0,r.A)(this,Os,(Ga(this),Ya(this))),(0,r.A)(this,Hs,(Ja(this),Xa(this))),(0,r.A)(this,$s,(es(this),ts(this))),(0,r.A)(this,qs,(is(this),as(this,{label:"label",value:"value",children:"children"}))),(0,r.A)(this,js,(ss(this),rs(this))),(0,r.A)(this,Qs,(ns(this),os(this))),(0,r.A)(this,Vs,(ls(this),hs(this))),(0,r.A)(this,Zs,(ds(this),cs(this))),(0,r.A)(this,Gs,(ps(this),us(this,!0))),(0,r.A)(this,Ys,(gs(this),ms(this,!0))),(0,r.A)(this,Js,(As(this),ws(this))),(0,r.A)(this,Xs,(bs(this),ys(this,"click"))),(0,r.A)(this,er,(fs(this),ks(this,"bottomLeft"))),(0,r.A)(this,tr,(xs(this),vs(this))),(0,r.A)(this,ir,(Cs(this),Es(this,50))),(0,r.A)(this,ar,(Ss(this),Ws(this))),(0,r.A)(this,sr,(Ms(this),zs(this))),(0,r.A)(this,rr,(Rs(this),_s(this))),(0,a.A)(this,"handleOnChange",(Ns(this),(e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,o.A)(nr,this,Bs).emit({value:e,selectedOptions:t})}))}))}get name(){return(0,h.A)(Fs,this)}set name(e){(0,l.A)(Fs,this,e)}get label(){return(0,h.A)(Os,this)}set label(e){(0,l.A)(Os,this,e)}get required(){return(0,h.A)(Hs,this)}set required(e){(0,l.A)(Hs,this,e)}get options(){return(0,h.A)($s,this)}set options(e){(0,l.A)($s,this,e)}get fieldNames(){return(0,h.A)(qs,this)}set fieldNames(e){(0,l.A)(qs,this,e)}get value(){return(0,h.A)(js,this)}set value(e){(0,l.A)(js,this,e)}get placeholder(){return(0,h.A)(Qs,this)}set placeholder(e){(0,l.A)(Qs,this,e)}get multiple(){return(0,h.A)(Vs,this)}set multiple(e){(0,l.A)(Vs,this,e)}get disabled(){return(0,h.A)(Zs,this)}set disabled(e){(0,l.A)(Zs,this,e)}get allowClear(){return(0,h.A)(Gs,this)}set allowClear(e){(0,l.A)(Gs,this,e)}get showSearch(){return(0,h.A)(Ys,this)}set showSearch(e){(0,l.A)(Ys,this,e)}get suffixIcon(){return(0,h.A)(Js,this)}set suffixIcon(e){(0,l.A)(Js,this,e)}get expandTrigger(){return(0,h.A)(Xs,this)}set expandTrigger(e){(0,l.A)(Xs,this,e)}get popupPlacement(){return(0,h.A)(er,this)}set popupPlacement(e){(0,l.A)(er,this,e)}get size(){return(0,h.A)(tr,this)}set size(e){(0,l.A)(tr,this,e)}get limit(){return(0,h.A)(ir,this)}set limit(e){(0,l.A)(ir,this,e)}get maxTagCount(){return(0,h.A)(ar,this)}set maxTagCount(e){(0,l.A)(ar,this,e)}get cascaderStyle(){return(0,h.A)(sr,this)}set cascaderStyle(e){(0,l.A)(sr,this,e)}render(){return p().createElement(Us,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(or,{shadowRoot:this.shadowRoot,options:this.options,fieldNames:this.fieldNames,value:this.value,multiple:this.multiple,placeholder:this.placeholder,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,expandTrigger:this.expandTrigger,suffixIcon:this.suffixIcon,size:this.size,limit:this.limit,popupPlacement:this.popupPlacement,maxTagCount:this.maxTagCount,cascaderStyle:this.cascaderStyle,onChange:this.handleOnChange}))}},({e:[Za,Ga,Ya,Ja,Xa,es,ts,is,as,ss,rs,ns,os,ls,hs,ds,cs,ps,us,gs,ms,As,ws,bs,ys,fs,ks,xs,vs,Cs,Es,Ss,Ws,Ms,zs,Rs,_s,Bs,Ds,Ns],c:[Ls,Va]}=(0,d.A)(ja,[Is("eo-cascader",{alias:["advanced.general-cascader"],styleTexts:[Qa.A]})],[[Ps(),1,"name"],[Ps(),1,"label"],[Ps({type:Boolean}),1,"required"],[Ps({attribute:!1}),1,"options"],[Ps({attribute:!1}),1,"fieldNames"],[Ps({attribute:!1}),1,"value"],[Ps(),1,"placeholder"],[Ps({type:Boolean}),1,"multiple"],[Ps({type:Boolean}),1,"disabled"],[Ps({type:Boolean}),1,"allowClear"],[Ps({type:Boolean}),1,"showSearch"],[Ps({attribute:!1}),1,"suffixIcon"],[Ps(),1,"expandTrigger"],[Ps(),1,"popupPlacement"],[Ps(),1,"size"],[Ps({type:Number}),1,"limit"],[Ps({attribute:!1}),1,"maxTagCount"],[Ps({attribute:!1}),1,"cascaderStyle"],[Ks({type:"cascader.change"}),1,"changeEvent",e=>(0,h.A)(rr,e),(e,t)=>(0,l.A)(rr,e,t)]],0,(e=>nr.has((0,n.A)(e))),Ua)),Va();var lr,hr=i(81634),dr=i(49385),cr=(i(34612),i(3679));let pr,ur,gr,mr,Ar,wr,br,yr,fr,kr,xr,vr,Cr,Er,Sr,Wr,Mr,zr,Rr,_r,Br,Dr,Nr,Ir,Pr,Kr,Tr,Ur,Lr,Fr,Or,Hr,$r,qr,jr,Qr,Vr,Zr,Gr,Yr,Jr,Xr,en,tn,an,sn,rn,nn,on,ln,hn,dn,cn,pn,un,gn,mn,An,wn,bn,yn,fn,kn,xn,vn,Cn,En,Sn,Wn,Mn,zn,Rn,_n,Bn,Dn,Nn;const{defineElement:In,property:Pn,method:Kn,event:Tn}=(0,u.createDecorators)();let Un;var Ln=new WeakMap,Fn=new WeakMap,On=new WeakMap,Hn=new WeakMap,$n=new WeakMap,qn=new WeakMap,jn=new WeakMap,Qn=new WeakMap,Vn=new WeakMap,Zn=new WeakMap,Gn=new WeakMap,Yn=new WeakMap,Jn=new WeakMap,Xn=new WeakMap,eo=new WeakMap,to=new WeakMap,io=new WeakMap,ao=new WeakMap,so=new WeakMap,ro=new WeakMap,no=new WeakMap,oo=new WeakMap,lo=new WeakMap,ho=new WeakMap,co=new WeakMap,po=new WeakSet,uo=new WeakMap,go=new WeakMap,mo=new WeakMap,Ao=new WeakMap,wo=new WeakMap,bo=new WeakMap,yo=new WeakMap,fo=new WeakMap,ko=new WeakMap,xo=new WeakMap,vo=new WeakMap,Co=new WeakMap,Eo=new WeakMap;class So extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,po),(0,r.A)(this,Ln,(pr(this),(0,c.createRef)())),(0,r.A)(this,Fn,gr(this,"key")),(0,r.A)(this,On,(mr(this),Ar(this))),(0,r.A)(this,Hn,(wr(this),br(this))),(0,r.A)(this,$n,(yr(this),fr(this))),(0,r.A)(this,qn,(kr(this),xr(this))),(0,r.A)(this,jn,(vr(this),Cr(this))),(0,r.A)(this,Qn,(Er(this),Sr(this))),(0,r.A)(this,Vn,(Wr(this),Mr(this))),(0,r.A)(this,Zn,(zr(this),Rr(this))),(0,r.A)(this,Gn,(_r(this),Br(this))),(0,r.A)(this,Yn,(Dr(this),Nr(this))),(0,r.A)(this,Jn,(Ir(this),Pr(this))),(0,r.A)(this,Xn,(Kr(this),Tr(this))),(0,r.A)(this,eo,(Ur(this),Lr(this))),(0,r.A)(this,to,(Fr(this),Or(this,"children"))),(0,r.A)(this,io,(Hr(this),$r(this))),(0,r.A)(this,ao,(qr(this),jr(this))),(0,r.A)(this,so,(Qr(this),Vr(this,"large"))),(0,r.A)(this,ro,(Zr(this),Gr(this,!0))),(0,r.A)(this,no,(Yr(this),Jr(this))),(0,r.A)(this,oo,(Xr(this),en(this,{x:!0}))),(0,r.A)(this,lo,(tn(this),an(this))),(0,r.A)(this,ho,(sn(this),rn(this))),(0,r.A)(this,co,(nn(this),on(this))),(0,r.A)(this,uo,(dn(this),e=>{(0,o.A)(po,this,ln).emit(e)})),(0,r.A)(this,go,cn(this)),(0,r.A)(this,mo,(gn(this),e=>{(0,o.A)(po,this,pn).emit(e)})),(0,r.A)(this,Ao,mn(this)),(0,r.A)(this,wo,(bn(this),e=>{(0,o.A)(po,this,An).emit(e)})),(0,r.A)(this,bo,yn(this)),(0,r.A)(this,yo,(xn(this),e=>{(0,o.A)(po,this,fn).emit(e)})),(0,r.A)(this,fo,vn(this)),(0,r.A)(this,ko,(Sn(this),e=>{(0,o.A)(po,this,Cn).emit(e)})),(0,r.A)(this,xo,Wn(this)),(0,r.A)(this,vo,(Rn(this),e=>{(0,o.A)(po,this,Mn).emit(e)})),(0,r.A)(this,Co,_n(this)),(0,r.A)(this,Eo,(Nn(this),e=>{(0,o.A)(po,this,Bn).emit(e)}))}get rowKey(){return(0,h.A)(Fn,this)}set rowKey(e){(0,l.A)(Fn,this,e)}get columns(){return(0,h.A)(On,this)}set columns(e){(0,l.A)(On,this,e)}get cell(){return(0,h.A)(Hn,this)}set cell(e){(0,l.A)(Hn,this,e)}get dataSource(){return(0,h.A)($n,this)}set dataSource(e){(0,l.A)($n,this,e)}get frontSearch(){return(0,h.A)(qn,this)}set frontSearch(e){(0,l.A)(qn,this,e)}get pagination(){return(0,h.A)(jn,this)}set pagination(e){(0,l.A)(jn,this,e)}get loading(){return(0,h.A)(Qn,this)}set loading(e){(0,l.A)(Qn,this,e)}get multiSort(){return(0,h.A)(Vn,this)}set multiSort(e){(0,l.A)(Vn,this,e)}get sort(){return(0,h.A)(Zn,this)}set sort(e){(0,l.A)(Zn,this,e)}get rowSelection(){return(0,h.A)(Gn,this)}set rowSelection(e){(0,l.A)(Gn,this,e)}get selectedRowKeys(){return(0,h.A)(Yn,this)}set selectedRowKeys(e){(0,l.A)(Yn,this,e)}get hiddenColumns(){return(0,h.A)(Jn,this)}set hiddenColumns(e){(0,l.A)(Jn,this,e)}get expandable(){return(0,h.A)(Xn,this)}set expandable(e){(0,l.A)(Xn,this,e)}get expandedRowKeys(){return(0,h.A)(eo,this)}set expandedRowKeys(e){(0,l.A)(eo,this,e)}get childrenColumnName(){return(0,h.A)(to,this)}set childrenColumnName(e){(0,l.A)(to,this,e)}get rowDraggable(){return(0,h.A)(io,this)}set rowDraggable(e){(0,l.A)(io,this,e)}get searchFields(){return(0,h.A)(ao,this)}set searchFields(e){(0,l.A)(ao,this,e)}get size(){return(0,h.A)(so,this)}set size(e){(0,l.A)(so,this,e)}get showHeader(){return(0,h.A)(ro,this)}set showHeader(e){(0,l.A)(ro,this,e)}get bordered(){return(0,h.A)(no,this)}set bordered(e){(0,l.A)(no,this,e)}get scrollConfig(){return(0,h.A)(oo,this)}set scrollConfig(e){(0,l.A)(oo,this,e)}get optimizedColumns(){return(0,h.A)(lo,this)}set optimizedColumns(e){(0,l.A)(lo,this,e)}get injectChartV2Styles(){return(0,h.A)(ho,this)}set injectChartV2Styles(e){(0,l.A)(ho,this,e)}search(e){var t;null===(t=(0,h.A)(Ln,this).current)||void 0===t||t.search(e)}render(){return p().createElement(p().Fragment,null,this.injectChartV2Styles&&p().createElement("style",null,cr.A),p().createElement(dr.F,{ref:(0,h.A)(Ln,this),shadowRoot:this.shadowRoot,rowKey:this.rowKey,columns:this.columns,cell:this.cell,dataSource:this.dataSource,frontSearch:this.frontSearch,pagination:this.pagination,loading:this.loading,multiSort:this.multiSort,sort:this.sort,rowSelection:this.rowSelection,selectedRowKeys:this.selectedRowKeys,hiddenColumns:this.hiddenColumns,expandable:this.expandable,expandedRowKeys:this.expandedRowKeys,childrenColumnName:this.childrenColumnName,rowDraggable:this.rowDraggable,searchFields:this.searchFields,size:this.size,showHeader:this.showHeader,bordered:this.bordered,scrollConfig:this.scrollConfig,optimizedColumns:this.optimizedColumns,onPageChange:(0,h.A)(uo,this),onPageSizeChange:(0,h.A)(mo,this),onSort:(0,h.A)(wo,this),onRowSelect:(0,h.A)(yo,this),onRowExpand:(0,h.A)(ko,this),onExpandedRowsChange:(0,h.A)(vo,this),onRowDrag:(0,h.A)(Eo,this)}))}}lr=So,({e:[gr,mr,Ar,wr,br,yr,fr,kr,xr,vr,Cr,Er,Sr,Wr,Mr,zr,Rr,_r,Br,Dr,Nr,Ir,Pr,Kr,Tr,Ur,Lr,Fr,Or,Hr,$r,qr,jr,Qr,Vr,Zr,Gr,Yr,Jr,Xr,en,tn,an,sn,rn,nn,on,ln,hn,dn,cn,pn,un,gn,mn,An,wn,bn,yn,fn,kn,xn,vn,Cn,En,Sn,Wn,Mn,zn,Rn,_n,Bn,Dn,Nn,pr],c:[Un,ur]}=(0,d.A)(lr,[In("eo-next-table",{styleTexts:[hr.A]})],[[Pn(),1,"rowKey"],[Pn({attribute:!1}),1,"columns"],[Pn({attribute:!1}),1,"cell"],[Pn({attribute:!1}),1,"dataSource"],[Pn({type:Boolean}),1,"frontSearch"],[Pn({attribute:!1}),1,"pagination"],[Pn({type:Boolean}),1,"loading"],[Pn({type:Boolean}),1,"multiSort"],[Pn({attribute:!1}),1,"sort"],[Pn({attribute:!1}),1,"rowSelection"],[Pn({attribute:!1}),1,"selectedRowKeys"],[Pn({attribute:!1}),1,"hiddenColumns"],[Pn({attribute:!1}),1,"expandable"],[Pn({attribute:!1}),1,"expandedRowKeys"],[Pn(),1,"childrenColumnName"],[Pn({type:Boolean}),1,"rowDraggable"],[Pn({attribute:!1}),1,"searchFields"],[Pn(),1,"size"],[Pn({type:Boolean}),1,"showHeader"],[Pn({type:Boolean}),1,"bordered"],[Pn({attribute:!1}),1,"scrollConfig"],[Pn({attribute:!1}),1,"optimizedColumns"],[Pn({type:Boolean}),1,"injectChartV2Styles"],[Kn(),2,"search"],[Tn({type:"page.change"}),1,"pageChangeEvent",e=>(0,h.A)(co,e),(e,t)=>(0,l.A)(co,e,t)],[Tn({type:"page.size.change"}),1,"pageSizeChangeEvent",e=>(0,h.A)(go,e),(e,t)=>(0,l.A)(go,e,t)],[Tn({type:"sort.change"}),1,"sortChangeEvent",e=>(0,h.A)(Ao,e),(e,t)=>(0,l.A)(Ao,e,t)],[Tn({type:"row.select"}),1,"rowSelectEvent",e=>(0,h.A)(bo,e),(e,t)=>(0,l.A)(bo,e,t)],[Tn({type:"row.expand"}),1,"rowExpandEvent",e=>(0,h.A)(fo,e),(e,t)=>(0,l.A)(fo,e,t)],[Tn({type:"expanded.rows.change"}),1,"expandedRowsChangeEvent",e=>(0,h.A)(xo,e),(e,t)=>(0,l.A)(xo,e,t)],[Tn({type:"row.drag"}),1,"rowDragEvent",e=>(0,h.A)(Co,e),(e,t)=>(0,l.A)(Co,e,t)]],0,(e=>Eo.has((0,n.A)(e))),g.ReactNextElement)),ur();var Wo,Mo=i(49523),zo=i(69113),Ro=i(45833),_o=i(91116);let Bo,Do,No,Io,Po,Ko,To,Uo,Lo,Fo,Oo,Ho,$o,qo,jo,Qo,Vo,Zo,Go,Yo,Jo,Xo,el,tl,il,al;const{defineElement:sl,property:rl,event:nl,method:ol}=(0,u.createDecorators)(),ll=(0,g.wrapBrick)("eo-button"),hl=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),dl=(0,g.wrapBrick)("eo-icon"),cl=(0,g.wrapBrick)("eo-checkbox",{onChange:"change"}),pl=(0,Mo.unwrapProvider)("basic.show-dialog"),ul=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:gl}=zo.auth.getAuth(),ml=(0,c.forwardRef)((function(e,t){let{cardTitle:i="卡片列表",layouts:a,componentList:s=[],isEdit:r,onChange:n,onSave:o,onCancel:l,onActionClick:h}=e;const d=(0,c.useMemo)((()=>(0,Ro.WidthProvider)(Ro.Responsive)),[]),u=(0,c.useRef)(null),g=(0,c.useRef)(null),m=(0,c.useRef)(null!=a?a:[]),[A,w]=(0,c.useState)(m.current),[b,y]=(0,c.useState)(3),[f,k]=(0,c.useState)(),x=(0,c.useCallback)((e=>{m.current=e,w(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:x})));const v=(0,c.useCallback)((e=>{x(e),null==n||n(e)}),[n,x]),C=(0,c.useCallback)((e=>{if(!r)return;let t=!0;for(let a=0;a<e.length;a++){const{x:s,w:r,y:n,h:o,i:l,minH:h}=e[a];if(r>1&&s>0){t=!1;break}if(1===r&&s<2){const t=e.find((e=>e.i!==l&&1===e.w&&e.y===n&&s<2));var i;t&&(e[a].minH=null!==(i=e[a].minH)&&void 0!==i?i:o,e[a].h=Math.max(t.h,o))}else e[a].h=null!=h?h:o,e[a].minH=void 0}v(t?e:m.current.map((e=>{const{w:t,i}=e,a=`${ul(i)}:${Math.random()}`;let s=e.x;return t>1&&s>0&&(s=0),{...e,x:s,i:a}})))}),[v,r]),E=(0,c.useCallback)((e=>{const t=e.detail.map((e=>e.value)),i=A.map((e=>ul(e.i))),a=e.detail.filter((e=>!i.includes(e.key))).map((e=>({...e.position,x:e.w>1?0:2*A.length%b,y:1/0})));v(A.filter((e=>t.includes(ul(e.i)))).concat(a))}),[A,v,b]),S=()=>{v([])},W=(0,c.useCallback)((()=>{null==o||o(A.map((e=>({...e,i:ul(e.i)}))))}),[A,o]),M=(0,c.useCallback)(((e,t)=>{var i;e.stopPropagation(),v(null!==(i=A.filter((e=>ul(e.i)!==t.key)))&&void 0!==i?i:[])}),[v,A]),z=e=>{e.preventDefault()},R=(0,c.useMemo)((()=>A.map((e=>{var t;const i=s.find((t=>t.key===ul(e.i)));return i?p().createElement("div",{key:e.i,"data-grid":{...null!==(t=i.position)&&void 0!==t?t:{},...e},style:i.style,className:"drag-box"},r&&p().createElement("div",{className:"edit-mask",onMouseDown:z}),p().createElement(N.ReactUseBrick,{useBrick:i.useBrick}),r&&p().createElement(dl,{icon:"delete",lib:"antd",className:"delete-icon",onClick:e=>M(e,i)})):null})).filter(Boolean)),[s,M,A,r]),_=(0,c.useMemo)((()=>s.map((e=>({...e,label:e.title,value:e.key})))),[s]),B=(0,c.useMemo)((()=>A.map((e=>ul(e.i)))),[A]),D=(0,c.useCallback)((()=>{if(g&&r){var e,t;const{top:i}=null!==(e=null===(t=g.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==i&&k({height:document.body.clientHeight-i,overflow:"scroll"})}}),[r]);return(0,c.useEffect)((()=>{if(r)return D(),x(a||[]),window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D)}}),[r,D,a,x]),p().createElement("div",{className:"grid-layout-wrapper",ref:u},r&&p().createElement("div",{className:"component-wrapper"},p().createElement("div",{className:"component-title"},i),p().createElement("div",{className:"component-list"},p().createElement(cl,{options:_,value:B,onChange:E}),p().createElement("slot",{name:"toolbar"}))),p().createElement("div",{className:"layout-wrapper",ref:g,style:f},r&&p().createElement("div",{className:"actions-wrapper"},p().createElement(ll,{type:"primary",onClick:W},"保存"),p().createElement(ll,{onClick:()=>{null==l||l()}},"取消"),p().createElement(hl,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...gl?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?pl({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(S):null==h||h(e,(null!=A?A:[]).map((e=>({...e,i:ul(e.i)}))))})(e.detail)},"data-testid":"edit-layout-actions"})),p().createElement(d,{className:"layout",draggableCancel:".delete-icon,.edit-actions,.ignore-item",breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:r?3:1},isResizable:!1,isDraggable:r,onDrag:(e,t,i)=>{var a;const s=null===(a=u.current)||void 0===a?void 0:a.querySelector(".react-grid-placeholder");s&&(i.w>1&&i.x>0?!s.classList.contains("forbidden")&&s.classList.add("forbidden"):s.classList.contains("forbidden")&&s.classList.remove("forbidden"))},onLayoutChange:C,onBreakpointChange:(e,t)=>{y(t)}},R)))}));let Al;var wl=new WeakMap,bl=new WeakMap,yl=new WeakMap,fl=new WeakMap,kl=new WeakMap,xl=new WeakMap,vl=new WeakSet,Cl=new WeakMap,El=new WeakMap,Sl=new WeakMap,Wl=new WeakMap,Ml=new WeakMap,zl=new WeakMap,Rl=new WeakMap;class _l extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,vl),(0,r.A)(this,wl,(Bo(this),(0,c.createRef)())),(0,r.A)(this,bl,No(this)),(0,r.A)(this,yl,(Io(this),Po(this))),(0,r.A)(this,fl,(Ko(this),To(this))),(0,r.A)(this,kl,(Uo(this),Lo(this))),(0,r.A)(this,xl,(Fo(this),Oo(this))),(0,r.A)(this,Cl,(qo(this),e=>{(0,o.A)(vl,this,Ho).emit(e)})),(0,r.A)(this,El,jo(this)),(0,r.A)(this,Sl,(Zo(this),e=>{(0,o.A)(vl,this,Qo).emit(e)})),(0,r.A)(this,Wl,Go(this)),(0,r.A)(this,Ml,(Xo(this),()=>{(0,o.A)(vl,this,Yo).emit()})),(0,r.A)(this,zl,el(this)),(0,r.A)(this,Rl,(al(this),(e,t)=>{(0,o.A)(vl,this,tl).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(bl,this)}set cardTitle(e){(0,l.A)(bl,this,e)}get isEdit(){return(0,h.A)(yl,this)}set isEdit(e){(0,l.A)(yl,this,e)}get layouts(){return(0,h.A)(fl,this)}set layouts(e){(0,l.A)(fl,this,e)}get componentList(){return(0,h.A)(kl,this)}set componentList(e){(0,l.A)(kl,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(wl,this).current)||void 0===t||t.setLayouts(e)}render(){return p().createElement(ml,{cardTitle:this.cardTitle,layouts:this.layouts,componentList:this.componentList,isEdit:this.isEdit,onChange:(0,h.A)(Cl,this),onSave:(0,h.A)(Sl,this),onCancel:(0,h.A)(Ml,this),onActionClick:(0,h.A)(Rl,this),ref:(0,h.A)(wl,this)})}}Wo=_l,({e:[No,Io,Po,Ko,To,Uo,Lo,Fo,Oo,Ho,$o,qo,jo,Qo,Vo,Zo,Go,Yo,Jo,Xo,el,tl,il,al,Bo],c:[Al,Do]}=(0,d.A)(Wo,[sl("eo-workbench-layout",{styleTexts:[_o.A]})],[[rl(),1,"cardTitle"],[rl({type:Boolean}),1,"isEdit"],[rl({attribute:!1}),1,"layouts"],[rl({attribute:!1}),1,"componentList"],[nl({type:"change"}),1,"changeEvent",e=>(0,h.A)(xl,e),(e,t)=>(0,l.A)(xl,e,t)],[nl({type:"save"}),1,"saveEvent",e=>(0,h.A)(El,e),(e,t)=>(0,l.A)(El,e,t)],[nl({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(Wl,e),(e,t)=>(0,l.A)(Wl,e,t)],[nl({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)(zl,e),(e,t)=>(0,l.A)(zl,e,t)],[ol(),2,"setLayouts"]],0,(e=>Rl.has((0,n.A)(e))),g.ReactNextElement)),Do();var Bl=i(72591),Dl=i.n(Bl),Nl=i(1740),Il=i.n(Nl),Pl=i(88128),Kl=i.n(Pl),Tl=i(30855),Ul=i.n(Tl),Ll=i(93051),Fl=i.n(Ll),Ol=i(73656),Hl=i.n(Ol),$l=i(61590),ql={};ql.styleTagTransform=Hl(),ql.setAttributes=Ul(),ql.insert=Kl().bind(null,"head"),ql.domAPI=Il(),ql.insertStyleElement=Fl(),Dl()($l.A,ql);const jl=$l.A&&$l.A.locals?$l.A.locals:void 0,Ql=(0,g.wrapBrick)("eo-icon");function Vl(e){const{component:t,isEdit:i,onDrop:a,onDelete:s,layout:r}=e,[,n]=(0,M.H)({accept:"component",drop:e=>null==a?void 0:a(e)});return p().createElement("div",{className:jl.component,style:t.style,ref:n},i&&p().createElement("div",{className:jl.editMask,onMouseDown:e=>{e.preventDefault()},"data-testid":"droppable-component-layout-item-edit-mask"}),p().createElement(N.ReactUseBrick,{useBrick:(0,A.cloneDeep)(t.useBrick),data:r}),i&&p().createElement(Ql,{icon:"delete",lib:"antd",className:jl.deleteIcon,onClick:e=>{e.preventDefault(),null==s||s()},"data-testid":"droppable-component-layout-item-delete"}))}const Zl=(0,g.wrapBrick)("eo-sidebar-menu-item");function Gl(e){const{component:t,onClick:i}=e,{title:a}=t,[{isDragging:s},r]=(0,z.i)({type:"component",item:t,collect:e=>({isDragging:e.isDragging()})});return p().createElement(Zl,{icon:{lib:"antd",icon:"menu"},title:a,style:{opacity:s?.4:1},onClick:i,"data-testid":"draggable-component-menu-item",ref:r},a)}var Yl=i(89739),Jl={};Jl.styleTagTransform=Hl(),Jl.setAttributes=Ul(),Jl.insert=Kl().bind(null,"head"),Jl.domAPI=Il(),Jl.insertStyleElement=Fl(),Dl()(Yl.A,Jl);const Xl=Yl.A&&Yl.A.locals?Yl.A.locals:void 0;var eh,th=i(85689),ih={};let ah,sh,rh,nh,oh,lh,hh,dh,ch,ph,uh,gh,mh,Ah,wh,bh,yh,fh,kh,xh,vh,Ch,Eh,Sh,Wh,Mh,zh,Rh,_h,Bh,Dh,Nh,Ih,Ph;ih.styleTagTransform=Hl(),ih.setAttributes=Ul(),ih.insert=Kl().bind(null,"head"),ih.domAPI=Il(),ih.insertStyleElement=Fl(),Dl()(th.A,ih),th.A&&th.A.locals&&th.A.locals;const{defineElement:Kh,property:Th,event:Uh,method:Lh}=(0,u.createDecorators)(),Fh=(0,g.wrapBrick)("eo-sidebar-menu"),Oh=(0,g.wrapBrick)("eo-button"),Hh=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),$h=(0,Mo.unwrapProvider)("basic.show-dialog"),qh={cardWidth:2,showMoreIcon:!1,cardBorderStyle:"solid",cardTitleFontSize:16,cardBorderWidth:1,cardBorderRadius:6,cardTitleColor:"#262626",cardBorderColor:"#e8e8e8",cardBgType:"none"},jh=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:Qh}=zo.auth.getAuth(),Vh=(0,c.forwardRef)((function(e,t){let{cardTitle:i="卡片列表",layouts:a,toolbarBricks:s,componentList:r=[],isEdit:n,showSettingButton:o,onChange:l,onSave:h,onCancel:d,onActionClick:u,onSetting:g}=e;const m=(0,c.useMemo)((()=>(0,Ro.WidthProvider)(Ro.Responsive)),[]),w=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useRef)(null!=a?a:[]),[f,k]=(0,c.useState)(y.current),[x,v]=(0,c.useState)(3),[C,E]=(0,c.useState)(),S=(0,c.useCallback)((e=>{y.current=e,k(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:S})));const W=(0,c.useCallback)((e=>{S(e),null==l||l(e)}),[l,S]),z=(0,c.useCallback)((e=>{if(!n)return;const t=(0,A.keyBy)(f,"i");let i=!0;for(let t=0;t<e.length;t++){const{x:s,w:r,y:n,h:o,i:l,minH:h}=e[t];if(r>1&&s>0){i=!1;break}if(1===r&&s<2){const i=e.find((e=>e.i!==l&&1===e.w&&e.y===n&&s<2));var a;i&&(e[t].minH=null!==(a=e[t].minH)&&void 0!==a?a:o,e[t].h=Math.max(i.h,o))}else e[t].h=null!=h?h:o,e[t].minH=void 0}W(i?e.map((e=>({...null==t?void 0:t[e.i],...e,type:jh(e.i)}))):y.current.map((e=>{const{w:t,type:i,i:a}=e,s=null!=a?a:`${jh(i)}:${Math.random()}`;let r=e.x;return t>1&&r>0&&(r=0),{...e,x:r,i:s}})))}),[W,n,f]),R=e=>{W(f.concat({...qh,...e.position,type:e.key,x:e.position.w>1?0:2*f.length%x,y:1/0}))},[,_]=(0,M.H)({accept:"component",canDrop:(e,t)=>t.isOver({shallow:!0}),drop:e=>{null==R||R(e)}}),B=()=>{W([])},I=(0,c.useCallback)((()=>{null==h||h(f)}),[f,h]),P=(0,c.useCallback)(((e,t,i)=>{W(D()(f,{$splice:[[i,0,{...qh,...e.position,type:e.key,...(0,A.pick)(t,["x","y"])}]]}))}),[W,f]),K=(0,c.useCallback)((e=>{var t;W(null!==(t=f.filter((t=>jh(t.i)!==e.key)))&&void 0!==t?t:[])}),[W,f]),T=(0,c.useMemo)((()=>f.map(((e,t)=>{var i;const a=r.find((t=>t.key===jh(e.type)));return a?p().createElement("div",{className:"drag-box","data-grid":{...null!==(i=a.position)&&void 0!==i?i:{},...e,w:e.cardWidth||e.w},key:e.i},p().createElement(Vl,{component:a,isEdit:n,layout:e,onDrop:i=>P(i,e,t),onDelete:()=>K(a)})):null})).filter(Boolean)),[f,r,n,P,K]),U=(0,c.useCallback)((()=>{if(b&&n){var e,t;const{top:i}=null!==(e=null===(t=b.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==i&&E({height:document.body.clientHeight-i})}}),[n]);return(0,c.useEffect)((()=>{if(n)return U(),S(a||[]),window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}}),[n,U,a,S]),p().createElement("div",{className:Xl.gridLayoutWrapper,ref:w},n&&p().createElement("div",{className:Xl.componentWrapper,style:C},p().createElement("div",{className:Xl.componentTitle},i),p().createElement("div",{className:Xl.componentList},p().createElement(Fh,null,null==r?void 0:r.map(((e,t)=>p().createElement(Gl,{component:e,onClick:()=>{R(e)},key:e.key||t})))),(null==s?void 0:s.useBrick)&&p().createElement(N.ReactUseMultipleBricks,{useBrick:s.useBrick}))),p().createElement("div",{className:Xl.layoutWrapper,ref:b,style:C},n&&p().createElement("div",{className:Xl.actionsWrapper},p().createElement(Oh,{type:"primary",onClick:I},"保存"),p().createElement(Oh,{onClick:()=>{null==d||d()}},"取消"),o&&p().createElement(Oh,{"data-testid":"setting-button",onClick:()=>{null==g||g()}},"设置"),p().createElement(Hh,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...Qh?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?$h({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(B):null==u||u(e,(null!=f?f:[]).map((e=>({...e,i:jh(e.i)}))))})(e.detail)},"data-testid":"edit-layout-actions"})),p().createElement(m,{className:Xl.layout,draggableCancel:`.${jl.deleteIcon},.edit-actions,.ignore-item`,breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:n?3:1},isResizable:!1,isDraggable:n,onDrag:(e,t,i)=>{var a;const s=null===(a=w.current)||void 0===a?void 0:a.querySelector(".react-grid-placeholder");s&&(i.w>1&&i.x>0?!s.classList.contains("forbidden")&&s.classList.add("forbidden"):s.classList.contains("forbidden")&&s.classList.remove("forbidden"))},onLayoutChange:z,onBreakpointChange:(e,t)=>{v(t)},innerRef:_},T)))}));let Zh;var Gh=new WeakMap,Yh=new WeakMap,Jh=new WeakMap,Xh=new WeakMap,ed=new WeakMap,td=new WeakMap,id=new WeakMap,ad=new WeakMap,sd=new WeakSet,rd=new WeakMap,nd=new WeakMap,od=new WeakMap,ld=new WeakMap,hd=new WeakMap,dd=new WeakMap,cd=new WeakMap,pd=new WeakMap,ud=new WeakMap;class gd extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,sd),(0,r.A)(this,Gh,(ah(this),(0,c.createRef)())),(0,r.A)(this,Yh,rh(this)),(0,r.A)(this,Jh,(nh(this),oh(this))),(0,r.A)(this,Xh,(lh(this),hh(this))),(0,r.A)(this,ed,(dh(this),ch(this))),(0,r.A)(this,td,(ph(this),uh(this))),(0,r.A)(this,id,(gh(this),mh(this))),(0,r.A)(this,ad,(Ah(this),wh(this))),(0,r.A)(this,rd,(fh(this),e=>{(0,o.A)(sd,this,bh).emit(e)})),(0,r.A)(this,nd,kh(this)),(0,r.A)(this,od,(Ch(this),e=>{(0,o.A)(sd,this,xh).emit(e)})),(0,r.A)(this,ld,Eh(this)),(0,r.A)(this,hd,(Mh(this),()=>{(0,o.A)(sd,this,Sh).emit()})),(0,r.A)(this,dd,zh(this)),(0,r.A)(this,cd,(Bh(this),()=>{(0,o.A)(sd,this,Rh).emit()})),(0,r.A)(this,pd,Dh(this)),(0,r.A)(this,ud,(Ph(this),(e,t)=>{(0,o.A)(sd,this,Nh).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(Yh,this)}set cardTitle(e){(0,l.A)(Yh,this,e)}get isEdit(){return(0,h.A)(Jh,this)}set isEdit(e){(0,l.A)(Jh,this,e)}get layouts(){return(0,h.A)(Xh,this)}set layouts(e){(0,l.A)(Xh,this,e)}get toolbarBricks(){return(0,h.A)(ed,this)}set toolbarBricks(e){(0,l.A)(ed,this,e)}get componentList(){return(0,h.A)(td,this)}set componentList(e){(0,l.A)(td,this,e)}get showSettingButton(){return(0,h.A)(id,this)}set showSettingButton(e){(0,l.A)(id,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(Gh,this).current)||void 0===t||t.setLayouts(e)}connectedCallback(){this.style.display||(this.style.display="block"),super.connectedCallback()}render(){return p().createElement(R.Q,{backend:_.t2,context:window},p().createElement(Vh,{cardTitle:this.cardTitle,layouts:this.layouts,toolbarBricks:this.toolbarBricks,componentList:this.componentList,showSettingButton:this.showSettingButton,isEdit:this.isEdit,onChange:(0,h.A)(rd,this),onSave:(0,h.A)(od,this),onCancel:(0,h.A)(hd,this),onActionClick:(0,h.A)(ud,this),onSetting:(0,h.A)(cd,this),ref:(0,h.A)(Gh,this)}))}}eh=gd,({e:[rh,nh,oh,lh,hh,dh,ch,ph,uh,gh,mh,Ah,wh,bh,yh,fh,kh,xh,vh,Ch,Eh,Sh,Wh,Mh,zh,Rh,_h,Bh,Dh,Nh,Ih,Ph,ah],c:[Zh,sh]}=(0,d.A)(eh,[Kh("eo-workbench-layout-v2",{shadowOptions:!1})],[[Th(),1,"cardTitle"],[Th({type:Boolean}),1,"isEdit"],[Th({attribute:!1}),1,"layouts"],[Th({attribute:!1}),1,"toolbarBricks"],[Th({attribute:!1}),1,"componentList"],[Th({type:Boolean}),1,"showSettingButton"],[Uh({type:"change"}),1,"changeEvent",e=>(0,h.A)(ad,e),(e,t)=>(0,l.A)(ad,e,t)],[Uh({type:"save"}),1,"saveEvent",e=>(0,h.A)(nd,e),(e,t)=>(0,l.A)(nd,e,t)],[Uh({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(ld,e),(e,t)=>(0,l.A)(ld,e,t)],[Uh({type:"setting"}),1,"settingEvent",e=>(0,h.A)(dd,e),(e,t)=>(0,l.A)(dd,e,t)],[Uh({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)(pd,e),(e,t)=>(0,l.A)(pd,e,t)],[Lh(),2,"setLayouts"]],0,(e=>ud.has((0,n.A)(e))),g.ReactNextElement)),sh();var md=i(13357),Ad=i(28317),wd=i.n(Ad);function bd(e,t){const i=e?document.querySelector(`${e}`):document.body;if(!i)throw new Error(`target not found: ${e}`);return new Promise((function(e,a){wd()(i,{backgroundColor:t||null,useCORS:!0,allowTaint:!0,scale:window.devicePixelRatio<3?window.devicePixelRatio:2}).then((function(t){e(t)})).catch(a)}))}customElements.define("advanced.capture-snapshot",(0,Mo.createProviderClass)((async function(e){const{name:t,fileType:a,bucketName:s,selector:r,backgroundColor:n}=e;switch(a){case"image":{const e=await bd(r,n);if(s){const i=await function(e){return new Promise((function(t,i){e.toBlob((function(e){e?t(e):i()}))}))}(e),a=new File([i],`${t}.png`,{type:i.type}),r=await function(e,t){const i=new FormData;i.append("file",e,e.name);const a=`${(0,w.getBasePath)()}api/gateway/object_store.object_store.PutObject/api/v1/objectStore/bucket/${t}/object`;return md.http.request(a,{method:"PUT",body:i})}(a,s);return function(e,t){return`${(0,w.getBasePath)()}api/gateway/logic.object_store_service/api/v1/objectStore/bucket/${e}/object/${t}`}(s,r.data.objectName)}await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image";return new Promise(((i,a)=>{try{const a=e.toDataURL("image/png"),s=new Image;s.onload=function(){const e=document.createElement("canvas");e.width=s.width,e.height=s.height;const i=e.getContext("2d");null==i||i.drawImage(s,0,0,s.width,s.height);const a=e.toDataURL("image/png"),r=document.createElement("a");r.href=a,r.download=t;const n=new MouseEvent("click");r.dispatchEvent(n)},s.src=a,i("succeed")}catch(e){a("failed")}}))}(e,t)}break;case"pdf":{const{jsPDF:e}=await i.e(1576).then(i.bind(i,31576)),a=await bd(r,n),s=a.toDataURL("image/jpeg",1),o=new e(a.width>a.height?"landscape":"portrait","pt",[a.width,a.height]);o.addImage(s,"JPEG",0,0,a.width,a.height),await o.save(`${t}.pdf`,{returnPromise:!0});break}}})));var yd,fd=i(54299),kd=i(56664),xd=i(39138);let vd,Cd,Ed,Sd,Wd,Md,zd,Rd,_d,Bd,Dd,Nd,Id,Pd,Kd,Td,Ud,Ld,Fd,Od,Hd,$d,qd,jd,Qd,Vd,Zd,Gd,Yd,Jd,Xd,ec,tc,ic,ac,sc,rc,nc,oc;const{defineElement:lc,property:hc,event:dc}=(0,u.createDecorators)();let cc;var pc=new WeakMap,uc=new WeakMap,gc=new WeakMap,mc=new WeakMap,Ac=new WeakMap,wc=new WeakMap,bc=new WeakMap,yc=new WeakMap,fc=new WeakMap,kc=new WeakMap,xc=new WeakMap,vc=new WeakMap,Cc=new WeakSet,Ec=new WeakMap,Sc=new WeakMap,Wc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,Rc=new WeakMap;class _c extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Cc),(0,r.A)(this,pc,Cd(this)),(0,r.A)(this,uc,(Ed(this),Sd(this))),(0,r.A)(this,gc,(Wd(this),Md(this))),(0,r.A)(this,mc,(zd(this),Rd(this))),(0,r.A)(this,Ac,(_d(this),Bd(this))),(0,r.A)(this,wc,(Dd(this),Nd(this))),(0,r.A)(this,bc,(Id(this),Pd(this))),(0,r.A)(this,yc,(Kd(this),Td(this))),(0,r.A)(this,fc,(Ud(this),Ld(this))),(0,r.A)(this,kc,(Fd(this),Od(this))),(0,r.A)(this,xc,(Hd(this),$d(this))),(0,r.A)(this,vc,(qd(this),jd(this))),(0,r.A)(this,Ec,(Zd(this),Gd(this))),(0,r.A)(this,Sc,(Xd(this),(e,t)=>{(0,o.A)(Cc,this,Qd).emit(e),(0,o.A)(Cc,this,Yd).emit({checkedKeys:e,halfCheckedKeys:t.halfCheckedKeys})})),(0,r.A)(this,Wc,ec(this)),(0,r.A)(this,Mc,(ac(this),e=>{(0,o.A)(Cc,this,tc).emit(e)})),(0,r.A)(this,zc,sc(this)),(0,r.A)(this,Rc,(oc(this),e=>{let{dragNode:t,node:i,dropPosition:a}=e;(0,o.A)(Cc,this,rc).emit({dragNode:t,dropNode:i,dropPosition:a})}))}get dataSource(){return(0,h.A)(pc,this)}set dataSource(e){(0,l.A)(pc,this,e)}get checkable(){return(0,h.A)(uc,this)}set checkable(e){(0,l.A)(uc,this,e)}get selectable(){return(0,h.A)(gc,this)}set selectable(e){(0,l.A)(gc,this,e)}get defaultExpandAll(){return(0,h.A)(mc,this)}set defaultExpandAll(e){(0,l.A)(mc,this,e)}get showLine(){return(0,h.A)(Ac,this)}set showLine(e){(0,l.A)(Ac,this,e)}get expandedKeys(){return(0,h.A)(wc,this)}set expandedKeys(e){(0,l.A)(wc,this,e)}get checkedKeys(){return(0,h.A)(bc,this)}set checkedKeys(e){(0,l.A)(bc,this,e)}get nodeDraggable(){return(0,h.A)(yc,this)}set nodeDraggable(e){(0,l.A)(yc,this,e)}get switcherIcon(){return(0,h.A)(fc,this)}set switcherIcon(e){(0,l.A)(fc,this,e)}get allowDrop(){return(0,h.A)(kc,this)}set allowDrop(e){(0,l.A)(kc,this,e)}get titleSuffixBrick(){return(0,h.A)(xc,this)}set titleSuffixBrick(e){(0,l.A)(xc,this,e)}render(){return p().createElement(Bc,{dataSource:this.dataSource,shadowRoot:this.shadowRoot,checkable:this.checkable,selectable:this.selectable,defaultExpandAll:this.defaultExpandAll,showLine:this.showLine,nodeDraggable:this.nodeDraggable,switcherIcon:this.switcherIcon,expandedKeys:this.expandedKeys,checkedKeys:this.checkedKeys,titleSuffixBrick:this.titleSuffixBrick,onCheck:(0,h.A)(Sc,this),onExpand:(0,h.A)(Mc,this),allowDrop:this.allowDrop,onDrop:(0,h.A)(Rc,this)})}}function Bc(e){let{dataSource:t,shadowRoot:i,checkable:a,selectable:s,defaultExpandAll:r,showLine:n,expandedKeys:o,checkedKeys:l,nodeDraggable:h,switcherIcon:d,titleSuffixBrick:u,onCheck:g,onExpand:m,onDrop:A,allowDrop:w}=e;const y=(0,N.useCurrentTheme)(),k=(0,c.useMemo)((()=>(0,I.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===y?wa.A.darkAlgorithm:wa.A.defaultAlgorithm}},p().createElement(I.N7,{container:i,autoClear:!0,cache:k,hashPriority:"high"},p().createElement(fd.A,(0,b.A)({switcherIcon:!1!==d&&("chevron"===d?p().createElement(kd.A,null):void 0)},null!=u&&u.useBrick?{titleRender:e=>p().createElement(p().Fragment,null,e.title,p().createElement("span",{onClick:e=>e.stopPropagation()},p().createElement(N.ReactUseMultipleBricks,{useBrick:u.useBrick,data:e})))}:null,{treeData:t,checkable:a,selectable:s,defaultExpandAll:r,showLine:n,draggable:h},o?{expandedKeys:o}:null,l?{checkedKeys:l}:null,{onCheck:g,onExpand:m,allowDrop:w,onDrop:A}))))}yd=_c,({e:[Cd,Ed,Sd,Wd,Md,zd,Rd,_d,Bd,Dd,Nd,Id,Pd,Kd,Td,Ud,Ld,Fd,Od,Hd,$d,qd,jd,Qd,Vd,Zd,Gd,Yd,Jd,Xd,ec,tc,ic,ac,sc,rc,nc,oc],c:[cc,vd]}=(0,d.A)(yd,[lc("eo-tree",{styleTexts:[xd.A]})],[[hc({attribute:!1}),1,"dataSource"],[hc({type:Boolean}),1,"checkable"],[hc({type:Boolean}),1,"selectable"],[hc({type:Boolean}),1,"defaultExpandAll"],[hc({type:Boolean}),1,"showLine"],[hc({attribute:!1}),1,"expandedKeys"],[hc({attribute:!1}),1,"checkedKeys"],[hc({attribute:!1}),1,"nodeDraggable"],[hc({attribute:!1}),1,"switcherIcon"],[hc({attribute:!1}),1,"allowDrop"],[hc({attribute:!1}),1,"titleSuffixBrick"],[dc({type:"check"}),1,"checkEvent",e=>(0,h.A)(vc,e),(e,t)=>(0,l.A)(vc,e,t)],[dc({type:"check.detail"}),1,"checkDetailEvent",e=>(0,h.A)(Ec,e),(e,t)=>(0,l.A)(Ec,e,t)],[dc({type:"expand"}),1,"expandEvent",e=>(0,h.A)(Wc,e),(e,t)=>(0,l.A)(Wc,e,t)],[dc({type:"node.drop"}),1,"dropEvent",e=>(0,h.A)(zc,e),(e,t)=>(0,l.A)(zc,e,t)]],0,(e=>Rc.has((0,n.A)(e))),g.ReactNextElement)),vd();var Dc,Nc=i(18623),Ic=i(34695);let Pc,Kc,Tc,Uc,Lc,Fc,Oc,Hc,$c,qc,jc,Qc,Vc,Zc,Gc,Yc,Jc,Xc,ep,tp,ip,ap,sp,rp,np,op,lp,hp,dp,cp,pp,up,gp,mp,Ap,wp,bp,yp,fp,kp,xp,vp,Cp,Ep,Sp,Wp,Mp,zp,Rp,_p,Bp,Dp,Np,Ip,Pp,Kp,Tp,Up,Lp;const{defineElement:Fp,property:Op,event:Hp}=(0,u.createDecorators)(),$p=(0,g.wrapBrick)("eo-icon"),qp=(0,g.wrapBrick)("eo-form-item");let jp;var Qp=new WeakMap,Vp=new WeakMap,Zp=new WeakMap,Gp=new WeakMap,Yp=new WeakMap,Jp=new WeakMap,Xp=new WeakMap,eu=new WeakMap,tu=new WeakMap,iu=new WeakMap,au=new WeakMap,su=new WeakMap,ru=new WeakMap,nu=new WeakMap,ou=new WeakMap,lu=new WeakMap,hu=new WeakMap,du=new WeakMap,cu=new WeakMap,pu=new WeakMap,uu=new WeakMap,gu=new WeakMap,mu=new WeakSet,Au=new WeakMap,wu=new WeakMap,bu=new WeakMap,yu=new WeakMap,fu=new WeakMap,ku=new WeakMap;function xu(e){const{shadowRoot:t,checkable:i,loading:a,treeData:s,treeExpandedKeys:r,treeDefaultExpandAll:n,fieldNames:o,value:l,placeholder:h,disabled:d,multiple:u,allowClear:g,popupPlacement:m,dropdownStyle:A,suffixIcon:w,size:b,maxTagCount:y,onChange:k,onSearch:x,onSelect:v,onTreeExpand:C}=e,E=(0,N.useCurrentTheme)(),S=(0,c.useMemo)((()=>(0,I.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===E?wa.A.darkAlgorithm:wa.A.defaultAlgorithm}},p().createElement(I.N7,{container:t,cache:S},p().createElement(Nc.A,{getPopupContainer:e=>e.parentElement,allowClear:g,loading:a,disabled:d,multiple:u,fieldNames:o,placeholder:h,placement:m,dropdownStyle:A,suffixIcon:w&&p().createElement($p,w),maxTagCount:y,value:l,size:b,treeData:s,treeCheckable:i,treeExpandedKeys:r,treeDefaultExpandAll:n,onChange:k,onSelect:v,onSearch:x,onTreeExpand:C,virtual:!1})))}Dc=class extends Ua{constructor(){super(...arguments),(0,s.A)(this,mu),(0,r.A)(this,Qp,Kc(this)),(0,r.A)(this,Vp,(Tc(this),Uc(this))),(0,r.A)(this,Zp,(Lc(this),Fc(this))),(0,r.A)(this,Gp,(Oc(this),Hc(this))),(0,r.A)(this,Yp,($c(this),qc(this))),(0,r.A)(this,Jp,(jc(this),Qc(this))),(0,r.A)(this,Xp,(Vc(this),Zc(this))),(0,r.A)(this,eu,(Gc(this),Yc(this))),(0,r.A)(this,tu,(Jc(this),Xc(this))),(0,r.A)(this,iu,(ep(this),tp(this))),(0,r.A)(this,au,(ip(this),ap(this))),(0,r.A)(this,su,(sp(this),rp(this))),(0,r.A)(this,ru,(np(this),op(this,!0))),(0,r.A)(this,nu,(lp(this),hp(this,!1))),(0,r.A)(this,ou,(dp(this),cp(this))),(0,r.A)(this,lu,(pp(this),up(this,!0))),(0,r.A)(this,hu,(gp(this),mp(this))),(0,r.A)(this,du,(Ap(this),wp(this,"bottomLeft"))),(0,r.A)(this,cu,(bp(this),yp(this))),(0,r.A)(this,pu,(fp(this),kp(this))),(0,r.A)(this,uu,(xp(this),vp(this))),(0,r.A)(this,gu,(Cp(this),Ep(this))),(0,a.A)(this,"handleOnChange",(Mp(this),e=>{this.value=e,(0,o.A)(mu,this,Sp).emit({value:e})})),(0,r.A)(this,Au,zp(this)),(0,r.A)(this,wu,(Bp(this),e=>{(0,o.A)(mu,this,Rp).emit(e)})),(0,r.A)(this,bu,Dp(this)),(0,r.A)(this,yu,(Pp(this),e=>{(0,o.A)(mu,this,Np).emit({value:e})})),(0,r.A)(this,fu,Kp(this)),(0,r.A)(this,ku,(Lp(this),e=>{(0,o.A)(mu,this,Tp).emit({keys:e})}))}get name(){return(0,h.A)(Qp,this)}set name(e){(0,l.A)(Qp,this,e)}get label(){return(0,h.A)(Vp,this)}set label(e){(0,l.A)(Vp,this,e)}get required(){return(0,h.A)(Zp,this)}set required(e){(0,l.A)(Zp,this,e)}get treeData(){return(0,h.A)(Gp,this)}set treeData(e){(0,l.A)(Gp,this,e)}get treeDefaultExpandAll(){return(0,h.A)(Yp,this)}set treeDefaultExpandAll(e){(0,l.A)(Yp,this,e)}get treeExpandedKeys(){return(0,h.A)(Jp,this)}set treeExpandedKeys(e){(0,l.A)(Jp,this,e)}get fieldNames(){return(0,h.A)(Xp,this)}set fieldNames(e){(0,l.A)(Xp,this,e)}get value(){return(0,h.A)(eu,this)}set value(e){(0,l.A)(eu,this,e)}get placeholder(){return(0,h.A)(tu,this)}set placeholder(e){(0,l.A)(tu,this,e)}get multiple(){return(0,h.A)(iu,this)}set multiple(e){(0,l.A)(iu,this,e)}get disabled(){return(0,h.A)(au,this)}set disabled(e){(0,l.A)(au,this,e)}get checkable(){return(0,h.A)(su,this)}set checkable(e){(0,l.A)(su,this,e)}get allowClear(){return(0,h.A)(ru,this)}set allowClear(e){(0,l.A)(ru,this,e)}get loading(){return(0,h.A)(nu,this)}set loading(e){(0,l.A)(nu,this,e)}get filterTreeNode(){return(0,h.A)(ou,this)}set filterTreeNode(e){(0,l.A)(ou,this,e)}get showSearch(){return(0,h.A)(lu,this)}set showSearch(e){(0,l.A)(lu,this,e)}get suffixIcon(){return(0,h.A)(hu,this)}set suffixIcon(e){(0,l.A)(hu,this,e)}get popupPlacement(){return(0,h.A)(du,this)}set popupPlacement(e){(0,l.A)(du,this,e)}get size(){return(0,h.A)(cu,this)}set size(e){(0,l.A)(cu,this,e)}get maxTagCount(){return(0,h.A)(pu,this)}set maxTagCount(e){(0,l.A)(pu,this,e)}get dropdownStyle(){return(0,h.A)(uu,this)}set dropdownStyle(e){(0,l.A)(uu,this,e)}render(){return p().createElement(qp,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(xu,{shadowRoot:this.shadowRoot,checkable:this.checkable,treeData:this.treeData,treeDefaultExpandAll:this.treeDefaultExpandAll,fieldNames:this.fieldNames,filterTreeNode:this.filterTreeNode,value:this.value,multiple:this.multiple,placeholder:this.placeholder,loading:this.loading,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,suffixIcon:this.suffixIcon,size:this.size,popupPlacement:this.popupPlacement,treeExpandedKeys:this.treeExpandedKeys,maxTagCount:this.maxTagCount,dropdownStyle:this.dropdownStyle,onChange:this.handleOnChange,onSearch:(0,h.A)(wu,this),onSelect:(0,h.A)(yu,this),onTreeExpand:(0,h.A)(ku,this)}))}},({e:[Kc,Tc,Uc,Lc,Fc,Oc,Hc,$c,qc,jc,Qc,Vc,Zc,Gc,Yc,Jc,Xc,ep,tp,ip,ap,sp,rp,np,op,lp,hp,dp,cp,pp,up,gp,mp,Ap,wp,bp,yp,fp,kp,xp,vp,Cp,Ep,Sp,Wp,Mp,zp,Rp,_p,Bp,Dp,Np,Ip,Pp,Kp,Tp,Up,Lp],c:[jp,Pc]}=(0,d.A)(Dc,[Fp("eo-tree-select",{styleTexts:[Ic.A]})],[[Op(),1,"name"],[Op(),1,"label"],[Op({type:Boolean}),1,"required"],[Op({attribute:!1}),1,"treeData"],[Op({type:Boolean}),1,"treeDefaultExpandAll"],[Op({attribute:!1}),1,"treeExpandedKeys"],[Op({attribute:!1}),1,"fieldNames"],[Op({attribute:!1}),1,"value"],[Op(),1,"placeholder"],[Op({type:Boolean}),1,"multiple"],[Op({type:Boolean}),1,"disabled"],[Op({type:Boolean}),1,"checkable"],[Op({type:Boolean}),1,"allowClear"],[Op({type:Boolean}),1,"loading"],[Op({attribute:!1}),1,"filterTreeNode"],[Op({type:Boolean}),1,"showSearch"],[Op({attribute:!1}),1,"suffixIcon"],[Op(),1,"popupPlacement"],[Op(),1,"size"],[Op({attribute:!1}),1,"maxTagCount"],[Op({attribute:!1}),1,"dropdownStyle"],[Hp({type:"change"}),1,"changeEvent",e=>(0,h.A)(gu,e),(e,t)=>(0,l.A)(gu,e,t)],[Hp({type:"search"}),1,"searchEvent",e=>(0,h.A)(Au,e),(e,t)=>(0,l.A)(Au,e,t)],[Hp({type:"select"}),1,"selectEvent",e=>(0,h.A)(bu,e),(e,t)=>(0,l.A)(bu,e,t)],[Hp({type:"expand"}),1,"expandEvent",e=>(0,h.A)(fu,e),(e,t)=>(0,l.A)(fu,e,t)]],0,(e=>ku.has((0,n.A)(e))),Ua)),Pc();var vu,Cu=i(25629),Eu=i(75612);let Su,Wu,Mu,zu,Ru;const{defineElement:_u,property:Bu}=(0,u.createDecorators)();let Du;var Nu=new WeakMap,Iu=new WeakMap;class Pu extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Nu,Wu(this)),(0,r.A)(this,Iu,(Mu(this),zu(this,1))),Ru(this)}get label(){return(0,h.A)(Nu,this)}set label(e){(0,l.A)(Nu,this,e)}get lineClamp(){return(0,h.A)(Iu,this)}set lineClamp(e){(0,l.A)(Iu,this,e)}render(){return p().createElement(Ku,{label:this.label,lineClamp:this.lineClamp})}}function Ku(e){const{lineClamp:t,label:i}=e,a=(0,c.useRef)(null),[s,r]=(0,c.useState)(!1),n=(0,c.useCallback)((()=>{const e=a.current;if(!e)return!1;const{offsetWidth:t,offsetHeight:i,scrollWidth:s,scrollHeight:r}=e;return t<s||i<r}),[t,i]),o=(0,c.useMemo)((()=>(0,I.VC)()),[]);return(0,c.useEffect)((()=>{r(n())}),[n]),p().createElement(f.Ay,{prefixCls:"antdV5"},p().createElement(I.N7,{cache:o,hashPriority:"high",transformers:[I.NZ]},p().createElement(Eu.A,{title:s?i:null},p().createElement("div",{ref:a,className:"ellipsisWrap",style:{"--line-clamp":t}},i))))}vu=Pu,({e:[Wu,Mu,zu,Ru],c:[Du,Su]}=(0,d.A)(vu,[_u("eo-text-tooltip",{styleTexts:[Cu.A]})],[[Bu({type:String}),1,"label"],[Bu({type:Number}),1,"lineClamp"]],0,void 0,g.ReactNextElement)),Su();var Tu,Uu=i(27367),Lu=i(4098);let Fu,Ou,Hu,$u,qu,ju,Qu,Vu,Zu;i(10659),i(15058);const{defineElement:Gu,property:Yu}=(0,u.createDecorators)();let Ju;var Xu=new WeakMap,eg=new WeakMap,tg=new WeakMap,ig=new WeakMap;class ag extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Xu,Ou(this)),(0,r.A)(this,eg,(Hu(this),$u(this))),(0,r.A)(this,tg,(qu(this),ju(this))),(0,r.A)(this,ig,(Qu(this),Vu(this))),Zu(this)}get url(){return(0,h.A)(Xu,this)}set url(e){(0,l.A)(Xu,this,e)}get page(){return(0,h.A)(eg,this)}set page(e){(0,l.A)(eg,this,e)}get search(){return(0,h.A)(tg,this)}set search(e){(0,l.A)(tg,this,e)}get viewerStyle(){return(0,h.A)(ig,this)}set viewerStyle(e){(0,l.A)(ig,this,e)}render(){return p().createElement(sg,{url:this.url,page:this.page?this.page-1:0,search:this.search,viewerStyle:this.viewerStyle})}}function sg(e){let{url:t,search:a,page:s,viewerStyle:r}=e;const[n,o]=(0,c.useState)(!1),l=(0,Lu.defaultLayoutPlugin)();return(0,c.useEffect)((()=>{n&&a&&l.toolbarPluginInstance.searchPluginInstance.highlight({keyword:a})}),[n,a]),p().createElement(Uu.Worker,{workerUrl:`${i.p}workers/pdf.worker.min.js`},p().createElement("div",{style:r},p().createElement(Uu.Viewer,{fileUrl:t,initialPage:s,plugins:[l],onDocumentLoad:()=>o(!0)})))}Tu=ag,({e:[Ou,Hu,$u,qu,ju,Qu,Vu,Zu],c:[Ju,Fu]}=(0,d.A)(Tu,[Gu("advanced.pdf-viewer",{shadowOptions:!1})],[[Yu(),1,"url"],[Yu({type:Number}),1,"page"],[Yu(),1,"search"],[Yu({attribute:!1}),1,"viewerStyle"]],0,void 0,g.ReactNextElement)),Fu()}}]);
2
- //# sourceMappingURL=7157.fc71a55d.js.map