@next-bricks/advanced 0.47.0 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/2252.98aa3e1e.js +3 -0
- package/dist/chunks/2252.98aa3e1e.js.map +1 -0
- package/dist/chunks/4197.9455fba5.js +2 -0
- package/dist/chunks/{4197.0e8e491b.js.map → 4197.9455fba5.js.map} +1 -1
- package/dist/chunks/4765.da59ee88.js +2 -0
- package/dist/chunks/4765.da59ee88.js.map +1 -0
- package/dist/chunks/{4837.352c9202.js → 4837.a4abe532.js} +2 -2
- package/dist/chunks/4837.a4abe532.js.map +1 -0
- package/dist/chunks/7146.c51ea5fd.js +2 -0
- package/dist/chunks/7146.c51ea5fd.js.map +1 -0
- package/dist/chunks/{7218.964cf725.js → 7218.7fb394fc.js} +2 -2
- package/dist/chunks/7218.7fb394fc.js.map +1 -0
- package/dist/chunks/9140.4c7cb597.js +3 -0
- package/dist/chunks/9140.4c7cb597.js.map +1 -0
- package/dist/chunks/{capture-snapshot.081a0052.js → capture-snapshot.35797eba.js} +2 -2
- package/dist/chunks/{capture-snapshot.081a0052.js.map → capture-snapshot.35797eba.js.map} +1 -1
- package/dist/chunks/eo-cascader.972d0f1a.js +2 -0
- package/dist/chunks/{eo-cascader.046be28f.js.map → eo-cascader.972d0f1a.js.map} +1 -1
- package/dist/chunks/eo-next-table.52ec790d.js +2 -0
- package/dist/chunks/{eo-next-table.856fa6f7.js.map → eo-next-table.52ec790d.js.map} +1 -1
- package/dist/chunks/eo-table.12739d5e.js +2 -0
- package/dist/chunks/{eo-table.88f9914d.js.map → eo-table.12739d5e.js.map} +1 -1
- package/dist/chunks/eo-tree-select.cb6bcb08.js +2 -0
- package/dist/chunks/{eo-tree-select.c825c841.js.map → eo-tree-select.cb6bcb08.js.map} +1 -1
- package/dist/chunks/{eo-tree.52b4e6d0.js → eo-tree.926c0da4.js} +3 -3
- package/dist/chunks/{eo-tree.52b4e6d0.js.map → eo-tree.926c0da4.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout-v2.f1eda59a.js +3 -0
- package/dist/chunks/{eo-workbench-layout-v2.30d5a182.js.map → eo-workbench-layout-v2.f1eda59a.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout.4414c0db.js +2 -0
- package/dist/chunks/{eo-workbench-layout.cc16b555.js.map → eo-workbench-layout.4414c0db.js.map} +1 -1
- package/dist/chunks/main.5156bdb0.js +2 -0
- package/dist/chunks/main.5156bdb0.js.map +1 -0
- package/dist/index.639ce0e4.js +2 -0
- package/dist/index.639ce0e4.js.map +1 -0
- package/package.json +2 -2
- package/dist/chunks/2252.4d662a7c.js +0 -3
- package/dist/chunks/2252.4d662a7c.js.map +0 -1
- package/dist/chunks/3933.6f31d144.js +0 -2
- package/dist/chunks/3933.6f31d144.js.map +0 -1
- package/dist/chunks/4197.0e8e491b.js +0 -2
- package/dist/chunks/4837.352c9202.js.map +0 -1
- package/dist/chunks/6314.de17c1ed.js +0 -2
- package/dist/chunks/6314.de17c1ed.js.map +0 -1
- package/dist/chunks/7218.964cf725.js.map +0 -1
- package/dist/chunks/9140.8ee0d298.js +0 -3
- package/dist/chunks/9140.8ee0d298.js.map +0 -1
- package/dist/chunks/eo-cascader.046be28f.js +0 -2
- package/dist/chunks/eo-next-table.856fa6f7.js +0 -2
- package/dist/chunks/eo-table.88f9914d.js +0 -2
- package/dist/chunks/eo-tree-select.c825c841.js +0 -2
- package/dist/chunks/eo-workbench-layout-v2.30d5a182.js +0 -3
- package/dist/chunks/eo-workbench-layout.cc16b555.js +0 -2
- package/dist/chunks/main.e03822e7.js +0 -2
- package/dist/chunks/main.e03822e7.js.map +0 -1
- package/dist/index.92e8d140.js +0 -2
- package/dist/index.92e8d140.js.map +0 -1
- /package/dist/chunks/{2252.4d662a7c.js.LICENSE.txt → 2252.98aa3e1e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9140.8ee0d298.js.LICENSE.txt → 9140.4c7cb597.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-tree.52b4e6d0.js.LICENSE.txt → eo-tree.926c0da4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-workbench-layout-v2.30d5a182.js.LICENSE.txt → eo-workbench-layout-v2.f1eda59a.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[4197],{2198:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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=s.toString()},3679:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,'[class^="chartWrap--"]{position:relative;display:flex;flex-direction:column}[class^="chartWrap--"] img::selection{background:transparent}[class^="chartWrap--"] [class^="chartEle--"]{display:flex;justify-content:center;align-items:center;flex:1}',""]);const o=s.toString()},16322:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r),o=a(20062),l=a.n(o),h=new URL(a(59224),a.b),d=s()(n()),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,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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=s.toString()},28383:()=>{},34566:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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=s.toString()},34695:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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}.notPopupMatchSelectWidth .ant-select-tree-title{white-space:nowrap}",""]);const o=s.toString()},39138:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,":host{display:block}:host([hidden]){display:none}:host .ant-tree{background-color:transparent}",""]);const o=s.toString()},39630:()=>{},47831:(e,t,a)=>{"use strict";var i=a(24586),n=a(74635),r=a(70918),s=a(26902),o=a(5536),l=a(86121),h=a(70829),d=a(62740),c=a(18769),p=a.n(c),u=a(7921),g=a(11280),m=a(2198),w=a(41030),A=a(82202),b=a(89575),y=a(10212),f=a(40194);const x={$eq:w.isEqual,$lt:w.lt,$lte:w.lte,$gt:w.gt,$gte:w.gte,$ne:(e,t)=>!(0,w.isEqual)(e,t),$isEqual:w.isEqual,$notEqual:(e,t)=>!(0,w.isEqual)(e,t),$in:w.includes,$nin:(e,t)=>!(0,w.includes)(e,t),$exists:(e,t)=>e?!(0,w.isUndefined)(t):(0,w.isUndefined)(t)};function v(e,t,a){const{dataIndex:i,mapping:n}=e,r=void 0!==i?(0,w.get)(t,i):a,s=n.find((e=>e.value===r));return s?{borderLeft:`4px solid ${s.leftBorderColor}`}:{}}const k=(e,t,a,i)=>{e&&(0,w.forEach)(e,(e=>{const n=(0,w.get)(e,a),r=(0,w.get)(e,t);i.push(r),null!=n&&n.length&&k(n,t,a,i)}))},C=(e,t,a)=>{e&&(0,w.forEach)(e,(e=>{const i=(0,w.get)(e,t);a.push(e),null!=i&&i.length&&C(i,t,a)}))};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var a;return null!==(a=t[e])&&void 0!==a&&a.length?S(e,t[e]):(delete t[e],t)})),t}var E=a(53373),W=a.n(E),M=a(47522),R=a(80255),B=a(63737),I=a(50692),z=a(53435),_=a.n(z),N=a(72736),D=a(95694);var T=a(69704),K=a(99733),P=a(84352),L=a(26386);(0,T.initializeReactI18n)("bricks/advanced/eo-table",{en:{},zh:{}});const U="DraggableBodyRow",F={lib:"antd",icon:"down",theme:"outlined"},O={lib:"antd",icon:"right",theme:"outlined"},H=(0,g.wrapBrick)("eo-icon"),j=e=>{let{index:t,moveRow:a,className:i,style:n,...r}=e;const s=p().useRef(null),[{isOver:o,dropClassName:l},h]=(0,M.H)({accept:U,collect:e=>{const{index:a}=e.getItem()||{};return a===t?{}:{isOver:e.isOver(),dropClassName:a<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{a(e.index,t)}}),[,d]=(0,R.i)({type:U,item:{type:U,index:t},collect:e=>({isDragging:e.isDragging()})});return h(d(s)),p().createElement("tr",(0,b.A)({ref:s,className:W()(i,{[l]:o}),style:{cursor:"move",...n}},r))};function $(e){const t="zh"===K.i18n.language.split("-")[0]?L.A:P.A;if(e.error)throw e.error;const{configProps:a={pagination:!0,sortBy:!1},columns:i,rowKey:n="key",expandIconAsCell:r,expandIconColumnIndex:s,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,w.isNil)(e[n])?{...e,[n]:t}:e))}),[e.dataSource,n]),[m,A]=(0,c.useState)(g),x=(0,c.useRef)(new Map),k=(0,c.useRef)(new Map),C=(0,c.useRef)(new Map),S=(0,c.useRef)(new Map);(0,c.useEffect)((()=>{S.current.clear(),A(g)}),[g]);const E=null!=a&&a.rowSelection?-1:0,M=(0,c.useMemo)((()=>{if(i){k.current.clear(),C.current.clear();const e=i.map(((e,t)=>{const{useBrick:a,valueSuffix:i,cellStatus:l,cellStyle:h={},headerBrick:c,colSpanKey:u,rowSpanKey:g,filterDropdownBrick:m,...A}=e;if(null!=c&&c.useBrick){const t=null==c?void 0:c.useBrick;let a=k.current.get(e);a||(a={title:A.title},k.current.set(e,a)),A.title=((e,t)=>function(){return p().createElement(N.ReactUseMultipleBricks,{useBrick:e,data:t})})(t,a)}if(null!=m&&m.useBrick&&(A.filterDropdown=p().createElement(N.ReactUseMultipleBricks,{useBrick:m.useBrick})),a){let e;a&&(e=C.current.get(a),e||(e=new Map,C.current.set(a,e))),A.render=((e,t)=>function(a,i,n){if(e){let r=null==t?void 0:t.get(i);return r||(r={cellData:a,rowData:i,columnIndex:n},null==t||t.set(i,r)),p().createElement(N.ReactUseMultipleBricks,{useBrick:e,data:r})}})(a,e),A.shouldCellUpdate=(e,t)=>!(0,w.isEqual)(e,t)}else i&&(A.render=e=>e+i);if(!r&&t===Number(s)+E){const e=A.render;A.render=function(t,a,i){return p().createElement(p().Fragment,null,!a[o]&&x.current.get(n?a[n]:a),e?e(t,a,i):t)}}if(l||u||g||h){const e=A.render;A.render=(t,a,i)=>({children:e?e(t,a,i):t,props:{colSpan:a[u],rowSpan:a[g],style:{...l?v(l,a,t):{},...h}}})}return"string"==typeof A.dataIndex&&(A.dataIndex=(0,w.toPath)(A.dataIndex)),"top"===A.verticalAlign&&(A.className?A.className+=" alignTop":A.className="alignTop"),"bottom"===A.verticalAlign&&(A.className?A.className+=" alignBottom":A.className="alignBottom"),d&&(A.className?A.className+=" ellipsisInfoCell":A.className="ellipsisInfoCell"),A}));return e}}),[i,o,r,s,E,n,h,d]),R={body:{row:j}},z=(t,a)=>{const i=m[t],n=_()(m,{$splice:[[t,1],[a,0,i]]});A(n),e.onDrag&&e.onDrag(n)},T=(0,w.pickBy)({expandIconColumnIndex:s,expandIconAsCell:r,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,w.isNil)(e)));let U=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:R,onRow:(e,t)=>({index:t,moveRow:z})}:{},{columns:M,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,a)=>{var i;let n=S.current.get(t);return n||(n={rowData:t,rowIndex:a},S.current.set(t,n)),p().createElement(N.ReactUseMultipleBricks,{useBrick:null===(i=e.expandedRowBrick)||void 0===i?void 0:i.useBrick,data:n})}}:{},T,{onExpand:(t,a)=>{e.onExpand&&e.onExpand(t,a)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:n,childrenColumnName:o,rowClassName:(t,a)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&a%2?"brickTableOddRow":"",expandIcon:t=>{var a;const{record:i,expandable:s,expanded:o,onExpand:l}=t;let h,d=(null===(a=e.expandIcon)||void 0===a?void 0:a.collapsedIcon)||F;var c;s?(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(i,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||x.current.set(n?i[n]:i,h),h):p().createElement(p().Fragment,null)},scroll:l,showHeader:u},a));e.tableDraggable&&(U=p().createElement(B.Q,{backend:I.t2,context:window},U));const $=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{locale:t},p().createElement(D.N7,{container:e.shadowRoot,cache:$},U))}var q;let V,Q,G,Z,Y,X,J,ee,te,ae,ie,ne,re,se,oe,le,he,de,ce,pe,ue,ge,me,we,Ae,be,ye,fe,xe,ve,ke,Ce,Se,Ee,We,Me,Re,Be,Ie,ze,_e,Ne,De,Te,Ke,Pe,Le,Ue,Fe,Oe,He,je,$e,qe,Ve,Qe,Ge,Ze,Ye,Xe,Je,et,tt,at,it,nt,rt,st,ot,lt,ht,dt,ct,pt,ut,gt,mt,wt,At,bt,yt,ft,xt,vt,kt,Ct,St,Et,Wt,Mt,Rt,Bt,It,zt,_t,Nt,Dt,Tt,Kt,Pt,Lt,Ut,Ft,Ot,Ht,jt,$t,qt,Vt,Qt,Gt,Zt,Yt,Xt,Jt,ea,ta,aa,ia,na,ra,sa,oa,la;a(76477);const{defineElement:ha,property:da,event:ca,method:pa}=(0,u.createDecorators)();let ua;var ga=new WeakMap,ma=new WeakSet,wa=new WeakMap,Aa=new WeakMap,ba=new WeakMap,ya=new WeakMap,fa=new WeakMap,xa=new WeakMap,va=new WeakMap,ka=new WeakMap,Ca=new WeakMap,Sa=new WeakMap,Ea=new WeakMap,Wa=new WeakMap,Ma=new WeakMap,Ra=new WeakMap,Ba=new WeakMap,Ia=new WeakMap,za=new WeakMap,_a=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ta=new WeakMap,Ka=new WeakMap,Pa=new WeakMap,La=new WeakMap,Ua=new WeakMap,Fa=new WeakMap,Oa=new WeakMap,Ha=new WeakMap,ja=new WeakMap,$a=new WeakMap,qa=new WeakMap,Va=new WeakMap,Qa=new WeakMap,Ga=new WeakMap,Za=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Ja=new WeakMap,ei=new WeakMap,ti=new WeakMap,ai=new WeakMap,ii=new WeakMap,ni=new WeakMap,ri=new WeakMap,si=new WeakMap,oi=new WeakMap,li=new WeakMap,hi=new WeakMap,di=new WeakMap,ci=new WeakMap,pi=new WeakMap,ui=new WeakMap,gi=new WeakMap;class mi extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,ma),(0,r.A)(this,ga,(V(this),G(this))),(0,r.A)(this,wa,(X(this),J(this))),(0,r.A)(this,Aa,(ae(this),ie(this))),(0,r.A)(this,ba,(se(this),oe(this))),(0,r.A)(this,ya,(de(this),ce(this))),(0,r.A)(this,fa,(ge(this),me(this))),(0,r.A)(this,xa,(be(this),ye(this))),(0,r.A)(this,va,(ve(this),ke(this))),(0,r.A)(this,ka,(Ee(this),We(this,!0))),(0,r.A)(this,Ca,(Me(this),Re(this))),(0,r.A)(this,Sa,(Be(this),Ie(this))),(0,r.A)(this,Ea,(ze(this),_e(this))),(0,r.A)(this,Wa,(Ne(this),De(this,!1))),(0,r.A)(this,Ma,(Te(this),Ke(this))),(0,r.A)(this,Ra,(Pe(this),Le(this))),(0,r.A)(this,Ba,(Ue(this),Fe(this))),(0,r.A)(this,Ia,(Oe(this),He(this))),(0,r.A)(this,za,(je(this),$e(this))),(0,r.A)(this,_a,(qe(this),Ve(this))),(0,r.A)(this,Na,(Qe(this),Ge(this))),(0,r.A)(this,Da,(Ze(this),Ye(this,!0))),(0,r.A)(this,Ta,(Xe(this),Je(this))),(0,r.A)(this,Ka,(et(this),tt(this))),(0,r.A)(this,Pa,(at(this),it(this))),(0,r.A)(this,La,(nt(this),rt(this,!1))),(0,r.A)(this,Ua,(st(this),ot(this))),(0,r.A)(this,Fa,(lt(this),ht(this))),(0,r.A)(this,Oa,(dt(this),ct(this))),(0,r.A)(this,Ha,(pt(this),ut(this))),(0,r.A)(this,ja,(gt(this),mt(this))),(0,i.A)(this,"_disabledChildrenKeys",(wt(this),[])),(0,r.A)(this,$a,At(this,"children")),(0,r.A)(this,qa,(bt(this),yt(this,!0))),(0,r.A)(this,Va,(ft(this),xt(this))),(0,r.A)(this,Qa,(vt(this),kt(this,""))),(0,r.A)(this,Ga,(Ct(this),St(this))),(0,r.A)(this,Za,(Et(this),Wt(this))),(0,r.A)(this,Ya,(Mt(this),Rt(this))),(0,r.A)(this,Xa,(Bt(this),It(this))),(0,r.A)(this,Ja,(zt(this),_t(this,{x:!0}))),(0,r.A)(this,ei,(Nt(this),Dt(this,"q"))),(0,r.A)(this,ti,(Tt(this),Kt(this))),(0,r.A)(this,ai,(Pt(this),Lt(this))),(0,r.A)(this,ii,(Ut(this),Ft(this))),(0,r.A)(this,ni,(Ot(this),Ht(this,[]))),(0,r.A)(this,ri,(jt(this),$t(this))),(0,r.A)(this,si,(qt(this),Vt(this))),(0,r.A)(this,oi,(Qt(this),Gt(this,!0))),(0,r.A)(this,li,(Zt(this),Yt(this))),(0,r.A)(this,hi,(Xt(this),Jt(this))),(0,r.A)(this,di,(ea(this),ta(this))),(0,r.A)(this,ci,(aa(this),ia(this,!0))),(0,r.A)(this,pi,(na(this),ra(this,!0))),(0,i.A)(this,"_originalDataSource",(sa(this),[])),(0,i.A)(this,"_dataSource",[]),(0,i.A)(this,"_pureSource",void 0),(0,i.A)(this,"_columns",void 0),(0,i.A)(this,"_finalConfigProps",{}),(0,i.A)(this,"_error",void 0),(0,r.A)(this,ui,void 0),(0,i.A)(this,"_selectUpdateEventName",""),(0,i.A)(this,"_selectUpdateEventDetailKeys",[]),(0,i.A)(this,"_selectUpdateEventDetailField",""),(0,i.A)(this,"_selectUpdateEventDetailExtra",{}),(0,i.A)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,r.A)(this,gi,oa(this,[])),(0,i.A)(this,"_selected",(la(this),!1)),(0,i.A)(this,"_selectedRow",void 0),(0,i.A)(this,"_selectedRows",[]),(0,i.A)(this,"_allChildren",[]),(0,i.A)(this,"_isInSelect",!1),(0,i.A)(this,"_getRowKey",(()=>{var e,t,a,i;return null!==(e=null!==(t=null!==(a=this.rowKey)&&void 0!==a?a:this._fields.rowKey)&&void 0!==t?t:null===(i=this.configProps)||void 0===i?void 0:i.rowKey)&&void 0!==e?e:"key"})),(0,i.A)(this,"_findParentByChildKeyValue",((e,t,a,i)=>{let n;return a.some((a=>{if(a[t]===e)n=i;else{const i=a[this.childrenColumnName];i&&(n=this._findParentByChildKeyValue(e,t,i,a))}return!!n})),n})),(0,i.A)(this,"_handleRowSelectChange",((e,t)=>{const a=this._getRowKey(),i=(0,w.keyBy)(t,a);if(this._selected){const t=[...e];if(this._allChildren.forEach((e=>{const n=e[a];t.push(n),i[n]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){const n=new Set(e),r=this._findParentByChildKeyValue(this._selectedRow[a],a,this._dataSource);if(r&&r[this.childrenColumnName].every((e=>n.has(e[a])))){const e=r[a];t.push(e),i[e]=r}}this.selectedRowKeys=(0,w.uniq)(t)}else{let t;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(t=this._findParentByChildKeyValue(this._selectedRow[a],a,this._dataSource)),this.selectedRowKeys=(0,w.pullAll)(e,(0,w.map)(this._allChildren.concat(t),a))}this._selectedRow=void 0;const n=(0,w.keyBy)(this.extraRows,a);this._selectedRows=this.selectedRowKeys.map((e=>i[e]||n[e]));let r=null;const s=(0,w.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,w.map)(this._selectedRows,(e=>(0,w.get)(e,this._selectUpdateEventDetailField)));r=(0,w.isEmpty)(this._selectUpdateEventDetailKeys)||(0,w.isEmpty)(s)?s:(0,w.set)({},this._selectUpdateEventDetailKeys,s),(0,w.isEmpty)(r)||(r=(0,w.merge)(r,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:r})):(0,o.A)(ma,this,ne).emit(r),(0,o.A)(ma,this,le).emit(e)})),(0,i.A)(this,"_getSelectedRowsWithChildren",(e=>{const t=[];return!(0,w.isEmpty)(e[this.childrenColumnName])&&(0,w.isArray)(e[this.childrenColumnName])&&(0,w.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,i.A)(this,"_handleOnSelect",((e,t)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;const a=this._getRowKey(),i=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=i,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,w.uniq)([...this._disabledChildrenKeys,...(0,w.map)(i,a)]):(0,w.pullAll)(this._disabledChildrenKeys,[...(0,w.map)(i,a)])),this.storeCheckedByUrl&&a&&this._updateUrlChecked([e[a]],t)})),(0,i.A)(this,"_handleSelectAll",((e,t,a)=>{this._selected=e,this._isInSelect=!0;const i=this._getRowKey();if(this.selectAllChildren){const t=(0,w.map)(this._dataSource,i),n=a.filter((e=>t.includes(e[i]))),r=(0,w.flatten)((0,w.map)(n,(e=>(0,w.map)(this._getSelectedRowsWithChildren(e),(e=>e[i]))))),s=(0,w.flatten)((0,w.map)(n,(e=>(0,w.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=s,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,w.uniq)(this._disabledChildrenKeys.concat(r)):this._disabledChildrenKeys.filter((e=>!r.includes(e))))}this.storeCheckedByUrl&&i&&this._updateUrlChecked((0,w.map)(a,i),e)})),(0,i.A)(this,"_getCheckedFromUrl",(()=>{const e=(0,A.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,w.isEmpty)(t)?[]:t.split(",")})),(0,i.A)(this,"_updateUrlChecked",((e,t)=>{const a=(0,A.getHistory)();let i=this._getCheckedFromUrl();t?i=[...i,...e]:(0,w.pull)(i,...e),this.shouldUpdateUrlParams&&a.pushQuery({checked:i.join(",")},{notify:!1})})),(0,i.A)(this,"_handleOnChange",((e,t,a)=>{const i=(0,A.getHistory)(),n=new URLSearchParams(i.location.search);if(!(0,w.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,n.set("page","1"),n.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,o.A)(ma,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;n.set("page",t.toString()),(0,o.A)(ma,this,Z).emit({[this._fields.page]:t}),this.page=t}this.filters=t,(0,w.isEmpty)(t)||(0,w.forEach)(t,((e,t)=>{(0,w.isNil)(e)||0===e.length?n.delete(t):n.set(t,e)})),a.order&&(0,w.isNil)(a.order)&&(a.columnKey!==this.sort||this._fields[a.order]!==this.order)&&(a.columnKey&&a.order?(n.set("sort",a.columnKey),n.set("order",this._fields[a.order].toString()),this.sort=a.columnKey,this.order=this._fields[a.order]):(n.delete("sort"),n.delete("order"),this.sort=null,this.order=null),(0,o.A)(ma,this,pe).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&i.push(`?${n}`,{notify:!1}),this.frontendSearch(e,t,a)):this.shouldUpdateUrlParams&&i.push(`?${n}`,{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,i.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)(ma,this,ne).emit([])}},"清空")))),(0,i.A)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){const a=this._getRowKey(),i=[(0,w.get)(t,a)],n=(0,w.get)(t,this.childrenColumnName);if(!(0,w.isEmpty)(n)){const e=(0,w.map)((0,w.filter)(n,(e=>(0,w.isEmpty)((0,w.get)(e,this.childrenColumnName)))),a);i.push(...e)}this.expandedRowKeys=e?[...this.expandedRowKeys,...i]:(0,w.pull)(this.expandedRowKeys,...i),this._render()}(0,o.A)(ma,this,we).emit({expanded:e,record:t})})),(0,i.A)(this,"_handleOnExpandedRowsChange",(e=>{(0,o.A)(ma,this,fe).emit({expandedRows:e})})),(0,i.A)(this,"_handleOnDrag",(e=>{(0,o.A)(ma,this,Ce).emit({data:e})})),(0,i.A)(this,"_getAllRows",(()=>{const e=[];return C(this._dataSource,this.childrenColumnName,e),e})),(0,i.A)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;const e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,w.map)(this._selectedRows,e),this.selectedRowKeys})),(0,i.A)(this,"_initConfigProps",(()=>{var e,t;const a={current:this.page,pageSize:this.pageSize,total:(0,h.A)(ui,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())}},i=this._getRowKey();let n;this.rowDisabledConfig&&(n=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);const r={...i?{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,w.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,w.get)(e,i))?{disabled:!0}:n?{disabled:n.some((t=>{const{field:a,value:i,operator:n}=t,r=x[n];return null==r?void 0:r(i,(0,w.get)(e,a))}))}:{}};this.configProps?(this._finalConfigProps=(0,w.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination={...a,...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&&a,this._finalConfigProps.size="x-small"==this.size?"":this.size);const s=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;var o,l;s?this._finalConfigProps.rowSelection=!0===s?{...r,type:null!==(o=this.type)&&void 0!==o?o:"checkbox"}:{...r,type:null!==(l=this.type)&&void 0!==l?l:"checkbox",...s,...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,w.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,w.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,a;const i=(0,A.getHistory)(),n=null!==(t=new URLSearchParams(i.location.search).get(e.key))&&void 0!==t?t:null===(a=(0,w.get)(this.filters,e.key))||void 0===a?void 0:a.join(",");(0,w.isNil)(n)||(0,w.isEmpty)(n)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=n.split(",").map((t=>{var a,i;return null!==(a=null===(i=(0,w.find)(e.filters,(e=>String(e.value)===t)))||void 0===i?void 0:i.value)&&void 0!==a?a:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,a,i,n,r,s;(this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,w.cloneDeep)(this._fields.dataSource?(0,w.get)(e,this._fields.dataSource):e),this._pureSource=(0,w.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren)&&S((null===(s=this.configProps)||void 0===s||null===(s=s.expandable)||void 0===s?void 0:s.childrenColumnName)||"children",this._dataSource);(0,l.A)(ui,this,(0,w.get)(e,this._fields.total)),this.page=null!==(t=null!==(a=(0,w.get)(e,"page"))&&void 0!==a?a:this.page)&&void 0!==t?t:1,this.pageSize=null!==(i=null!==(n=null!==(r=(0,w.get)(e,"page_size"))&&void 0!==r?r:(0,w.get)(e,"pageSize"))&&void 0!==n?n:this.pageSize)&&void 0!==i?i:10,this._render()}get showCard(){return(0,h.A)(ka,this)}set showCard(e){(0,l.A)(ka,this,e)}get rowSelection(){return(0,h.A)(Ca,this)}set rowSelection(e){(0,l.A)(Ca,this,e)}get rowKey(){return(0,h.A)(Sa,this)}set rowKey(e){(0,l.A)(Sa,this,e)}get hiddenColumns(){return(0,h.A)(Ea,this)}set hiddenColumns(e){(0,l.A)(Ea,this,e)}get showSelectInfo(){return(0,h.A)(Wa,this)}set showSelectInfo(e){(0,l.A)(Wa,this,e)}get filters(){return(0,h.A)(Ma,this)}set filters(e){(0,l.A)(Ma,this,e)}get configProps(){return(0,h.A)(Ra,this)}set configProps(e){(0,l.A)(Ra,this,e)}get sort(){return(0,h.A)(Ba,this)}set sort(e){(0,l.A)(Ba,this,e)}get order(){return(0,h.A)(Ia,this)}set order(e){(0,l.A)(Ia,this,e)}get rowDisabledConfig(){return(0,h.A)(za,this)}set rowDisabledConfig(e){(0,l.A)(za,this,e)}get expandedRowBrick(){return(0,h.A)(_a,this)}set expandedRowBrick(e){(0,l.A)(_a,this,e)}get expandIcon(){return(0,h.A)(Na,this)}set expandIcon(e){(0,l.A)(Na,this,e)}get expandIconAsCell(){return(0,h.A)(Da,this)}set expandIconAsCell(e){(0,l.A)(Da,this,e)}get expandIconColumnIndex(){return(0,h.A)(Ta,this)}set expandIconColumnIndex(e){(0,l.A)(Ta,this,e)}get expandRowByClick(){return(0,h.A)(Ka,this)}set expandRowByClick(e){(0,l.A)(Ka,this,e)}get optimizedColumns(){return(0,h.A)(Pa,this)}set optimizedColumns(e){(0,l.A)(Pa,this,e)}get stripEmptyExpandableChildren(){return(0,h.A)(La,this)}set stripEmptyExpandableChildren(e){(0,l.A)(La,this,e)}get defaultExpandAllRows(){return(0,h.A)(Ua,this)}set defaultExpandAllRows(e){(0,l.A)(Ua,this,e)}get ellipsisInfo(){return(0,h.A)(Fa,this)}set ellipsisInfo(e){(0,l.A)(Fa,this,e)}get expandedRowKeys(){return(0,h.A)(Oa,this)}set expandedRowKeys(e){(0,l.A)(Oa,this,e)}get selectAllChildren(){return(0,h.A)(Ha,this)}set selectAllChildren(e){(0,l.A)(Ha,this,e)}get defaultSelectAll(){return(0,h.A)(ja,this)}set defaultSelectAll(e){(0,l.A)(ja,this,e)}get childrenColumnName(){return(0,h.A)($a,this)}set childrenColumnName(e){(0,l.A)($a,this,e)}get sortable(){return(0,h.A)(qa,this)}set sortable(e){(0,l.A)(qa,this,e)}set fields(e){this._fields={...this._fields,...e},this._render()}get frontSearch(){return(0,h.A)(Va,this)}set frontSearch(e){(0,l.A)(Va,this,e)}get frontSearchQuery(){return(0,h.A)(Qa,this)}set frontSearchQuery(e){(0,l.A)(Qa,this,e)}get exactSearch(){return(0,h.A)(Ga,this)}set exactSearch(e){(0,l.A)(Ga,this,e)}get frontSearchFilterKeys(){return(0,h.A)(Za,this)}set frontSearchFilterKeys(e){(0,l.A)(Za,this,e)}get page(){return(0,h.A)(Ya,this)}set page(e){(0,l.A)(Ya,this,e)}get pageSize(){return(0,h.A)(Xa,this)}set pageSize(e){(0,l.A)(Xa,this,e)}get scrollConfigs(){return(0,h.A)(Ja,this)}set scrollConfigs(e){(0,l.A)(Ja,this,e)}get qField(){return(0,h.A)(ei,this)}set qField(e){(0,l.A)(ei,this,e)}get tableDraggable(){return(0,h.A)(ti,this)}set tableDraggable(e){(0,l.A)(ti,this,e)}get zebraPattern(){return(0,h.A)(ai,this)}set zebraPattern(e){(0,l.A)(ai,this,e)}get storeCheckedByUrl(){return(0,h.A)(ii,this)}set storeCheckedByUrl(e){(0,l.A)(ii,this,e)}get extraRows(){return(0,h.A)(ni,this)}set extraRows(e){(0,l.A)(ni,this,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,h.A)(ri,this)}set autoSelectParentWhenAllChildrenSelected(e){(0,l.A)(ri,this,e)}get thTransparent(){return(0,h.A)(si,this)}set thTransparent(e){(0,l.A)(si,this,e)}get showHeader(){return(0,h.A)(oi,this)}set showHeader(e){(0,l.A)(oi,this,e)}get pagination(){return(0,h.A)(li,this)}set pagination(e){(0,l.A)(li,this,e)}get size(){return(0,h.A)(hi,this)}set size(e){(0,l.A)(hi,this,e)}get type(){return(0,h.A)(di,this)}set type(e){(0,l.A)(di,this,e)}get shouldUpdateUrlParams(){return(0,h.A)(ci,this)}set shouldUpdateUrlParams(e){(0,l.A)(ci,this,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,h.A)(pi,this)}set shouldRenderWhenUrlParamsUpdate(e){(0,l.A)(pi,this,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,h.A)(gi,this)}set selectedRowKeys(e){(0,l.A)(gi,this,e)}filterSourceData(e){const t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){const e=(0,A.getHistory)(),a=new URLSearchParams(e.location.search);a.set("page","1"),t?(a.set(this.qField,t),e.push(`?${a}`,{notify:!this.frontSearch})):(a.delete(this.qField),e.push(`?${a}`,{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,A.getHistory)(),t=new URLSearchParams(e.location.search);this.frontSearchQuery=t.get(this.qField)}let a=[];a=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);const i=(0,w.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return a=this.handleFrontendSorter(a,{columnKey:this.sort,order:i}),a=this.handleFrontendFilters(a),(0,l.A)(ui,this,a.length),a}handleFrontendFilterSource(e,t,a,i){if(!t)return e;const n=[];return i||(i=this.frontSearchFilterKeys||a.map((e=>e.dataIndex))),e.forEach((e=>{var r;const s=e[this.childrenColumnName];if(s){const r=this.handleFrontendFilterSource(s,t,a,i);if(r.length>0)return void n.push({...e,[this.childrenColumnName]:r})}(null===(r=i)||void 0===r?void 0:r.some((a=>{const i=(0,w.get)(e,a);return!(0,w.isNil)(i)&&(this.exactSearch?i===t:JSON.stringify(i).toLowerCase().includes(t))})))&&n.push(e)})),n}handleFrontendSorter(e,t){const a=e||[],{columnKey:i,order:n}=t;if(!i||!n)return e;let r=1;return"descend"===n?r=-1:"ascend"===n&&(r=1),void 0!==r&&(a.sort(((e,t)=>{const a=(0,w.get)(e,i),n=(0,w.get)(t,i);if((0,w.isNil)(a)){if(!(0,w.isNil)(n))return 1}else if((0,w.isNil)(n))return-1;return a==n?0:a>n?r:-r})),a.forEach((e=>{const a=e[this.childrenColumnName];a&&this.handleFrontendSorter(a,t)}))),a}handleFrontendFilters(e){let t=e||[];const a=(0,w.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,w.isNil)(e.value)&&0!==e.value.length));return t=t.filter((e=>(0,w.every)(a,(t=>{var a,i;return null===(a=null===(i=t.value)||void 0===i?void 0:i.includes((0,w.get)(e,t.key)))||void 0===a||a})))),t}frontendSearch(e,t,a){this.sort=(0,w.isNil)(a.order)?null:a.columnKey,this.order=(0,w.isNil)(a.order)?null:this._fields[a.order]}expandAll(){const e=[],t=this._getRowKey();this._dataSource&&k(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,a;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(a=e.dataIndex)&&void 0!==a?a:e.key))}))),!1===this.sortable&&(e=(0,w.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),p().createElement($,{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}}q=mi,({e:[G,Z,Y,X,J,ee,te,ae,ie,ne,re,se,oe,le,he,de,ce,pe,ue,ge,me,we,Ae,be,ye,fe,xe,ve,ke,Ce,Se,Ee,We,Me,Re,Be,Ie,ze,_e,Ne,De,Te,Ke,Pe,Le,Ue,Fe,Oe,He,je,$e,qe,Ve,Qe,Ge,Ze,Ye,Xe,Je,et,tt,at,it,nt,rt,st,ot,lt,ht,dt,ct,pt,ut,gt,mt,wt,At,bt,yt,ft,xt,vt,kt,Ct,St,Et,Wt,Mt,Rt,Bt,It,zt,_t,Nt,Dt,Tt,Kt,Pt,Lt,Ut,Ft,Ot,Ht,jt,$t,qt,Vt,Qt,Gt,Zt,Yt,Xt,Jt,ea,ta,aa,ia,na,ra,sa,oa,la,V],c:[ua,Q]}=(0,d.A)(q,[ha("eo-table",{styleTexts:[m.A],alias:["advanced.general-table"]})],[[ca({type:"page.update"}),1,"pageUpdate",e=>(0,h.A)(ga,e),(e,t)=>(0,l.A)(ga,e,t)],[ca({type:"filter.update"}),1,"filterUpdate",e=>(0,h.A)(wa,e),(e,t)=>(0,l.A)(wa,e,t)],[ca({type:"select.update"}),1,"selectUpdate",e=>(0,h.A)(Aa,e),(e,t)=>(0,l.A)(Aa,e,t)],[ca({type:"select.row.keys.update"}),1,"selectRowKeysUpdate",e=>(0,h.A)(ba,e),(e,t)=>(0,l.A)(ba,e,t)],[ca({type:"sort.update",cancelable:!0}),1,"sortUpdate",e=>(0,h.A)(ya,e),(e,t)=>(0,l.A)(ya,e,t)],[ca({type:"row.expand"}),1,"rowExpand",e=>(0,h.A)(fa,e),(e,t)=>(0,l.A)(fa,e,t)],[ca({type:"expand.rows.change"}),1,"expandRowsChange",e=>(0,h.A)(xa,e),(e,t)=>(0,l.A)(xa,e,t)],[ca({type:"row.drag"}),1,"rowDrag",e=>(0,h.A)(va,e),(e,t)=>(0,l.A)(va,e,t)],[da({type:Boolean}),1,"showCard"],[da({attribute:!1}),1,"rowSelection"],[da(),1,"rowKey"],[da({attribute:!1}),1,"hiddenColumns"],[da({type:Boolean}),1,"showSelectInfo"],[da({attribute:!1}),1,"filters"],[da({attribute:!1}),1,"configProps"],[da(),1,"sort"],[da({attribute:!1}),1,"order"],[da({attribute:!1}),1,"rowDisabledConfig"],[da({attribute:!1}),1,"expandedRowBrick"],[da({attribute:!1}),1,"expandIcon"],[da({attribute:!1}),1,"expandIconAsCell"],[da({type:Number}),1,"expandIconColumnIndex"],[da({type:Boolean}),1,"expandRowByClick"],[da({attribute:!1}),1,"optimizedColumns"],[da({attribute:!1}),1,"stripEmptyExpandableChildren"],[da({type:Boolean}),1,"defaultExpandAllRows"],[da({type:Boolean}),1,"ellipsisInfo"],[da({attribute:!1}),1,"expandedRowKeys"],[da({type:Boolean}),1,"selectAllChildren"],[da({type:Boolean}),1,"defaultSelectAll"],[da({attribute:!1}),1,"childrenColumnName"],[da({attribute:!1}),1,"sortable"],[da({type:Boolean}),1,"frontSearch"],[da(),1,"frontSearchQuery"],[da({type:Boolean}),1,"exactSearch"],[da({attribute:!1}),1,"frontSearchFilterKeys"],[da({type:Number}),1,"page"],[da({type:Number}),1,"pageSize"],[da({attribute:!1}),1,"scrollConfigs"],[da(),1,"qField"],[da({type:Boolean}),1,"tableDraggable"],[da({type:Boolean}),1,"zebraPattern"],[da({type:Boolean}),1,"storeCheckedByUrl"],[da({attribute:!1}),1,"extraRows"],[da({type:Boolean}),1,"autoSelectParentWhenAllChildrenSelected"],[da({type:Boolean}),1,"thTransparent"],[da({type:Boolean}),1,"showHeader"],[da({attribute:!1}),1,"pagination"],[da(),1,"size"],[da({attribute:!1}),1,"type"],[da({type:Boolean}),1,"shouldUpdateUrlParams"],[da({type:Boolean}),1,"shouldRenderWhenUrlParamsUpdate"],[da({attribute:!1}),1,"selectedRowKeys"],[pa(),2,"filterSourceData"],[pa(),2,"expandAll"]],0,(e=>ui.has((0,s.A)(e))),g.ReactNextElement)),Q();var wi,Ai=a(16768),bi=a(97039),yi=a(99492);let fi,xi,vi,ki,Ci,Si,Ei,Wi,Mi;const{method:Ri,property:Bi}=(0,u.createDecorators)();var Ii=new WeakMap,zi=new WeakSet,_i=new WeakMap,Ni=new WeakMap,Di=new WeakMap,Ti=new WeakMap,Ki=new WeakMap,Pi=new WeakMap;class Li extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,zi),(0,r.A)(this,Ii,(fi(this),!1)),(0,r.A)(this,_i,"normal"),(0,r.A)(this,Ni,!1),(0,r.A)(this,Di,xi(this)),(0,r.A)(this,Ti,(vi(this),ki(this))),(0,r.A)(this,Ki,(Ci(this),Si(this))),(0,r.A)(this,Pi,(Ei(this),Wi(this))),Mi(this)}get isFormItemElement(){return!0}set validateState(e){(0,yi.A)(zi,Hi,this,e),this._render()}get validateState(){return(0,o.A)(zi,this,Oi)}set notRender(e){this.hidden=e,(0,yi.A)(zi,Fi,this,e),this._render()}get notRender(){return(0,o.A)(zi,this,Ui)}get $bindFormItem(){return(0,o.A)(zi,this,ji)}set $bindFormItem(e){(0,yi.A)(zi,$i,this,e),this._render()}get helpBrick(){return(0,h.A)(Di,this)}set helpBrick(e){(0,l.A)(Di,this,e)}get labelBrick(){return(0,h.A)(Ti,this)}set labelBrick(e){(0,l.A)(Ti,this,e)}get labelCol(){return(0,h.A)(Ki,this)}set labelCol(e){(0,l.A)(Ki,this,e)}get wrapperCol(){return(0,h.A)(Pi,this)}set wrapperCol(e){(0,l.A)(Pi,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function Ui(e){return(0,h.A)(Ii,e)}function Fi(e,t){(0,l.A)(Ii,e,t)}function Oi(e){return(0,h.A)(_i,e)}function Hi(e,t){(0,l.A)(_i,e,t)}function ji(e){return(0,h.A)(Ni,e)}function $i(e,t){(0,l.A)(Ni,e,t)}wi=Li,[xi,vi,ki,Ci,Si,Ei,Wi,Mi,fi]=(0,d.A)(wi,[],[[Bi({attribute:!1}),1,"helpBrick"],[Bi({attribute:!1}),1,"labelBrick"],[Bi({attribute:!1}),1,"labelCol"],[Bi({attribute:!1}),1,"wrapperCol"],[Ri(),2,"setNotRender"],[Ri(),2,"getFormElement"]],0,void 0,g.ReactNextElement).e;var qi,Vi=a(71058);let Qi,Gi,Zi,Yi,Xi,Ji,en,tn,an,nn,rn,sn,on,ln,hn,dn,cn,pn,un,gn,mn,wn,An,bn,yn,fn,xn,vn,kn,Cn,Sn,En,Wn,Mn,Rn,Bn,In,zn,_n,Nn,Dn;const{defineElement:Tn,property:Kn,event:Pn}=(0,u.createDecorators)(),Ln=(0,g.wrapBrick)("eo-icon"),Un=(0,g.wrapBrick)("eo-form-item");let Fn;var On=new WeakMap,Hn=new WeakMap,jn=new WeakMap,$n=new WeakMap,qn=new WeakMap,Vn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,Zn=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Jn=new WeakMap,er=new WeakMap,tr=new WeakMap,ar=new WeakMap,ir=new WeakMap,nr=new WeakMap,rr=new WeakMap,sr=new WeakMap,or=new WeakSet;function lr(e){const{shadowRoot:t,options:a,fieldNames:i,value:n,placeholder:r,disabled:s,multiple:o,allowClear:l,showSearch:h,expandTrigger:d,size:u,limit:g,popupPlacement:m,cascaderStyle:w,suffixIcon:A,maxTagCount:b,onChange:y}=e,x=(0,N.useCurrentTheme)(),v=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===x?Ai.A.darkAlgorithm:Ai.A.defaultAlgorithm}},p().createElement(D.N7,{container:t,cache:v,hashPriority:"high"},p().createElement(bi.A,{getPopupContainer:e=>e.parentElement,allowClear:l,disabled:s,multiple:o,expandTrigger:d,fieldNames:i,placeholder:r,size:u,showSearch:h&&{limit:g,filter:(e,t)=>{const a=(null==i?void 0:i.label)||"label",n=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase()));for(let e=0;e<n.length;e++)if(!t.some((t=>t[a].toLowerCase().includes(n[e]))))return!1;return!0}},placement:m,style:w,suffixIcon:A&&p().createElement(Ln,A),maxTagCount:b,value:n,options:a,onChange:(e,t)=>null==y?void 0:y(e,t)})))}qi=class extends Li{constructor(){super(...arguments),(0,n.A)(this,or),(0,r.A)(this,On,Gi(this)),(0,r.A)(this,Hn,(Zi(this),Yi(this))),(0,r.A)(this,jn,(Xi(this),Ji(this))),(0,r.A)(this,$n,(en(this),tn(this))),(0,r.A)(this,qn,(an(this),nn(this,{label:"label",value:"value",children:"children"}))),(0,r.A)(this,Vn,(rn(this),sn(this))),(0,r.A)(this,Qn,(on(this),ln(this))),(0,r.A)(this,Gn,(hn(this),dn(this))),(0,r.A)(this,Zn,(cn(this),pn(this))),(0,r.A)(this,Yn,(un(this),gn(this,!0))),(0,r.A)(this,Xn,(mn(this),wn(this,!0))),(0,r.A)(this,Jn,(An(this),bn(this))),(0,r.A)(this,er,(yn(this),fn(this,"click"))),(0,r.A)(this,tr,(xn(this),vn(this,"bottomLeft"))),(0,r.A)(this,ar,(kn(this),Cn(this))),(0,r.A)(this,ir,(Sn(this),En(this,50))),(0,r.A)(this,nr,(Wn(this),Mn(this))),(0,r.A)(this,rr,(Rn(this),Bn(this))),(0,r.A)(this,sr,(In(this),zn(this))),(0,i.A)(this,"handleOnChange",(Dn(this),(e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,o.A)(or,this,_n).emit({value:e,selectedOptions:t})}))}))}get name(){return(0,h.A)(On,this)}set name(e){(0,l.A)(On,this,e)}get label(){return(0,h.A)(Hn,this)}set label(e){(0,l.A)(Hn,this,e)}get required(){return(0,h.A)(jn,this)}set required(e){(0,l.A)(jn,this,e)}get options(){return(0,h.A)($n,this)}set options(e){(0,l.A)($n,this,e)}get fieldNames(){return(0,h.A)(qn,this)}set fieldNames(e){(0,l.A)(qn,this,e)}get value(){return(0,h.A)(Vn,this)}set value(e){(0,l.A)(Vn,this,e)}get placeholder(){return(0,h.A)(Qn,this)}set placeholder(e){(0,l.A)(Qn,this,e)}get multiple(){return(0,h.A)(Gn,this)}set multiple(e){(0,l.A)(Gn,this,e)}get disabled(){return(0,h.A)(Zn,this)}set disabled(e){(0,l.A)(Zn,this,e)}get allowClear(){return(0,h.A)(Yn,this)}set allowClear(e){(0,l.A)(Yn,this,e)}get showSearch(){return(0,h.A)(Xn,this)}set showSearch(e){(0,l.A)(Xn,this,e)}get suffixIcon(){return(0,h.A)(Jn,this)}set suffixIcon(e){(0,l.A)(Jn,this,e)}get expandTrigger(){return(0,h.A)(er,this)}set expandTrigger(e){(0,l.A)(er,this,e)}get popupPlacement(){return(0,h.A)(tr,this)}set popupPlacement(e){(0,l.A)(tr,this,e)}get size(){return(0,h.A)(ar,this)}set size(e){(0,l.A)(ar,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)(nr,this)}set maxTagCount(e){(0,l.A)(nr,this,e)}get cascaderStyle(){return(0,h.A)(rr,this)}set cascaderStyle(e){(0,l.A)(rr,this,e)}render(){return p().createElement(Un,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(lr,{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:[Gi,Zi,Yi,Xi,Ji,en,tn,an,nn,rn,sn,on,ln,hn,dn,cn,pn,un,gn,mn,wn,An,bn,yn,fn,xn,vn,kn,Cn,Sn,En,Wn,Mn,Rn,Bn,In,zn,_n,Nn,Dn],c:[Fn,Qi]}=(0,d.A)(qi,[Tn("eo-cascader",{alias:["advanced.general-cascader"],styleTexts:[Vi.A]})],[[Kn(),1,"name"],[Kn(),1,"label"],[Kn({type:Boolean}),1,"required"],[Kn({attribute:!1}),1,"options"],[Kn({attribute:!1}),1,"fieldNames"],[Kn({attribute:!1}),1,"value"],[Kn(),1,"placeholder"],[Kn({type:Boolean}),1,"multiple"],[Kn({type:Boolean}),1,"disabled"],[Kn({type:Boolean}),1,"allowClear"],[Kn({type:Boolean}),1,"showSearch"],[Kn({attribute:!1}),1,"suffixIcon"],[Kn(),1,"expandTrigger"],[Kn(),1,"popupPlacement"],[Kn(),1,"size"],[Kn({type:Number}),1,"limit"],[Kn({attribute:!1}),1,"maxTagCount"],[Kn({attribute:!1}),1,"cascaderStyle"],[Pn({type:"cascader.change"}),1,"changeEvent",e=>(0,h.A)(sr,e),(e,t)=>(0,l.A)(sr,e,t)]],0,(e=>or.has((0,s.A)(e))),Li)),Qi();var hr=a(81634),dr=a(56664),cr=a(72245),pr=a(47825);let ur=function(e){return e.TOTAL="TOTAL",e.SELECT_INFO="SELECT_INFO",e.CLEAR="CLEAR",e}({});const gr="bricks/advanced/eo-next-table",mr={showSizeChanger:!0,showTotal:!0},wr={preserveSelectedRowKeys:!0,showSelectInfo:!0};function Ar(e){const t=[];if((0,w.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(Ar(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const a in e)t.push(String(a),Ar(e[a]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}function br(e,t){return Array.isArray(t)?(0,w.get)(e,t):e[t]}function yr(e){let{list:t,columns:a,q:i,searchFields:n,childrenColumnName:r}=e;return i?(0,w.reduce)(t,((e,t)=>{let s=[];if(n?s=n.flatMap((e=>Ar((0,w.get)(t,e)))):a&&(s=a.flatMap((e=>Ar(br(t,e.dataIndex))))),s.some((e=>e.toLowerCase().includes(i))))return e.concat(t);const o=yr({list:t[r],columns:a,q:i,searchFields:n,childrenColumnName:r});if(null!=o&&o.length){const a={...t,[r]:o};return e.concat(a)}return e}),[]):t}function fr(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!==e&&!Array.isArray(e)}function xr(e){let{list:t,rowKey:a,childrenColumnName:i}=e;const n=[];return null==t||t.forEach((e=>{n.push(e[a]);const t=xr({list:e[i],rowKey:a,childrenColumnName:i});n.push(...t)})),[...new Set(n)]}const vr=["green","red","blue","orange","cyan","purple","geekblue","gray"];function kr(e,t){var a,i;if(!t.cellStatus)return null;const n=br(e,null!==(a=t.cellStatus.dataIndex)&&void 0!==a?a:t.dataIndex),r=null===(i=t.cellStatus.mapping)||void 0===i?void 0:i.find((e=>e.value===n));return r?{boxShadow:`inset 4px 0 ${vr.includes(r.leftBorderColor)?`var(--theme-${r.leftBorderColor}-color)`:r.leftBorderColor}`}:null}var Cr=a(81380),Sr=a(87046),Er=a(5414),Wr=a(56550);const Mr=(0,c.forwardRef)((function(e,t){return p().createElement("tr",(0,b.A)({},e,{ref:t}))}));function Rr(e){const{attributes:t,listeners:a,setNodeRef:i,transform:n,transition:r,isDragging:s}=(0,Sr.gl)({id:e["data-row-key"]}),o={...e.style,transform:Wr.Ks.Transform.toString(n),transition:r,cursor:"move",touchAction:"none",...s?{position:"relative",zIndex:999}:{}};return p().createElement(Mr,(0,b.A)({},e,{ref:i,style:o},t,a))}function Br(e){const[t,a]=(0,c.useState)(e.data);return(0,c.useEffect)((()=>{a(e.data)}),Object.values(e.data)),p().createElement(N.ReactUseMultipleBricks,{useBrick:e.useBrick,data:t})}(0,T.initializeReactI18n)(gr,{en:{TOTAL:"Total <el>{{ total }}</el> items",SELECT_INFO:"{{ count }} item selected",SELECT_INFO_plural:"{{ count }} items selected",CLEAR:"Clear"},zh:{TOTAL:"共 <el>{{ total }}</el> 条",SELECT_INFO:"已选择 {{ count }} 项",CLEAR:"清空"}});const Ir=(0,g.wrapBrick)("eo-link"),zr=(0,c.forwardRef)((function(e,t){var a,i,n,r,s;const{shadowRoot:o,rowKey:l,columns:h,cell:d,dataSource:u,frontSearch:g,pagination:m,loading:b,multiSort:x,rowSelection:v,hiddenColumns:k,expandable:C,childrenColumnName:S,rowDraggable:E,searchFields:W,size:M,showHeader:R,bordered:B,scrollConfig:I,optimizedColumns:z,themeVariant:_,onPageChange:U,onPageSizeChange:F,onSort:O,onRowSelect:H,onRowExpand:j,onExpandedRowsChange:$,onRowDrag:q}=e,{t:V}=(0,T.useTranslation)(gr),Q=(0,c.useMemo)((()=>(0,D.VC)()),[]),G=(0,N.useCurrentTheme)(),Z="zh"===K.i18n.language.split("-")[0]?L.A:P.A,Y=(0,Cr.FR)((0,Cr.MS)(Cr.AN,{activationConstraint:{distance:1}})),[X,J]=(0,c.useState)(null==u?void 0:u.list),ee=(0,c.useMemo)((()=>{var e;return null!==(e=null==X?void 0:X.map((e=>e[l])))&&void 0!==e?e:[]}),[X,l]),[{page:te,pageSize:ae},ie]=(0,c.useState)({page:null!==(a=null==u?void 0:u.page)&&void 0!==a?a:1,pageSize:null!==(i=null==u?void 0:u.pageSize)&&void 0!==i?i:20}),[ne,re]=(0,c.useState)(e.selectedRowKeys),[se,oe]=(0,c.useState)(null!==(n=e.expandedRowKeys)&&void 0!==n?n:[]),[le,he]=(0,c.useState)(e.sort),de=(0,c.useMemo)((()=>{var e;return null==u||null===(e=u.list)||void 0===e?void 0:e.some((e=>{var t;return null===(t=e[S])||void 0===t?void 0:t.length}))}),[null==u?void 0:u.list,S]);(0,c.useEffect)((()=>{re(e.selectedRowKeys)}),[e.selectedRowKeys]),(0,c.useEffect)((()=>{var t;oe(null!==(t=e.expandedRowKeys)&&void 0!==t?t:[])}),[e.expandedRowKeys]),(0,c.useEffect)((()=>{fr(C)&&C.defaultExpandAllRows&&oe(xr({list:null==u?void 0:u.list,rowKey:l,childrenColumnName:S}))}),[]),(0,c.useEffect)((()=>{var e,t;J(null==u?void 0:u.list),ie({page:null!==(e=null==u?void 0:u.page)&&void 0!==e?e:1,pageSize:null!==(t=null==u?void 0:u.pageSize)&&void 0!==t?t:20})}),[u]),(0,c.useEffect)((()=>{he(e.sort)}),[e.sort]);const ce=(0,c.useMemo)((()=>{const e=new Set(k),t=new Set(z),a=(0,w.keyBy)([].concat(le||[]),"columnKey");return null==h?void 0:h.filter((t=>!e.has(t.key))).map((e=>{const i=a[e.key],n=(t,a,i)=>function(e,t,a){const i=null==e,n=null==t;if(i||n){const e="descend"===a?-1:1;return i&&n?0:i?e:-e}return e==t?0:e>t?1:-1}(br(t,e.dataIndex),br(a,e.dataIndex),i);return{...e,...e.sortable?{sorter:x?{compare:g?n:void 0,multiple:e.sortPriority}:!g||n,sortOrder:i?i.order:null}:{},...t.has(e.key)?{shouldCellUpdate:(e,t)=>e!==t}:{},render(t,a,i){const n={cellData:t,rowData:a,columnIndex:i,rowIndex:i,columnKey:e.key};return null!=d&&d.useBrick?p().createElement(Br,{useBrick:d.useBrick,data:n}):e.useBrick?p().createElement(Br,{useBrick:e.useBrick,data:n}):p().createElement(p().Fragment,null,t)},title(){var t,a;const i={title:e.title,columnKey:e.key};return null!=d&&null!==(t=d.header)&&void 0!==t&&t.useBrick?p().createElement(Br,{useBrick:d.header.useBrick,data:i}):null!==(a=e.headerBrick)&&void 0!==a&&a.useBrick?p().createElement(Br,{useBrick:e.headerBrick.useBrick,data:i}):p().createElement(p().Fragment,null,e.title)},onCell:t=>({colSpan:e.cellColSpanKey?t[e.cellColSpanKey]:void 0,rowSpan:e.cellRowSpanKey?t[e.cellRowSpanKey]:void 0,style:{...e.cellStyle,...kr(t,e),verticalAlign:e.verticalAlign}}),onHeaderCell:()=>({style:e.headerStyle})}}))}),[d,h,k,x,le,g,z]),pe=(0,c.useMemo)((()=>{if(!1!==v&&!(0,w.isNil)(v))return{...wr,...!0===v?{}:v}}),[v]),ue=(0,c.useMemo)((()=>!1!==m&&{...mr,...m}),[m]),ge=(0,c.useMemo)((()=>de||!de&&"children"!==S?fr(C)?C:{}:!1===C||(0,w.isNil)(C)?void 0:fr(C)?C:{}),[C,de,S]);(0,c.useImperativeHandle)(t,(()=>({search:e=>{let{q:t}=e;const a=yr({q:(null==t?void 0:t.trim().toLowerCase())||"",list:null==u?void 0:u.list,columns:h,searchFields:W,childrenColumnName:S});J(a),ie((e=>{if(1!==e.page){var t;const a={page:1,pageSize:null!==(t=e.pageSize)&&void 0!==t?t:20};return null==U||U(a),a}return e}))}})));const me=(0,c.useCallback)((e=>{let{active:t,over:a}=e;a&&t.id!==(null==a?void 0:a.id)&&J((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const i=e.findIndex((e=>e[l]===t.id)),n=e.findIndex((e=>e[l]===(null==a?void 0:a.id))),r=(0,Sr.be)(e,i,n);return null==q||q({list:r,active:e[i],over:e[n]}),r}))}),[l,q]);return p().createElement(f.Ay,{locale:Z,theme:{algorithm:"dark-v2"===G?Ai.A.darkAlgorithm:Ai.A.defaultAlgorithm,components:{Table:{headerBorderRadius:"var(--eo-next-table-header-border-radius)",headerSplitColor:"none",..."elevo"===_?{headerBg:"none",headerSortActiveBg:"none",headerSortHoverBg:"none",bodySortBg:"none",rowHoverBg:"rgba(189, 191, 212, 0.1)"}:{headerBg:"var(--antd-table-header-bg)",headerSortActiveBg:"var(--antd-table-header-sort-active-bg)",headerSortHoverBg:"var(--antd-table-header-sort-active-bg)",bodySortBg:"var(--antd-table-header-overwrite-sort-td-active-bg)"},...B?{borderColor:"var(--theme-gray-border-color)"}:null}}},getPopupContainer:()=>o},p().createElement(D.N7,{container:o,cache:Q,hashPriority:"high"},p().createElement(Cr.Mp,{sensors:Y,collisionDetection:Cr.fp,modifiers:[Er.FN,Er.Mk],onDragEnd:me},p().createElement(Sr.gB,{items:ee,strategy:Sr._G},p().createElement(y.A,{components:{body:{row:E&&!de?Rr:Mr}},loading:b,rowKey:l,columns:ce,dataSource:X,size:M,showHeader:R,bordered:B,scroll:!1===I?void 0:I,pagination:!1!==ue&&{...ue,total:null==u?void 0:u.total,current:te,pageSize:ae,showSizeChanger:{showSearch:!1,variant:"borderless"},showTotal:e=>p().createElement("div",{className:"pagination-wrapper"},ue.showTotal?p().createElement("span",{className:"pagination-total-text"},p().createElement(pr.Trans,{i18nKey:V(ur.TOTAL),values:{total:e},components:{el:p().createElement("strong",{className:"pagination-total-number"})}})):null,null!=pe&&pe.showSelectInfo&&null!=ne&&ne.length?p().createElement("span",{className:"select-info"},p().createElement("span",null,V(ur.SELECT_INFO,{count:ne.length})),p().createElement(Ir,{onClick:()=>{re([]),null==H||H({keys:[],rows:[],info:{type:"none"}})}},V(ur.CLEAR))):null)},rowSelection:void 0===pe?void 0:{...pe,selectedRowKeys:ne,getCheckboxProps(e){const t={rowData:e};return{disabled:void 0!==pe.rowDisabled&&(0,A.checkIfByTransform)({if:pe.rowDisabled},t)}},onChange(e,t,a){re(e),null==H||H({keys:e,rows:t,info:a})}},expandable:void 0===ge?void 0:{...ge,childrenColumnName:S,expandedRowKeys:se,rowExpandable(e){const t={rowData:e};return void 0===ge.rowExpandable||(0,A.checkIfByTransform)({if:ge.rowExpandable},t)},expandedRowRender:null!==(r=ge.expandedRowBrick)&&void 0!==r&&r.useBrick?(e,t,a)=>{const i={rowData:e,index:t,indent:a};return p().createElement(Br,{useBrick:ge.expandedRowBrick.useBrick,data:i})}:void 0,expandIcon:null!==(s=ge.expandIconBrick)&&void 0!==s&&s.useBrick?e=>{let{expanded:t,expandable:a,record:i,onExpand:n}=e;const r={rowData:i,expanded:t,expandable:a};return p().createElement("span",{onClick:e=>a&&n(i,e)},p().createElement(Br,{useBrick:ge.expandIconBrick.useBrick,data:r}))}:_r,onExpand:(e,t)=>{null==j||j({expanded:e,record:t})},onExpandedRowsChange:e=>{const t=[...e];oe(t),null==$||$(t)}},onChange:(e,t,a,i)=>{switch(i.action){case"paginate":ie((t=>{if(t.pageSize!==e.pageSize){var a;const t={page:1,pageSize:null!==(a=e.pageSize)&&void 0!==a?a:20};return null==F||F(t),null==U||U(t),t}if(t.page!==e.current){var i,n;const t={page:null!==(i=e.current)&&void 0!==i?i:1,pageSize:null!==(n=e.pageSize)&&void 0!==n?n:20};return null==U||U(t),t}return t}));break;case"sort":{const e=Array.isArray(a)?a.filter((e=>e.order)).map((e=>({columnKey:e.columnKey,order:e.order}))):a.order?{columnKey:a.columnKey,order:a.order}:void 0;he(e),null==O||O(e)}}},className:"next-table"})))))}));function _r(e){let{expanded:t,expandable:a,onExpand:i,record:n}=e;const r=t?dr.A:cr.A;return p().createElement(r,{className:W()("expand-icon",{invisible:!a}),onClick:e=>a&&i(n,e)})}var Nr=a(72591),Dr=a.n(Nr),Tr=a(1740),Kr=a.n(Tr),Pr=a(88128),Lr=a.n(Pr),Ur=a(30855),Fr=a.n(Ur),Or=a(93051),Hr=a.n(Or),jr=a(73656),$r=a.n(jr),qr=a(61098),Vr={};Vr.styleTagTransform=$r(),Vr.setAttributes=Fr(),Vr.insert=Lr().bind(null,"head"),Vr.domAPI=Kr(),Vr.insertStyleElement=Hr(),Dr()(qr.A,Vr),qr.A&&qr.A.locals&&qr.A.locals;var Qr,Gr=a(3679);let Zr,Yr,Xr,Jr,es,ts,as,is,ns,rs,ss,os,ls,hs,ds,cs,ps,us,gs,ms,ws,As,bs,ys,fs,xs,vs,ks,Cs,Ss,Es,Ws,Ms,Rs,Bs,Is,zs,_s,Ns,Ds,Ts,Ks,Ps,Ls,Us,Fs,Os,Hs,js,$s,qs,Vs,Qs,Gs,Zs,Ys,Xs,Js,eo,to,ao,io,no,ro,so,oo,lo,ho,co,po,uo,go,mo,wo,Ao,bo,yo,fo,xo,vo,ko,Co;const{defineElement:So,property:Eo,method:Wo,event:Mo}=(0,u.createDecorators)();let Ro;var Bo=new WeakMap,Io=new WeakMap,zo=new WeakMap,_o=new WeakMap,No=new WeakMap,Do=new WeakMap,To=new WeakMap,Ko=new WeakMap,Po=new WeakMap,Lo=new WeakMap,Uo=new WeakMap,Fo=new WeakMap,Oo=new WeakMap,Ho=new WeakMap,jo=new WeakMap,$o=new WeakMap,qo=new WeakMap,Vo=new WeakMap,Qo=new WeakMap,Go=new WeakMap,Zo=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,Jo=new WeakMap,el=new WeakMap,tl=new WeakMap,al=new WeakSet,il=new WeakMap,nl=new WeakMap,rl=new WeakMap,sl=new WeakMap,ol=new WeakMap,ll=new WeakMap,hl=new WeakMap,dl=new WeakMap,cl=new WeakMap,pl=new WeakMap,ul=new WeakMap,gl=new WeakMap,ml=new WeakMap,wl=new WeakMap;class Al extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,al),(0,r.A)(this,Bo,(Zr(this),(0,c.createRef)())),(0,r.A)(this,Io,Xr(this,"key")),(0,r.A)(this,zo,(Jr(this),es(this))),(0,r.A)(this,_o,(ts(this),as(this))),(0,r.A)(this,No,(is(this),ns(this))),(0,r.A)(this,Do,(rs(this),ss(this))),(0,r.A)(this,To,(os(this),ls(this))),(0,r.A)(this,Ko,(hs(this),ds(this))),(0,r.A)(this,Po,(cs(this),ps(this))),(0,r.A)(this,Lo,(us(this),gs(this))),(0,r.A)(this,Uo,(ms(this),ws(this))),(0,r.A)(this,Fo,(As(this),bs(this))),(0,r.A)(this,Oo,(ys(this),fs(this))),(0,r.A)(this,Ho,(xs(this),vs(this))),(0,r.A)(this,jo,(ks(this),Cs(this))),(0,r.A)(this,$o,(Ss(this),Es(this,"children"))),(0,r.A)(this,qo,(Ws(this),Ms(this))),(0,r.A)(this,Vo,(Rs(this),Bs(this))),(0,r.A)(this,Qo,(Is(this),zs(this,"large"))),(0,r.A)(this,Go,(_s(this),Ns(this,!0))),(0,r.A)(this,Zo,(Ds(this),Ts(this))),(0,r.A)(this,Yo,(Ks(this),Ps(this,{x:!0}))),(0,r.A)(this,Xo,(Ls(this),Us(this))),(0,r.A)(this,Jo,(Fs(this),Os(this))),(0,r.A)(this,el,(Hs(this),js(this))),(0,r.A)(this,tl,($s(this),qs(this))),(0,r.A)(this,il,(Gs(this),e=>{(0,o.A)(al,this,Vs).emit(e)})),(0,r.A)(this,nl,Zs(this)),(0,r.A)(this,rl,(Js(this),e=>{(0,o.A)(al,this,Ys).emit(e)})),(0,r.A)(this,sl,eo(this)),(0,r.A)(this,ol,(io(this),e=>{(0,o.A)(al,this,to).emit(e)})),(0,r.A)(this,ll,no(this)),(0,r.A)(this,hl,(oo(this),lo(this))),(0,r.A)(this,dl,(po(this),e=>{(0,o.A)(al,this,ro).emit(e),(0,o.A)(al,this,ho).emit(e.rows)})),(0,r.A)(this,cl,uo(this)),(0,r.A)(this,pl,(wo(this),e=>{(0,o.A)(al,this,go).emit(e)})),(0,r.A)(this,ul,Ao(this)),(0,r.A)(this,gl,(fo(this),e=>{(0,o.A)(al,this,bo).emit(e)})),(0,r.A)(this,ml,xo(this)),(0,r.A)(this,wl,(Co(this),e=>{(0,o.A)(al,this,vo).emit(e)}))}get rowKey(){return(0,h.A)(Io,this)}set rowKey(e){(0,l.A)(Io,this,e)}get columns(){return(0,h.A)(zo,this)}set columns(e){(0,l.A)(zo,this,e)}get cell(){return(0,h.A)(_o,this)}set cell(e){(0,l.A)(_o,this,e)}get dataSource(){return(0,h.A)(No,this)}set dataSource(e){(0,l.A)(No,this,e)}get frontSearch(){return(0,h.A)(Do,this)}set frontSearch(e){(0,l.A)(Do,this,e)}get pagination(){return(0,h.A)(To,this)}set pagination(e){(0,l.A)(To,this,e)}get loading(){return(0,h.A)(Ko,this)}set loading(e){(0,l.A)(Ko,this,e)}get multiSort(){return(0,h.A)(Po,this)}set multiSort(e){(0,l.A)(Po,this,e)}get sort(){return(0,h.A)(Lo,this)}set sort(e){(0,l.A)(Lo,this,e)}get rowSelection(){return(0,h.A)(Uo,this)}set rowSelection(e){(0,l.A)(Uo,this,e)}get selectedRowKeys(){return(0,h.A)(Fo,this)}set selectedRowKeys(e){(0,l.A)(Fo,this,e)}get hiddenColumns(){return(0,h.A)(Oo,this)}set hiddenColumns(e){(0,l.A)(Oo,this,e)}get expandable(){return(0,h.A)(Ho,this)}set expandable(e){(0,l.A)(Ho,this,e)}get expandedRowKeys(){return(0,h.A)(jo,this)}set expandedRowKeys(e){(0,l.A)(jo,this,e)}get childrenColumnName(){return(0,h.A)($o,this)}set childrenColumnName(e){(0,l.A)($o,this,e)}get rowDraggable(){return(0,h.A)(qo,this)}set rowDraggable(e){(0,l.A)(qo,this,e)}get searchFields(){return(0,h.A)(Vo,this)}set searchFields(e){(0,l.A)(Vo,this,e)}get size(){return(0,h.A)(Qo,this)}set size(e){(0,l.A)(Qo,this,e)}get showHeader(){return(0,h.A)(Go,this)}set showHeader(e){(0,l.A)(Go,this,e)}get bordered(){return(0,h.A)(Zo,this)}set bordered(e){(0,l.A)(Zo,this,e)}get scrollConfig(){return(0,h.A)(Yo,this)}set scrollConfig(e){(0,l.A)(Yo,this,e)}get optimizedColumns(){return(0,h.A)(Xo,this)}set optimizedColumns(e){(0,l.A)(Xo,this,e)}get injectChartV2Styles(){return(0,h.A)(Jo,this)}set injectChartV2Styles(e){(0,l.A)(Jo,this,e)}get themeVariant(){return(0,h.A)(el,this)}set themeVariant(e){(0,l.A)(el,this,e)}search(e){var t;null===(t=(0,h.A)(Bo,this).current)||void 0===t||t.search(e)}render(){return p().createElement(p().Fragment,null,this.injectChartV2Styles&&p().createElement("style",null,Gr.A),p().createElement(zr,{ref:(0,h.A)(Bo,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,themeVariant:this.themeVariant,optimizedColumns:this.optimizedColumns,onPageChange:(0,h.A)(il,this),onPageSizeChange:(0,h.A)(rl,this),onSort:(0,h.A)(ol,this),onRowSelect:(0,h.A)(dl,this),onRowExpand:(0,h.A)(pl,this),onExpandedRowsChange:(0,h.A)(gl,this),onRowDrag:(0,h.A)(wl,this)}))}}Qr=Al,({e:[Xr,Jr,es,ts,as,is,ns,rs,ss,os,ls,hs,ds,cs,ps,us,gs,ms,ws,As,bs,ys,fs,xs,vs,ks,Cs,Ss,Es,Ws,Ms,Rs,Bs,Is,zs,_s,Ns,Ds,Ts,Ks,Ps,Ls,Us,Fs,Os,Hs,js,$s,qs,Vs,Qs,Gs,Zs,Ys,Xs,Js,eo,to,ao,io,no,ro,so,oo,lo,ho,co,po,uo,go,mo,wo,Ao,bo,yo,fo,xo,vo,ko,Co,Zr],c:[Ro,Yr]}=(0,d.A)(Qr,[So("eo-next-table",{styleTexts:[hr.A]})],[[Eo(),1,"rowKey"],[Eo({attribute:!1}),1,"columns"],[Eo({attribute:!1}),1,"cell"],[Eo({attribute:!1}),1,"dataSource"],[Eo({type:Boolean}),1,"frontSearch"],[Eo({attribute:!1}),1,"pagination"],[Eo({type:Boolean}),1,"loading"],[Eo({type:Boolean}),1,"multiSort"],[Eo({attribute:!1}),1,"sort"],[Eo({attribute:!1}),1,"rowSelection"],[Eo({attribute:!1}),1,"selectedRowKeys"],[Eo({attribute:!1}),1,"hiddenColumns"],[Eo({attribute:!1}),1,"expandable"],[Eo({attribute:!1}),1,"expandedRowKeys"],[Eo(),1,"childrenColumnName"],[Eo({type:Boolean}),1,"rowDraggable"],[Eo({attribute:!1}),1,"searchFields"],[Eo(),1,"size"],[Eo({type:Boolean}),1,"showHeader"],[Eo({type:Boolean}),1,"bordered"],[Eo({attribute:!1}),1,"scrollConfig"],[Eo({attribute:!1}),1,"optimizedColumns"],[Eo({type:Boolean}),1,"injectChartV2Styles"],[Eo(),1,"themeVariant"],[Wo(),2,"search"],[Mo({type:"page.change"}),1,"pageChangeEvent",e=>(0,h.A)(tl,e),(e,t)=>(0,l.A)(tl,e,t)],[Mo({type:"page.size.change"}),1,"pageSizeChangeEvent",e=>(0,h.A)(nl,e),(e,t)=>(0,l.A)(nl,e,t)],[Mo({type:"sort.change"}),1,"sortChangeEvent",e=>(0,h.A)(sl,e),(e,t)=>(0,l.A)(sl,e,t)],[Mo({type:"row.select"}),1,"rowSelectEvent",e=>(0,h.A)(ll,e),(e,t)=>(0,l.A)(ll,e,t)],[Mo({type:"row.select.v2"}),1,"rowSelectV2Event",e=>(0,h.A)(hl,e),(e,t)=>(0,l.A)(hl,e,t)],[Mo({type:"row.expand"}),1,"rowExpandEvent",e=>(0,h.A)(cl,e),(e,t)=>(0,l.A)(cl,e,t)],[Mo({type:"expanded.rows.change"}),1,"expandedRowsChangeEvent",e=>(0,h.A)(ul,e),(e,t)=>(0,l.A)(ul,e,t)],[Mo({type:"row.drag"}),1,"rowDragEvent",e=>(0,h.A)(ml,e),(e,t)=>(0,l.A)(ml,e,t)]],0,(e=>wl.has((0,s.A)(e))),g.ReactNextElement)),Yr();var bl,yl=a(49523),fl=a(69113),xl=a(45833),vl=a(91116);let kl,Cl,Sl,El,Wl,Ml,Rl,Bl,Il,zl,_l,Nl,Dl,Tl,Kl,Pl,Ll,Ul,Fl,Ol,Hl,jl,$l,ql,Vl,Ql;const{defineElement:Gl,property:Zl,event:Yl,method:Xl}=(0,u.createDecorators)(),Jl=(0,g.wrapBrick)("eo-button"),eh=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),th=(0,g.wrapBrick)("eo-icon"),ah=(0,g.wrapBrick)("eo-checkbox",{onChange:"change"}),ih=(0,yl.unwrapProvider)("basic.show-dialog"),nh=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:rh}=fl.auth.getAuth(),sh=(0,c.forwardRef)((function(e,t){let{cardTitle:a="卡片列表",layouts:i,componentList:n=[],isEdit:r,onChange:s,onSave:o,onCancel:l,onActionClick:h}=e;const d=(0,c.useMemo)((()=>(0,xl.WidthProvider)(xl.Responsive)),[]),u=(0,c.useRef)(null),g=(0,c.useRef)(null),m=(0,c.useRef)(null!=i?i:[]),[w,A]=(0,c.useState)(m.current),[b,y]=(0,c.useState)(3),[f,x]=(0,c.useState)(),v=(0,c.useCallback)((e=>{m.current=e,A(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:v})));const k=(0,c.useCallback)((e=>{v(e),null==s||s(e)}),[s,v]),C=(0,c.useCallback)((e=>{if(!r)return;let t=!0;for(let i=0;i<e.length;i++){const{x:n,w:r,y:s,h:o,i:l,minH:h}=e[i];if(r>1&&n>0){t=!1;break}if(1===r&&n<2){const t=e.find((e=>e.i!==l&&1===e.w&&e.y===s&&n<2));var a;t&&(e[i].minH=null!==(a=e[i].minH)&&void 0!==a?a:o,e[i].h=Math.max(t.h,o))}else e[i].h=null!=h?h:o,e[i].minH=void 0}k(t?e:m.current.map((e=>{const{w:t,i:a}=e,i=`${nh(a)}:${Math.random()}`;let n=e.x;return t>1&&n>0&&(n=0),{...e,x:n,i}})))}),[k,r]),S=(0,c.useCallback)((e=>{const t=e.detail.map((e=>e.value)),a=w.map((e=>nh(e.i))),i=e.detail.filter((e=>!a.includes(e.key))).map((e=>({...e.position,x:e.w>1?0:2*w.length%b,y:1/0})));k(w.filter((e=>t.includes(nh(e.i)))).concat(i))}),[w,k,b]),E=()=>{k([])},W=(0,c.useCallback)((()=>{null==o||o(w.map((e=>({...e,i:nh(e.i)}))))}),[w,o]),M=(0,c.useCallback)(((e,t)=>{var a;e.stopPropagation(),k(null!==(a=w.filter((e=>nh(e.i)!==t.key)))&&void 0!==a?a:[])}),[k,w]),R=e=>{e.preventDefault()},B=(0,c.useMemo)((()=>w.map((e=>{var t;const a=n.find((t=>t.key===nh(e.i)));return a?p().createElement("div",{key:e.i,"data-grid":{...null!==(t=a.position)&&void 0!==t?t:{},...e},style:a.style,className:"drag-box"},r&&p().createElement("div",{className:"edit-mask",onMouseDown:R}),p().createElement(N.ReactUseBrick,{useBrick:a.useBrick}),r&&p().createElement(th,{icon:"delete",lib:"antd",className:"delete-icon",onClick:e=>M(e,a)})):null})).filter(Boolean)),[n,M,w,r]),I=(0,c.useMemo)((()=>n.map((e=>({...e,label:e.title,value:e.key})))),[n]),z=(0,c.useMemo)((()=>w.map((e=>nh(e.i)))),[w]),_=(0,c.useCallback)((()=>{if(g&&r){var e,t;const{top:a}=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!==a&&x({height:document.body.clientHeight-a,overflow:"scroll"})}}),[r]);return(0,c.useEffect)((()=>{if(r)return _(),v(i||[]),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}}),[r,_,i,v]),p().createElement("div",{className:"grid-layout-wrapper",ref:u},r&&p().createElement("div",{className:"component-wrapper"},p().createElement("div",{className:"component-title"},a),p().createElement("div",{className:"component-list"},p().createElement(ah,{options:I,value:z,onChange:S}),p().createElement("slot",{name:"toolbar"}))),p().createElement("div",{className:"layout-wrapper",ref:g,style:f},r&&p().createElement("div",{className:"actions-wrapper"},p().createElement(Jl,{type:"primary",onClick:W},"保存"),p().createElement(Jl,{onClick:()=>{null==l||l()}},"取消"),p().createElement(eh,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...rh?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?ih({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(E):null==h||h(e,(null!=w?w:[]).map((e=>({...e,i:nh(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,a)=>{var i;const n=null===(i=u.current)||void 0===i?void 0:i.querySelector(".react-grid-placeholder");n&&(a.w>1&&a.x>0?!n.classList.contains("forbidden")&&n.classList.add("forbidden"):n.classList.contains("forbidden")&&n.classList.remove("forbidden"))},onLayoutChange:C,onBreakpointChange:(e,t)=>{y(t)}},B)))}));let oh;var lh=new WeakMap,hh=new WeakMap,dh=new WeakMap,ch=new WeakMap,ph=new WeakMap,uh=new WeakMap,gh=new WeakSet,mh=new WeakMap,wh=new WeakMap,Ah=new WeakMap,bh=new WeakMap,yh=new WeakMap,fh=new WeakMap,xh=new WeakMap;class vh extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,gh),(0,r.A)(this,lh,(kl(this),(0,c.createRef)())),(0,r.A)(this,hh,Sl(this)),(0,r.A)(this,dh,(El(this),Wl(this))),(0,r.A)(this,ch,(Ml(this),Rl(this))),(0,r.A)(this,ph,(Bl(this),Il(this))),(0,r.A)(this,uh,(zl(this),_l(this))),(0,r.A)(this,mh,(Tl(this),e=>{(0,o.A)(gh,this,Nl).emit(e)})),(0,r.A)(this,wh,Kl(this)),(0,r.A)(this,Ah,(Ul(this),e=>{(0,o.A)(gh,this,Pl).emit(e)})),(0,r.A)(this,bh,Fl(this)),(0,r.A)(this,yh,(jl(this),()=>{(0,o.A)(gh,this,Ol).emit()})),(0,r.A)(this,fh,$l(this)),(0,r.A)(this,xh,(Ql(this),(e,t)=>{(0,o.A)(gh,this,ql).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(hh,this)}set cardTitle(e){(0,l.A)(hh,this,e)}get isEdit(){return(0,h.A)(dh,this)}set isEdit(e){(0,l.A)(dh,this,e)}get layouts(){return(0,h.A)(ch,this)}set layouts(e){(0,l.A)(ch,this,e)}get componentList(){return(0,h.A)(ph,this)}set componentList(e){(0,l.A)(ph,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(lh,this).current)||void 0===t||t.setLayouts(e)}render(){return p().createElement(sh,{cardTitle:this.cardTitle,layouts:this.layouts,componentList:this.componentList,isEdit:this.isEdit,onChange:(0,h.A)(mh,this),onSave:(0,h.A)(Ah,this),onCancel:(0,h.A)(yh,this),onActionClick:(0,h.A)(xh,this),ref:(0,h.A)(lh,this)})}}bl=vh,({e:[Sl,El,Wl,Ml,Rl,Bl,Il,zl,_l,Nl,Dl,Tl,Kl,Pl,Ll,Ul,Fl,Ol,Hl,jl,$l,ql,Vl,Ql,kl],c:[oh,Cl]}=(0,d.A)(bl,[Gl("eo-workbench-layout",{styleTexts:[vl.A]})],[[Zl(),1,"cardTitle"],[Zl({type:Boolean}),1,"isEdit"],[Zl({attribute:!1}),1,"layouts"],[Zl({attribute:!1}),1,"componentList"],[Yl({type:"change"}),1,"changeEvent",e=>(0,h.A)(uh,e),(e,t)=>(0,l.A)(uh,e,t)],[Yl({type:"save"}),1,"saveEvent",e=>(0,h.A)(wh,e),(e,t)=>(0,l.A)(wh,e,t)],[Yl({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(bh,e),(e,t)=>(0,l.A)(bh,e,t)],[Yl({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)(fh,e),(e,t)=>(0,l.A)(fh,e,t)],[Xl(),2,"setLayouts"]],0,(e=>xh.has((0,s.A)(e))),g.ReactNextElement)),Cl();var kh=a(42599),Ch=a(61590),Sh={};Sh.styleTagTransform=$r(),Sh.setAttributes=Fr(),Sh.insert=Lr().bind(null,"head"),Sh.domAPI=Kr(),Sh.insertStyleElement=Hr(),Dr()(Ch.A,Sh);const Eh=Ch.A&&Ch.A.locals?Ch.A.locals:void 0,Wh=(0,g.wrapBrick)("eo-icon"),Mh=["x","y","w","h"];function Rh(e){const{component:t,isEdit:a,onDelete:i,layout:n}=e,r=(0,c.useMemo)((()=>(0,w.cloneDeep)(t.useBrick)),[t.useBrick]),[s,o]=(0,c.useState)((()=>(0,w.omit)({...n,cardWidth:n.cardWidth||t.position.w},Mh)));(0,c.useEffect)((()=>{const e=(0,w.omit)({...n,cardWidth:n.cardWidth||t.position.w},Mh);(0,w.isEqual)(e,s)||o(e)}),[n,s,t.position.w]);const l=(0,c.useMemo)((()=>1!==(null==s?void 0:s.cardBorderWidth)?(null==s?void 0:s.cardBorderWidth)-1:0),[s]),h=(0,c.useMemo)((()=>45+l),[l]),d=(0,c.useMemo)((()=>{const e=15+l;return{top:e,right:e}}),[l]);return p().createElement("div",{className:Eh.itemWrapper},a&&p().createElement("div",{className:Eh.editMask,style:{top:h},onMouseDown:e=>{e.preventDefault()},"data-testid":"droppable-component-layout-item-edit-mask"}),p().createElement(N.ReactUseBrick,{useBrick:r,data:s}),a&&p().createElement(Wh,{icon:"delete",lib:"antd",style:d,className:Eh.deleteIcon,onClick:e=>{e.preventDefault(),null==i||i(n.i)},"data-testid":"droppable-component-layout-item-delete"}))}const Bh=(0,c.memo)(Rh);var Ih=a(55515),zh={};zh.styleTagTransform=$r(),zh.setAttributes=Fr(),zh.insert=Lr().bind(null,"head"),zh.domAPI=Kr(),zh.insertStyleElement=Hr(),Dr()(Ih.A,zh);const _h=Ih.A&&Ih.A.locals?Ih.A.locals:void 0;function Nh(e){const{component:t,onClick:a,onDragStart:i,onDragEnd:n}=e,{key:r,title:s,thumbnail:o}=t;return p().createElement("div",{className:_h.componentItemWrapper,"data-testid":"draggable-component-menu-item"},p().createElement("div",{className:_h.componentItemTitle},s),p().createElement("div",{className:_h.componentItemContent,draggable:!0,onDragStart:e=>{e.dataTransfer.setData("text/plain",r),null==i||i()},onDragEnd:n,onClick:a,"data-testid":"draggable-component-menu-item-thumbnail"},p().createElement("img",{className:_h.componentItemThumbnail,src:o,alt:s})))}const Dh={cardWidth:2,showMoreIcon:!1,cardBorderStyle:"solid",cardTitleFontSize:16,cardBorderWidth:1,cardBorderRadius:6,cardTitleColor:"#262626",cardBorderColor:"#e8e8e8",cardBgType:"none"},Th=e=>{var t;const a={"notice-card":{moreIconLink:"/announcement-management",showMoreIcon:!0,moreIconText:"更多"},"cmdb-object-collect-card":{moreIconLink:"/cmdb-model-management",showMoreIcon:!0,moreIconText:"更多"},"itsm-todos":{moreIconLink:"/itsc-workbench/workbench?activeKey=run",showMoreIcon:!0,moreIconText:"更多"},abnormalResourceInspectionResults:{moreIconLink:"/automatic-inspection/suites",showMoreIcon:!0,moreIconText:"更多"},abnormalSystemInspectionResults:{moreIconLink:"/automatic-inspection/system/list",showMoreIcon:!0,moreIconText:"更多"}};return{...Dh,...null!==(t=null==a?void 0:a[e])&&void 0!==t?t:{}}};var Kh=a(89739),Ph={};Ph.styleTagTransform=$r(),Ph.setAttributes=Fr(),Ph.insert=Lr().bind(null,"head"),Ph.domAPI=Kr(),Ph.insertStyleElement=Hr(),Dr()(Kh.A,Ph);const Lh=Kh.A&&Kh.A.locals?Kh.A.locals:void 0;var Uh,Fh=a(85689),Oh={};let Hh,jh,$h,qh,Vh,Qh,Gh,Zh,Yh,Xh,Jh,ed,td,ad,id,nd,rd,sd,od,ld,hd,dd,cd,pd,ud,gd,md,wd,Ad,bd,yd,fd,xd,vd;Oh.styleTagTransform=$r(),Oh.setAttributes=Fr(),Oh.insert=Lr().bind(null,"head"),Oh.domAPI=Kr(),Oh.insertStyleElement=Hr(),Dr()(Fh.A,Oh),Fh.A&&Fh.A.locals&&Fh.A.locals;const{defineElement:kd,property:Cd,event:Sd,method:Ed}=(0,u.createDecorators)(),Wd=(0,g.wrapBrick)("eo-button"),Md=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),Rd=(0,yl.unwrapProvider)("basic.show-dialog"),Bd=`${window.location.origin}${(0,A.getBasePath)()}api/gateway/object_store.object_store.GetObject/api/v1/objectStore/bucket/sys-setting/object/`,Id=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:zd}=fl.auth.getAuth(),_d=(0,c.forwardRef)((function(e,t){let{cardTitle:a="卡片列表",layouts:i,toolbarBricks:n,componentList:r=[],isEdit:s,showSettingButton:o,onChange:l,onSave:h,onCancel:d,onActionClick:u,onSetting:g}=e;const m=(0,c.useMemo)((()=>(0,xl.WidthProvider)(xl.Responsive)),[]),A=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useRef)(null!=i?i:[]),[f,x]=(0,c.useState)(y.current),v=(0,c.useMemo)((()=>(0,w.keyBy)(r,"key")),[r]),[k,C]=(0,c.useState)(3),[S,E]=(0,c.useState)(),M=(0,c.useRef)(),R=(0,c.useCallback)((e=>{y.current=e,x(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:R})));const B=(0,c.useCallback)((e=>{R(e),null==l||l(e)}),[l,R]),I=(0,c.useCallback)((e=>{if(!s)return;if(e.some((e=>e.isDraggable)))return;const t=(0,w.keyBy)(f,"i");for(let t=0;t<e.length;t++){const{x:i,w:n,y:r,h:s,i:o,minH:l}=e[t];var a;if(1===n&&i<2)e.find((e=>e.i!==o&&1===e.w&&e.y===r&&i<2))&&(e[t].minH=null!==(a=e[t].minH)&&void 0!==a?a:s);else e[t].h=null!=l?l:s,e[t].minH=void 0}B(e.map((e=>({...null==t?void 0:t[e.i],...e,type:Id(e.i)}))))}),[B,s,f]),z=()=>{B([])},_=(0,c.useCallback)((()=>{null==h||h(f)}),[f,h]),D=(e,t)=>{const a=Th(e.key),i=(0,w.keyBy)(t,"i"),n=f.map((e=>({...e,...(0,w.pick)(null==i?void 0:i[e.i],["x","y"])})));let r={...a,...e.position,i:`${e.key}:${Math.random()}`,cardWidth:e.position.w,type:e.key,x:e.position.w>1?0:2*f.length%k,y:1/0};if(t){const e=t.find((e=>"__dropping-elem__"===e.i));return r={...r,...(0,w.pick)(e,"x","y")},void B([r,...n])}B(f.concat(r))},T=(0,c.useCallback)((e=>{var t;B(null!==(t=f.filter((t=>t.i!==e)))&&void 0!==t?t:[])}),[B,f]),K=(0,c.useCallback)(((e,t)=>{const a=Math.ceil((t+16)/17),i=f.find((t=>t.i===e));if(i&&Math.ceil(i.h)!==a){const t=f.map((t=>t.i===e?{...t,h:a}:t));B(t)}}),[f,B]),P=(0,c.useMemo)((()=>f.map((e=>{var t,a,i;const n=v[Id(e.type)];if(!n)return null;const r="picture"===(null==e?void 0:e.cardBgType)?`url("${Bd}${null==e?void 0:e.cardBackground}") no-repeat center / cover`:"color"===(null==e?void 0:e.cardBgType)?null==e?void 0:e.cardBackground:"#fff",o="solid"===(null==e?void 0:e.cardBorderStyle)?`${null==e?void 0:e.cardBorderWidth}px ${null==e?void 0:e.cardBorderStyle} ${null==e?void 0:e.cardBorderColor}`:null!==(t=null==e?void 0:e.cardBorderStyle)&&void 0!==t?t:"1px solid #e8e8e8",l=`${null!==(a=null==e?void 0:e.cardBorderRadius)&&void 0!==a?a:6}px`;return p().createElement("div",{className:"drag-box","data-grid":{...null!==(i=n.position)&&void 0!==i?i:{},...e,w:e.cardWidth||e.w},key:e.i,style:{...n.style||{},background:r,border:o,borderRadius:l,backdropFilter:"blur(10px)"}},p().createElement(kh.SizeMe,{monitorHeight:!0},(t=>{let{size:a}=t;return a.height&&K(e.i,a.height),p().createElement(Bh,{component:n,isEdit:s,layout:e,onDelete:T})})))})).filter(Boolean)),[f,v,s,T,K]),L=(0,c.useCallback)((()=>{if(b&&s){var e,t;const{top:a}=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!==a&&E({height:document.body.clientHeight-a})}}),[s]);return(0,c.useEffect)((()=>{if(s)return L(),R(i||[]),window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}}),[s,L,i,R]),p().createElement("div",{className:Lh.gridLayoutWrapper,ref:A},s&&p().createElement("div",{className:Lh.componentWrapper,style:S},p().createElement("div",{className:Lh.componentTitle},a),p().createElement("div",{className:Lh.componentList},null==r?void 0:r.map(((e,t)=>p().createElement(Nh,{component:e,onClick:()=>{D(e)},onDragStart:()=>{M.current=e},onDragEnd:()=>{M.current=void 0},key:e.key||t}))),(null==n?void 0:n.useBrick)&&p().createElement(N.ReactUseMultipleBricks,{useBrick:n.useBrick}))),p().createElement("div",{className:Lh.layoutWrapper,ref:b,style:S},s&&p().createElement("div",{className:Lh.actionsWrapper},p().createElement(Wd,{type:"primary",onClick:_},"保存"),p().createElement(Wd,{onClick:()=>{null==d||d()}},"取消"),o&&p().createElement(Wd,{"data-testid":"setting-button",onClick:()=>{null==g||g()}},"设置"),p().createElement(Md,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...zd?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模板加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?Rd({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(z):null==u||u(e,null!=f?f:[])})(e.detail)},"data-testid":"edit-layout-actions"})),p().createElement(m,{className:W()(Lh.layout,{[`${Lh.layoutEdit}`]:s}),draggableCancel:`.${Eh.deleteIcon},.edit-actions,.ignore-item`,breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:s?3:1},isResizable:!1,isDraggable:s,isDroppable:s,compactType:"vertical",margin:[16,16],useCSSTransforms:!1,onDropDragOver:()=>{if(M.current)return(0,w.pick)(M.current.position,["w","h"])},onDrop:e=>{M.current&&D(M.current,e)},onLayoutChange:I,onBreakpointChange:(e,t)=>{C(t)}},P)))}));let Nd;var Dd=new WeakMap,Td=new WeakMap,Kd=new WeakMap,Pd=new WeakMap,Ld=new WeakMap,Ud=new WeakMap,Fd=new WeakMap,Od=new WeakMap,Hd=new WeakSet,jd=new WeakMap,$d=new WeakMap,qd=new WeakMap,Vd=new WeakMap,Qd=new WeakMap,Gd=new WeakMap,Zd=new WeakMap,Yd=new WeakMap,Xd=new WeakMap;class Jd extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Hd),(0,r.A)(this,Dd,(Hh(this),(0,c.createRef)())),(0,r.A)(this,Td,$h(this)),(0,r.A)(this,Kd,(qh(this),Vh(this))),(0,r.A)(this,Pd,(Qh(this),Gh(this))),(0,r.A)(this,Ld,(Zh(this),Yh(this))),(0,r.A)(this,Ud,(Xh(this),Jh(this))),(0,r.A)(this,Fd,(ed(this),td(this))),(0,r.A)(this,Od,(ad(this),id(this))),(0,r.A)(this,jd,(sd(this),e=>{(0,o.A)(Hd,this,nd).emit(e)})),(0,r.A)(this,$d,od(this)),(0,r.A)(this,qd,(dd(this),e=>{(0,o.A)(Hd,this,ld).emit(e)})),(0,r.A)(this,Vd,cd(this)),(0,r.A)(this,Qd,(gd(this),()=>{(0,o.A)(Hd,this,pd).emit()})),(0,r.A)(this,Gd,md(this)),(0,r.A)(this,Zd,(bd(this),()=>{(0,o.A)(Hd,this,wd).emit()})),(0,r.A)(this,Yd,yd(this)),(0,r.A)(this,Xd,(vd(this),(e,t)=>{(0,o.A)(Hd,this,fd).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(Td,this)}set cardTitle(e){(0,l.A)(Td,this,e)}get isEdit(){return(0,h.A)(Kd,this)}set isEdit(e){(0,l.A)(Kd,this,e)}get layouts(){return(0,h.A)(Pd,this)}set layouts(e){(0,l.A)(Pd,this,e)}get toolbarBricks(){return(0,h.A)(Ld,this)}set toolbarBricks(e){(0,l.A)(Ld,this,e)}get componentList(){return(0,h.A)(Ud,this)}set componentList(e){(0,l.A)(Ud,this,e)}get showSettingButton(){return(0,h.A)(Fd,this)}set showSettingButton(e){(0,l.A)(Fd,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(Dd,this).current)||void 0===t||t.setLayouts(e)}connectedCallback(){this.style.display||(this.style.display="block"),super.connectedCallback()}render(){return p().createElement(_d,{cardTitle:this.cardTitle,layouts:this.layouts,toolbarBricks:this.toolbarBricks,componentList:this.componentList,showSettingButton:this.showSettingButton,isEdit:this.isEdit,onChange:(0,h.A)(jd,this),onSave:(0,h.A)(qd,this),onCancel:(0,h.A)(Qd,this),onActionClick:(0,h.A)(Xd,this),onSetting:(0,h.A)(Zd,this),ref:(0,h.A)(Dd,this)})}}Uh=Jd,({e:[$h,qh,Vh,Qh,Gh,Zh,Yh,Xh,Jh,ed,td,ad,id,nd,rd,sd,od,ld,hd,dd,cd,pd,ud,gd,md,wd,Ad,bd,yd,fd,xd,vd,Hh],c:[Nd,jh]}=(0,d.A)(Uh,[kd("eo-workbench-layout-v2",{shadowOptions:!1})],[[Cd(),1,"cardTitle"],[Cd({type:Boolean}),1,"isEdit"],[Cd({attribute:!1}),1,"layouts"],[Cd({attribute:!1}),1,"toolbarBricks"],[Cd({attribute:!1}),1,"componentList"],[Cd({type:Boolean}),1,"showSettingButton"],[Sd({type:"change"}),1,"changeEvent",e=>(0,h.A)(Od,e),(e,t)=>(0,l.A)(Od,e,t)],[Sd({type:"save"}),1,"saveEvent",e=>(0,h.A)($d,e),(e,t)=>(0,l.A)($d,e,t)],[Sd({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(Vd,e),(e,t)=>(0,l.A)(Vd,e,t)],[Sd({type:"setting"}),1,"settingEvent",e=>(0,h.A)(Gd,e),(e,t)=>(0,l.A)(Gd,e,t)],[Sd({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)(Yd,e),(e,t)=>(0,l.A)(Yd,e,t)],[Ed(),2,"setLayouts"]],0,(e=>Xd.has((0,s.A)(e))),g.ReactNextElement)),jh();var ec=a(57372),tc=a(28317),ac=a.n(tc);function ic(e,t){const a=e?document.querySelector(`${e}`):document.body;if(!a)throw new Error(`target not found: ${e}`);return new Promise((function(e,i){ac()(a,{backgroundColor:t||null,useCORS:!0,allowTaint:!0,scale:window.devicePixelRatio<3?window.devicePixelRatio:2}).then((function(t){e(t)})).catch(i)}))}customElements.define("advanced.capture-snapshot",(0,yl.createProviderClass)((async function(e){const{name:t,fileType:i,bucketName:n,selector:r,backgroundColor:s}=e;switch(i){case"image":{const e=await ic(r,s);if(n){const a=await function(e){return new Promise((function(t,a){e.toBlob((function(e){e?t(e):a()}))}))}(e),i=new File([a],`${t}.png`,{type:a.type}),r=await function(e,t){const a=new FormData;a.append("file",e,e.name);const i=`${(0,A.getBasePath)()}api/gateway/object_store.object_store.PutObject/api/v1/objectStore/bucket/${t}/object`;return ec.http.request(i,{method:"PUT",body:a})}(i,n);return function(e,t){return`${(0,A.getBasePath)()}api/gateway/logic.object_store_service/api/v1/objectStore/bucket/${e}/object/${t}`}(n,r.data.objectName)}await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image";return new Promise(((a,i)=>{try{const i=e.toDataURL("image/png"),n=new Image;n.onload=function(){const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const a=e.getContext("2d");null==a||a.drawImage(n,0,0,n.width,n.height);const i=e.toDataURL("image/png"),r=document.createElement("a");r.href=i,r.download=t;const s=new MouseEvent("click");r.dispatchEvent(s)},n.src=i,a("succeed")}catch(e){i("failed")}}))}(e,t)}break;case"pdf":{const{jsPDF:e}=await a.e(1576).then(a.bind(a,31576)),i=await ic(r,s),n=i.toDataURL("image/jpeg",1),o=new e(i.width>i.height?"landscape":"portrait","pt",[i.width,i.height]);o.addImage(n,"JPEG",0,0,i.width,i.height),await o.save(`${t}.pdf`,{returnPromise:!0});break}}})));var nc,rc=a(54299),sc=a(39138);let oc,lc,hc,dc,cc,pc,uc,gc,mc,wc,Ac,bc,yc,fc,xc,vc,kc,Cc,Sc,Ec,Wc,Mc,Rc,Bc,Ic,zc,_c,Nc,Dc,Tc,Kc,Pc,Lc,Uc,Fc,Oc,Hc,jc,$c;const{defineElement:qc,property:Vc,event:Qc}=(0,u.createDecorators)();let Gc;var Zc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Jc=new WeakMap,ep=new WeakMap,tp=new WeakMap,ap=new WeakMap,ip=new WeakMap,np=new WeakMap,rp=new WeakMap,sp=new WeakMap,op=new WeakMap,lp=new WeakSet,hp=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,up=new WeakMap,gp=new WeakMap;class mp extends g.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,lp),(0,r.A)(this,Zc,lc(this)),(0,r.A)(this,Yc,(hc(this),dc(this))),(0,r.A)(this,Xc,(cc(this),pc(this))),(0,r.A)(this,Jc,(uc(this),gc(this))),(0,r.A)(this,ep,(mc(this),wc(this))),(0,r.A)(this,tp,(Ac(this),bc(this))),(0,r.A)(this,ap,(yc(this),fc(this))),(0,r.A)(this,ip,(xc(this),vc(this))),(0,r.A)(this,np,(kc(this),Cc(this))),(0,r.A)(this,rp,(Sc(this),Ec(this))),(0,r.A)(this,sp,(Wc(this),Mc(this))),(0,r.A)(this,op,(Rc(this),Bc(this))),(0,r.A)(this,hp,(_c(this),Nc(this))),(0,r.A)(this,dp,(Kc(this),(e,t)=>{(0,o.A)(lp,this,Ic).emit(e),(0,o.A)(lp,this,Dc).emit({checkedKeys:e,halfCheckedKeys:t.halfCheckedKeys})})),(0,r.A)(this,cp,Pc(this)),(0,r.A)(this,pp,(Fc(this),e=>{(0,o.A)(lp,this,Lc).emit(e)})),(0,r.A)(this,up,Oc(this)),(0,r.A)(this,gp,($c(this),e=>{let{dragNode:t,node:a,dropPosition:i}=e;(0,o.A)(lp,this,Hc).emit({dragNode:t,dropNode:a,dropPosition:i})}))}get dataSource(){return(0,h.A)(Zc,this)}set dataSource(e){(0,l.A)(Zc,this,e)}get checkable(){return(0,h.A)(Yc,this)}set checkable(e){(0,l.A)(Yc,this,e)}get selectable(){return(0,h.A)(Xc,this)}set selectable(e){(0,l.A)(Xc,this,e)}get defaultExpandAll(){return(0,h.A)(Jc,this)}set defaultExpandAll(e){(0,l.A)(Jc,this,e)}get showLine(){return(0,h.A)(ep,this)}set showLine(e){(0,l.A)(ep,this,e)}get expandedKeys(){return(0,h.A)(tp,this)}set expandedKeys(e){(0,l.A)(tp,this,e)}get checkedKeys(){return(0,h.A)(ap,this)}set checkedKeys(e){(0,l.A)(ap,this,e)}get nodeDraggable(){return(0,h.A)(ip,this)}set nodeDraggable(e){(0,l.A)(ip,this,e)}get switcherIcon(){return(0,h.A)(np,this)}set switcherIcon(e){(0,l.A)(np,this,e)}get allowDrop(){return(0,h.A)(rp,this)}set allowDrop(e){(0,l.A)(rp,this,e)}get titleSuffixBrick(){return(0,h.A)(sp,this)}set titleSuffixBrick(e){(0,l.A)(sp,this,e)}render(){return p().createElement(wp,{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)(dp,this),onExpand:(0,h.A)(pp,this),allowDrop:this.allowDrop,onDrop:(0,h.A)(gp,this)})}}function wp(e){let{dataSource:t,shadowRoot:a,checkable:i,selectable:n,defaultExpandAll:r,showLine:s,expandedKeys:o,checkedKeys:l,nodeDraggable:h,switcherIcon:d,titleSuffixBrick:u,onCheck:g,onExpand:m,onDrop:w,allowDrop:A}=e;const y=(0,N.useCurrentTheme)(),x=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===y?Ai.A.darkAlgorithm:Ai.A.defaultAlgorithm}},p().createElement(D.N7,{container:a,autoClear:!0,cache:x,hashPriority:"high"},p().createElement(rc.A,(0,b.A)({switcherIcon:!1!==d&&("chevron"===d?p().createElement(dr.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:i,selectable:n,defaultExpandAll:r,showLine:s,draggable:h},o?{expandedKeys:o}:null,l?{checkedKeys:l}:null,{onCheck:g,onExpand:m,allowDrop:A,onDrop:w}))))}nc=mp,({e:[lc,hc,dc,cc,pc,uc,gc,mc,wc,Ac,bc,yc,fc,xc,vc,kc,Cc,Sc,Ec,Wc,Mc,Rc,Bc,Ic,zc,_c,Nc,Dc,Tc,Kc,Pc,Lc,Uc,Fc,Oc,Hc,jc,$c],c:[Gc,oc]}=(0,d.A)(nc,[qc("eo-tree",{styleTexts:[sc.A]})],[[Vc({attribute:!1}),1,"dataSource"],[Vc({type:Boolean}),1,"checkable"],[Vc({type:Boolean}),1,"selectable"],[Vc({type:Boolean}),1,"defaultExpandAll"],[Vc({type:Boolean}),1,"showLine"],[Vc({attribute:!1}),1,"expandedKeys"],[Vc({attribute:!1}),1,"checkedKeys"],[Vc({attribute:!1}),1,"nodeDraggable"],[Vc({attribute:!1}),1,"switcherIcon"],[Vc({attribute:!1}),1,"allowDrop"],[Vc({attribute:!1}),1,"titleSuffixBrick"],[Qc({type:"check"}),1,"checkEvent",e=>(0,h.A)(op,e),(e,t)=>(0,l.A)(op,e,t)],[Qc({type:"check.detail"}),1,"checkDetailEvent",e=>(0,h.A)(hp,e),(e,t)=>(0,l.A)(hp,e,t)],[Qc({type:"expand"}),1,"expandEvent",e=>(0,h.A)(cp,e),(e,t)=>(0,l.A)(cp,e,t)],[Qc({type:"node.drop"}),1,"dropEvent",e=>(0,h.A)(up,e),(e,t)=>(0,l.A)(up,e,t)]],0,(e=>gp.has((0,s.A)(e))),g.ReactNextElement)),oc();var Ap,bp=a(18623),yp=a(34695);let fp,xp,vp,kp,Cp,Sp,Ep,Wp,Mp,Rp,Bp,Ip,zp,_p,Np,Dp,Tp,Kp,Pp,Lp,Up,Fp,Op,Hp,jp,$p,qp,Vp,Qp,Gp,Zp,Yp,Xp,Jp,eu,tu,au,iu,nu,ru,su,ou,lu,hu,du,cu,pu,uu,gu,mu,wu,Au,bu,yu,fu,xu,vu,ku,Cu,Su,Eu;const{defineElement:Wu,property:Mu,event:Ru}=(0,u.createDecorators)(),Bu=(0,g.wrapBrick)("eo-icon"),Iu=(0,g.wrapBrick)("eo-form-item");let zu;var _u=new WeakMap,Nu=new WeakMap,Du=new WeakMap,Tu=new WeakMap,Ku=new WeakMap,Pu=new WeakMap,Lu=new WeakMap,Uu=new WeakMap,Fu=new WeakMap,Ou=new WeakMap,Hu=new WeakMap,ju=new WeakMap,$u=new WeakMap,qu=new WeakMap,Vu=new WeakMap,Qu=new WeakMap,Gu=new WeakMap,Zu=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Ju=new WeakMap,eg=new WeakMap,tg=new WeakMap,ag=new WeakSet,ig=new WeakMap,ng=new WeakMap,rg=new WeakMap,sg=new WeakMap,og=new WeakMap,lg=new WeakMap;function hg(e){const{shadowRoot:t,checkable:a,loading:i,treeData:n,treeExpandedKeys:r,treeDefaultExpandAll:s,fieldNames:o,value:l,placeholder:h,disabled:d,multiple:u,allowClear:g,popupPlacement:m,dropdownStyle:w,suffixIcon:A,size:b,maxTagCount:y,onChange:x,onSearch:v,onSelect:k,onTreeExpand:C,showSearch:S,popupMatchSelectWidth:E}=e,M=(0,N.useCurrentTheme)(),R=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===M?Ai.A.darkAlgorithm:Ai.A.defaultAlgorithm}},p().createElement(D.N7,{container:t,cache:R},p().createElement(bp.A,{getPopupContainer:e=>e.parentElement,allowClear:g,loading:i,disabled:d,multiple:u,fieldNames:o,placeholder:h,placement:m,dropdownStyle:w,suffixIcon:A&&p().createElement(Bu,A),maxTagCount:y,value:l,size:b,treeData:n,treeCheckable:a,treeExpandedKeys:r,treeDefaultExpandAll:s,onChange:x,onSelect:k,onSearch:v,onTreeExpand:C,virtual:!1,showSearch:S,popupMatchSelectWidth:E,className:W()({notPopupMatchSelectWidth:!E})})))}Ap=class extends Li{constructor(){super(...arguments),(0,n.A)(this,ag),(0,r.A)(this,_u,xp(this)),(0,r.A)(this,Nu,(vp(this),kp(this))),(0,r.A)(this,Du,(Cp(this),Sp(this))),(0,r.A)(this,Tu,(Ep(this),Wp(this))),(0,r.A)(this,Ku,(Mp(this),Rp(this))),(0,r.A)(this,Pu,(Bp(this),Ip(this))),(0,r.A)(this,Lu,(zp(this),_p(this))),(0,r.A)(this,Uu,(Np(this),Dp(this))),(0,r.A)(this,Fu,(Tp(this),Kp(this))),(0,r.A)(this,Ou,(Pp(this),Lp(this))),(0,r.A)(this,Hu,(Up(this),Fp(this))),(0,r.A)(this,ju,(Op(this),Hp(this))),(0,r.A)(this,$u,(jp(this),$p(this,!0))),(0,r.A)(this,qu,(qp(this),Vp(this,!1))),(0,r.A)(this,Vu,(Qp(this),Gp(this))),(0,r.A)(this,Qu,(Zp(this),Yp(this,!0))),(0,r.A)(this,Gu,(Xp(this),Jp(this))),(0,r.A)(this,Zu,(eu(this),tu(this,"bottomLeft"))),(0,r.A)(this,Yu,(au(this),iu(this))),(0,r.A)(this,Xu,(nu(this),ru(this))),(0,r.A)(this,Ju,(su(this),ou(this))),(0,r.A)(this,eg,(lu(this),hu(this,!0))),(0,r.A)(this,tg,(du(this),cu(this))),(0,i.A)(this,"handleOnChange",(gu(this),e=>{this.value=e,(0,o.A)(ag,this,pu).emit({value:e})})),(0,r.A)(this,ig,mu(this)),(0,r.A)(this,ng,(bu(this),e=>{(0,o.A)(ag,this,wu).emit(e)})),(0,r.A)(this,rg,yu(this)),(0,r.A)(this,sg,(vu(this),e=>{(0,o.A)(ag,this,fu).emit({value:e})})),(0,r.A)(this,og,ku(this)),(0,r.A)(this,lg,(Eu(this),e=>{(0,o.A)(ag,this,Cu).emit({keys:e})}))}get name(){return(0,h.A)(_u,this)}set name(e){(0,l.A)(_u,this,e)}get label(){return(0,h.A)(Nu,this)}set label(e){(0,l.A)(Nu,this,e)}get required(){return(0,h.A)(Du,this)}set required(e){(0,l.A)(Du,this,e)}get treeData(){return(0,h.A)(Tu,this)}set treeData(e){(0,l.A)(Tu,this,e)}get treeDefaultExpandAll(){return(0,h.A)(Ku,this)}set treeDefaultExpandAll(e){(0,l.A)(Ku,this,e)}get treeExpandedKeys(){return(0,h.A)(Pu,this)}set treeExpandedKeys(e){(0,l.A)(Pu,this,e)}get fieldNames(){return(0,h.A)(Lu,this)}set fieldNames(e){(0,l.A)(Lu,this,e)}get value(){return(0,h.A)(Uu,this)}set value(e){(0,l.A)(Uu,this,e)}get placeholder(){return(0,h.A)(Fu,this)}set placeholder(e){(0,l.A)(Fu,this,e)}get multiple(){return(0,h.A)(Ou,this)}set multiple(e){(0,l.A)(Ou,this,e)}get disabled(){return(0,h.A)(Hu,this)}set disabled(e){(0,l.A)(Hu,this,e)}get checkable(){return(0,h.A)(ju,this)}set checkable(e){(0,l.A)(ju,this,e)}get allowClear(){return(0,h.A)($u,this)}set allowClear(e){(0,l.A)($u,this,e)}get loading(){return(0,h.A)(qu,this)}set loading(e){(0,l.A)(qu,this,e)}get filterTreeNode(){return(0,h.A)(Vu,this)}set filterTreeNode(e){(0,l.A)(Vu,this,e)}get showSearch(){return(0,h.A)(Qu,this)}set showSearch(e){(0,l.A)(Qu,this,e)}get suffixIcon(){return(0,h.A)(Gu,this)}set suffixIcon(e){(0,l.A)(Gu,this,e)}get popupPlacement(){return(0,h.A)(Zu,this)}set popupPlacement(e){(0,l.A)(Zu,this,e)}get size(){return(0,h.A)(Yu,this)}set size(e){(0,l.A)(Yu,this,e)}get maxTagCount(){return(0,h.A)(Xu,this)}set maxTagCount(e){(0,l.A)(Xu,this,e)}get dropdownStyle(){return(0,h.A)(Ju,this)}set dropdownStyle(e){(0,l.A)(Ju,this,e)}get popupMatchSelectWidth(){return(0,h.A)(eg,this)}set popupMatchSelectWidth(e){(0,l.A)(eg,this,e)}render(){return p().createElement(Iu,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(hg,{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)(ng,this),onSelect:(0,h.A)(sg,this),onTreeExpand:(0,h.A)(lg,this),popupMatchSelectWidth:this.popupMatchSelectWidth}))}},({e:[xp,vp,kp,Cp,Sp,Ep,Wp,Mp,Rp,Bp,Ip,zp,_p,Np,Dp,Tp,Kp,Pp,Lp,Up,Fp,Op,Hp,jp,$p,qp,Vp,Qp,Gp,Zp,Yp,Xp,Jp,eu,tu,au,iu,nu,ru,su,ou,lu,hu,du,cu,pu,uu,gu,mu,wu,Au,bu,yu,fu,xu,vu,ku,Cu,Su,Eu],c:[zu,fp]}=(0,d.A)(Ap,[Wu("eo-tree-select",{styleTexts:[yp.A]})],[[Mu(),1,"name"],[Mu(),1,"label"],[Mu({type:Boolean}),1,"required"],[Mu({attribute:!1}),1,"treeData"],[Mu({type:Boolean}),1,"treeDefaultExpandAll"],[Mu({attribute:!1}),1,"treeExpandedKeys"],[Mu({attribute:!1}),1,"fieldNames"],[Mu({attribute:!1}),1,"value"],[Mu(),1,"placeholder"],[Mu({type:Boolean}),1,"multiple"],[Mu({type:Boolean}),1,"disabled"],[Mu({type:Boolean}),1,"checkable"],[Mu({type:Boolean}),1,"allowClear"],[Mu({type:Boolean}),1,"loading"],[Mu({attribute:!1}),1,"filterTreeNode"],[Mu({type:Boolean}),1,"showSearch"],[Mu({attribute:!1}),1,"suffixIcon"],[Mu(),1,"popupPlacement"],[Mu(),1,"size"],[Mu({attribute:!1}),1,"maxTagCount"],[Mu({attribute:!1}),1,"dropdownStyle"],[Mu({type:Boolean}),1,"popupMatchSelectWidth"],[Ru({type:"change"}),1,"changeEvent",e=>(0,h.A)(tg,e),(e,t)=>(0,l.A)(tg,e,t)],[Ru({type:"search"}),1,"searchEvent",e=>(0,h.A)(ig,e),(e,t)=>(0,l.A)(ig,e,t)],[Ru({type:"select"}),1,"selectEvent",e=>(0,h.A)(rg,e),(e,t)=>(0,l.A)(rg,e,t)],[Ru({type:"expand"}),1,"expandEvent",e=>(0,h.A)(og,e),(e,t)=>(0,l.A)(og,e,t)]],0,(e=>lg.has((0,s.A)(e))),Li)),fp();var dg,cg=a(25629),pg=a(75612);let ug,gg,mg,wg,Ag;const{defineElement:bg,property:yg}=(0,u.createDecorators)();let fg;var xg=new WeakMap,vg=new WeakMap;class kg extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,xg,gg(this)),(0,r.A)(this,vg,(mg(this),wg(this,1))),Ag(this)}get label(){return(0,h.A)(xg,this)}set label(e){(0,l.A)(xg,this,e)}get lineClamp(){return(0,h.A)(vg,this)}set lineClamp(e){(0,l.A)(vg,this,e)}render(){return p().createElement(Cg,{label:this.label,lineClamp:this.lineClamp})}}function Cg(e){const{lineClamp:t,label:a}=e,i=(0,c.useRef)(null),[n,r]=(0,c.useState)(!1),s=(0,c.useCallback)((()=>{const e=i.current;if(!e)return!1;const{offsetWidth:t,offsetHeight:a,scrollWidth:n,scrollHeight:r}=e;return t<n||a<r}),[t,a]),o=(0,c.useMemo)((()=>(0,D.VC)()),[]);return(0,c.useEffect)((()=>{r(s())}),[s]),p().createElement(f.Ay,{prefixCls:"antdV5"},p().createElement(D.N7,{cache:o,hashPriority:"high",transformers:[D.NZ]},p().createElement(pg.A,{title:n?a:null},p().createElement("div",{ref:i,className:"ellipsisWrap",style:{"--line-clamp":t}},a))))}dg=kg,({e:[gg,mg,wg,Ag],c:[fg,ug]}=(0,d.A)(dg,[bg("eo-text-tooltip",{styleTexts:[cg.A]})],[[yg({type:String}),1,"label"],[yg({type:Number}),1,"lineClamp"]],0,void 0,g.ReactNextElement)),ug();var Sg,Eg=a(27367),Wg=a(4098);let Mg,Rg,Bg,Ig,zg,_g,Ng,Dg,Tg;a(10659),a(15058);const{defineElement:Kg,property:Pg}=(0,u.createDecorators)();let Lg;var Ug=new WeakMap,Fg=new WeakMap,Og=new WeakMap,Hg=new WeakMap;class jg extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ug,Rg(this)),(0,r.A)(this,Fg,(Bg(this),Ig(this))),(0,r.A)(this,Og,(zg(this),_g(this))),(0,r.A)(this,Hg,(Ng(this),Dg(this))),Tg(this)}get url(){return(0,h.A)(Ug,this)}set url(e){(0,l.A)(Ug,this,e)}get page(){return(0,h.A)(Fg,this)}set page(e){(0,l.A)(Fg,this,e)}get search(){return(0,h.A)(Og,this)}set search(e){(0,l.A)(Og,this,e)}get viewerStyle(){return(0,h.A)(Hg,this)}set viewerStyle(e){(0,l.A)(Hg,this,e)}render(){return p().createElement($g,{url:this.url,page:this.page?this.page-1:0,search:this.search,viewerStyle:this.viewerStyle})}}function $g(e){let{url:t,search:i,page:n,viewerStyle:r}=e;const[s,o]=(0,c.useState)(!1),l=(0,Wg.defaultLayoutPlugin)();return(0,c.useEffect)((()=>{s&&i&&l.toolbarPluginInstance.searchPluginInstance.highlight({keyword:i})}),[s,i]),p().createElement(Eg.Worker,{workerUrl:`${a.p}workers/pdf.worker.min.js`},p().createElement("div",{style:r},p().createElement(Eg.Viewer,{fileUrl:t,initialPage:n,plugins:[l],onDocumentLoad:()=>o(!0)})))}Sg=jg,({e:[Rg,Bg,Ig,zg,_g,Ng,Dg,Tg],c:[Lg,Mg]}=(0,d.A)(Sg,[Kg("advanced.pdf-viewer",{shadowOptions:!1})],[[Pg(),1,"url"],[Pg({type:Number}),1,"page"],[Pg(),1,"search"],[Pg({attribute:!1}),1,"viewerStyle"]],0,void 0,g.ReactNextElement)),Mg()},55515:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,".componentItemIcon--znvUWa0v{font-size:16px;color:#262626;margin-top:2px}.componentItemWrapper--mLC8xy_9{display:flex;flex-direction:column}.componentItemTitle--zo3KGnys{font-weight:400;font-size:12px;color:#595959;line-height:18px;text-align:left;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.componentItemContent--zOG8IL31{background-color:#f3f4f7;cursor:move;display:flex;justify-content:center;align-items:center}.componentItemThumbnail--epDINDMl{background:#ffffff;border:4px solid #f3f4f7;width:96px;height:64px;border-radius:1px}",""]),s.locals={componentItemIcon:"componentItemIcon--znvUWa0v",componentItemWrapper:"componentItemWrapper--mLC8xy_9",componentItemTitle:"componentItemTitle--zo3KGnys",componentItemContent:"componentItemContent--zOG8IL31",componentItemThumbnail:"componentItemThumbnail--epDINDMl"};const o=s},59224:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},61098:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,':root{--eo-table-head-cell-padding:14px 16px;--eo-table-head-cell-height:51px;--eo-table-body-cell-padding:11px 16px;--eo-table-body-cell-height:45px}html[data-ui="v8-2"]{--eo-table-head-cell-padding:9px 16px;--eo-table-head-cell-height:41px}html[data-ui="v8-2"] eo-next-table[size="large"]{--eo-table-body-cell-padding:9px 16px;--eo-table-body-cell-height:45px}html[data-ui="v8-2"] eo-next-table[size="middle"]{--eo-table-head-cell-padding:7px 16px;--eo-table-head-cell-height:37px;--eo-table-body-cell-padding:6px 16px;--eo-table-body-cell-height:39px}html[data-ui="v8-2"] eo-next-table[size="small"]{--eo-table-head-cell-padding:3px 16px;--eo-table-head-cell-height:29px;--eo-table-body-cell-padding:1px 16px;--eo-table-body-cell-height:31px}',""]);const o=s},61590:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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)}.itemWrapper--_lUkkTz1{position:relative;width:100%}",""]),s.locals={component:"component--MVAoEnGN",editMask:"editMask--nl6r17tE",deleteIcon:"deleteIcon--tNyE_ou4",itemWrapper:"itemWrapper--_lUkkTz1"};const o=s},71040:()=>{},71058:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.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=s.toString()},81634:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,':host{display:block;--eo-next-table-header-border-radius:0}:host([hidden]){display:none}:host([bordered]){--eo-next-table-header-border-radius:4px}.pagination-wrapper{display:flex;gap:20px}.pagination-total-text{color:var(--color-secondary-text)}.pagination-total-number{font-weight:var(--font-weight-400);color:var(--color-normal-text)}.select-info{display:flex;gap:10px}.ant-pagination-total-text{position:absolute;left:0}.ant-pagination-options{order:-1;padding-right:12px}.ant-table-wrapper{background:var(--eo-table-wrapper-background)}.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-thead\n > tr\n > th,\n.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-tbody\n > tr\n > th,\n.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > th{padding:var(--eo-table-head-cell-padding);height:var(--eo-table-head-cell-height)}.next-table.ant-table-wrapper .ant-table .ant-table-container .ant-table-cell,\n.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-tbody\n > tr\n > td,\n.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > td{padding:var(--eo-table-body-cell-padding);height:var(--eo-table-body-cell-height)}.ant-table-ping-left .ant-table-cell-fix-left-last::after{box-shadow:var(--left-slide-shadow)}.ant-table-ping-right .ant-table-cell-fix-right-first::after{box-shadow:var(--right-slide-shadow)}.ant-pagination-options .ant-select .ant-select-selector{border:none;box-shadow:none!important;color:var(--color-normal-text)}.ant-pagination .ant-pagination-item:not(.ant-pagination-item-active) a{color:var(--color-normal-text)}.ant-table-expanded-row eo-next-table{--eo-table-wrapper-background:var(--antd-table-row-expand-nested-wrapper);--antd-table-header-bg:initial}.next-table.ant-table-wrapper .ant-table-container,\n.next-table.ant-table-wrapper\n .ant-table-container\n table\n > tbody\n > tr:last-child\n > *:first-child{border-bottom-left-radius:var(--eo-next-table-header-border-radius)}.next-table.ant-table-wrapper\n .ant-table-container\n table\n > tbody\n > tr:last-child\n > *:last-child{border-bottom-right-radius:var(--eo-next-table-header-border-radius)}.next-table.ant-table-wrapper tr.ant-table-expanded-row > th,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row:hover > th,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row > td,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row:hover > td{background-color:var(--color-fill-global-bg-1)}.next-table.ant-table-wrapper .ant-table-container::before{left:0}.next-table.ant-table-wrapper .ant-table-container::after{right:0}.ant-pagination-options .ant-select .ant-select-arrow{left:auto;right:11px}.next-table.ant-table-wrapper\n .ant-table-ping-left\n .ant-table-cell-fix-left-first::after,\n.next-table.ant-table-wrapper\n .ant-table-ping-left\n .ant-table-cell-fix-left-last::after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-right\n .ant-table-cell-fix-right-first::after,\n.next-table.ant-table-wrapper\n .ant-table-ping-right\n .ant-table-cell-fix-right-last::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-left:not(.ant-table-has-fix-left)\n .ant-table-container::before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-right:not(.ant-table-has-fix-right)\n .ant-table-container::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper .ant-table-column-sorters{justify-content:initial}.next-table.ant-table-wrapper .ant-table-column-title{flex:initial}.next-table.ant-table-wrapper .ant-table-column-sorter{margin-left:8px}.expand-icon{font-size:11px;background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.next-table.ant-table-wrapper .ant-table-row-indent + .expand-icon{margin-top:2.5px;margin-right:8px}.invisible{visibility:hidden}:host([theme-variant="elevo"]){--eo-next-table-header-border-radius:8px;--eo-table-head-cell-height:35px;--eo-table-head-cell-padding:7px 16px;--eo-table-body-cell-height:40px;--eo-table-body-cell-padding:7px 16px}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table{background:rgba(255,255,255,0.73);-webkit-backdrop-filter:blur(33px);backdrop-filter:blur(33px);border-radius:var(--eo-next-table-header-border-radius);color:rgba(0,0,0,0.8)}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-thead > tr > th{color:rgba(38,38,38,0.65);font-size:12px;font-weight:400}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-thead > tr > td{color:rgba(38,38,38,0.65);font-size:12px;font-weight:400}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-tbody > tr > td{border-bottom:none}',""]);const o=s.toString()},82474:()=>{},82590:()=>{},85515:()=>{},85689:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r),o=a(87796),l=a(37564),h=s()(n());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},89739:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r)()(n());s.push([e.id,".gridLayoutWrapper--DIttynOM{display:flex;height:100%;position:relative;width:100%}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP{width:132px;padding:6px 12px 6px 16px;overflow-y:auto;box-shadow:1px 0 0 0 var(--palette-gray-4);background:var(--color-fill-bg-container-1);z-index:998;position:sticky;top:0}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentTitle--nKf9GEoj{font-size:16px;padding:6px 0;font-weight:500;color:#262626;line-height:22px;text-align:left}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB{margin-top:12px;width:100%;display:flex;flex-direction:column;gap:10px}.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;width:100%;overflow:hidden}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj,.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{width:100%}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj{flex-grow:1}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layoutEdit--FVqWXNWj{overflow-y:auto}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{position:sticky;top:0;z-index:997;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)}",""]),s.locals={gridLayoutWrapper:"gridLayoutWrapper--DIttynOM",componentWrapper:"componentWrapper--P8xsKOQP",componentTitle:"componentTitle--nKf9GEoj",componentList:"componentList--s3XnAYsB",layoutWrapper:"layoutWrapper--pk1t3UAR",layout:"layout--kz28taJj",actionsWrapper:"actionsWrapper--vQro2Dyn",layoutEdit:"layoutEdit--FVqWXNWj"};const o=s},91116:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(36758),n=a.n(i),r=a(40935),s=a.n(r),o=a(34566),l=a(16322),h=s()(n());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()}}]);
|
|
2
|
+
//# sourceMappingURL=4197.9455fba5.js.map
|