@next-bricks/advanced 0.35.10 → 0.36.0

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