@ahoo-wang/fetcher-viewer 2.13.10 → 2.13.11

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/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(y,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime"),require("react/compiler-runtime"),require("antd"),require("react"),require("@ahoo-wang/fetcher-react"),require("@ahoo-wang/fetcher-wow")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react/compiler-runtime","antd","react","@ahoo-wang/fetcher-react","@ahoo-wang/fetcher-wow"],d):(y=typeof globalThis<"u"?globalThis:y||self,d(y.FetcherReact={},y.ReactJSXRuntime,y.ReactCompilerRuntime,y.Antd,y.React,y.FetcherReact,y.FetcherWow))})(this,(function(y,d,x,O,N,fe,_){"use strict";var jt=Object.defineProperty;var a=(y,d)=>jt(y,"name",{value:d,configurable:!0});function Qe(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:a(()=>t[r],"get")})}}return e.default=t,Object.freeze(e)}a(Qe,"_interopNamespaceDefault");const A=Qe(N),de={AND:"与",OR:"或",NOR:"非或",ID:"等于",IDS:"包含任一",AGGREGATE_ID:"等于",AGGREGATE_IDS:"包含任一",TENANT_ID:"等于",OWNER_ID:"等于",DELETED:"已删除",ALL:"全部",EQ:"等于",NE:"不等于",GT:"大于",LT:"小于",GTE:"大于等于",LTE:"小于等于",CONTAINS:"包含",IN:"包含任一",NOT_IN:"不包含任一",BETWEEN:"介于",ALL_IN:"全部包含",STARTS_WITH:"以...开头",ENDS_WITH:"以...结尾",ELEM_MATCH:"元素匹配",NULL:"为空",NOT_NULL:"不为空",TRUE:"为真",FALSE:"为假",EXISTS:"存在",TODAY:"今天",BEFORE_TODAY:"今天之前",TOMORROW:"明天",THIS_WEEK:"本周",NEXT_WEEK:"下周",LAST_WEEK:"上周",THIS_MONTH:"本月",LAST_MONTH:"上月",RECENT_DAYS:"最近几天",EARLIER_DAYS:"几天前",RAW:"原始查询"},Ke=[];function he(t){const e=x.c(22),{filters:r,activeFilters:n,ref:i}=t,s=n===void 0?Ke:n;let l;e[0]!==s?(l=s?.map(Xe).sort(),e[0]=s,e[1]=l):l=e[1];const o=l,[c,f]=N.useState(o);let u;e[2]!==s||e[3]!==t.filters||e[4]!==c?(u=a(()=>({getValue(){return t.filters.flatMap(S=>S.filters.filter(C=>c.includes(C.field.name)&&!s.some(T=>T.field.name===C.field.name)))}}),"t2"),e[2]=s,e[3]=t.filters,e[4]=c,e[5]=u):u=e[5],N.useImperativeHandle(i,u);let h;e[6]!==c?(h=a((S,C)=>{f(C?[...c,S.field.name]:c.filter(T=>T!==S.field.name))},"t3"),e[6]=c,e[7]=h):h=e[7];const g=h;let m,v;e[8]!==o?(m=a(()=>{f(o)},"t4"),v=[o],e[8]=o,e[9]=m,e[10]=v):(m=e[9],v=e[10]),N.useEffect(m,v);let b;if(e[11]!==s||e[12]!==r||e[13]!==g||e[14]!==c){let S;e[16]!==s||e[17]!==g||e[18]!==c?(S=a(C=>d.jsxs("div",{children:[d.jsx(O.Typography.Title,{level:5,children:C.label}),d.jsx(O.Flex,{gap:"middle",wrap:!0,children:C.filters.map(T=>d.jsx(O.Checkbox,{checked:c.includes(T.field.name),onChange:a(E=>{g(T,E.target.checked)},"onChange"),disabled:s.some(E=>E.field.name===T.field.name),children:T.field.label},T.field.name))})]},C.label),"t72"),e[16]=s,e[17]=g,e[18]=c,e[19]=S):S=e[19],b=r.map(S),e[11]=s,e[12]=r,e[13]=g,e[14]=c,e[15]=b}else b=e[15];let p;return e[20]!==b?(p=d.jsx(d.Fragment,{children:b}),e[20]=b,e[21]=p):p=e[21],p}a(he,"AvailableFilterSelect");function Xe(t){return t.field.name}a(Xe,"_temp$3");function ge(t){const e=x.c(8),r=N.useRef(null);let n;e[0]!==t?(n=a(()=>{t?.onSave?.(r.current?.getValue()??[])},"t0"),e[0]=t,e[1]=n):n=e[1];const i=n;let s;e[2]!==t.availableFilters?(s=d.jsx(he,{...t.availableFilters,ref:r}),e[2]=t.availableFilters,e[3]=s):s=e[3];let l;return e[4]!==i||e[5]!==t||e[6]!==s?(l=d.jsx(O.Modal,{...t,onOk:i,children:s}),e[4]=i,e[5]=t,e[6]=s,e[7]=l):l=e[7],l}a(ge,"AvailableFilterSelectModal");const me=N.createContext({});function be(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=be(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}a(be,"r");function Je(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=be(t))&&(n&&(n+=" "),n+=e);return n}a(Je,"clsx");const Ze={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},w=Math.round;function Q(t,e){const r=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=e(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}a(Q,"splitColorStr");const ye=a((t,e,r)=>r===0?t:t/100,"parseHSVorHSL");function L(t,e){const r=e||255;return t>r?r:t<0?0:t}a(L,"limitRange");const R=class R{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function r(n){return n[0]in e&&n[1]in e&&n[2]in e}if(a(r,"matchFormat"),e)if(typeof e=="string"){let i=function(s){return n.startsWith(s)};a(i,"matchPrefix");const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{const s=Ze[n.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(e instanceof R)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(r("rgb"))this.r=L(e.r),this.g=L(e.g),this.b=L(e.b),this.a=typeof e.a=="number"?L(e.a,1):1;else if(r("hsl"))this.fromHsl(e);else if(r("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const r=this.toHsv();return r.h=e,this._c(r)}getLuminance(){function e(s){const l=s/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}a(e,"adjustGamma");const r=e(this.r),n=e(this.g),i=e(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=w(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(e,r=50){const n=this._c(e),i=r/100,s=a(o=>(n[o]-this[o])*i+this[o],"calc"),l={r:w(s("r")),g:w(s("g")),b:w(s("b")),a:w(s("a")*100)/100};return this._c(l)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const r=this._c(e),n=this.a+r.a*(1-this.a),i=a(s=>w((this[s]*this.a+r[s]*r.a*(1-this.a))/n),"calc");return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const r=(this.r||0).toString(16);e+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=w(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),r=w(this.getSaturation()*100),n=w(this.getLightness()*100);return this.a!==1?`hsla(${e},${r}%,${n}%,${this.a})`:`hsl(${e},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,r,n){const i=this.clone();return i[e]=L(r,n),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const r=e.replace("#","");function n(i,s){return parseInt(r[i]+r[s||i],16)}a(n,"connectNum"),r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:e,s:r,l:n,a:i}){if(this._h=e%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const g=w(n*255);this.r=g,this.g=g,this.b=g}let s=0,l=0,o=0;const c=e/60,f=(1-Math.abs(2*n-1))*r,u=f*(1-Math.abs(c%2-1));c>=0&&c<1?(s=f,l=u):c>=1&&c<2?(s=u,l=f):c>=2&&c<3?(l=f,o=u):c>=3&&c<4?(l=u,o=f):c>=4&&c<5?(s=u,o=f):c>=5&&c<6&&(s=f,o=u);const h=n-f/2;this.r=w((s+h)*255),this.g=w((l+h)*255),this.b=w((o+h)*255)}fromHsv({h:e,s:r,v:n,a:i}){this._h=e%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const s=w(n*255);if(this.r=s,this.g=s,this.b=s,r<=0)return;const l=e/60,o=Math.floor(l),c=l-o,f=w(n*(1-r)*255),u=w(n*(1-r*c)*255),h=w(n*(1-r*(1-c))*255);switch(o){case 0:this.g=h,this.b=f;break;case 1:this.r=u,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=u;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=u;break}}fromHsvString(e){const r=Q(e,ye);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(e){const r=Q(e,ye);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(e){const r=Q(e,(n,i)=>i.includes("%")?w(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};a(R,"FastColor");let z=R;const q=2,ve=.16,We=.05,et=.05,tt=.15,pe=5,Se=4,nt=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _e(t,e,r){let n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-q*e:Math.round(t.h)+q*e:n=r?Math.round(t.h)+q*e:Math.round(t.h)-q*e,n<0?n+=360:n>=360&&(n-=360),n}a(_e,"getHue");function Ce(t,e,r){if(t.h===0&&t.s===0)return t.s;let n;return r?n=t.s-ve*e:e===Se?n=t.s+ve:n=t.s+We*e,n>1&&(n=1),r&&e===pe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}a(Ce,"getSaturation");function Te(t,e,r){let n;return r?n=t.v+et*e:n=t.v-tt*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}a(Te,"getValue");function rt(t,e={}){const r=[],n=new z(t),i=n.toHsv();for(let s=pe;s>0;s-=1){const l=new z({h:_e(i,s,!0),s:Ce(i,s,!0),v:Te(i,s,!0)});r.push(l)}r.push(n);for(let s=1;s<=Se;s+=1){const l=new z({h:_e(i,s),s:Ce(i,s),v:Te(i,s)});r.push(l)}return e.theme==="dark"?nt.map(({index:s,amount:l})=>new z(e.backgroundColor||"#141414").mix(r[s],l).toHexString()):r.map(s=>s.toHexString())}a(rt,"generate$1");const K=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];K.primary=K[5];function it(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}a(it,"canUseDom");function st(t,e){if(!t)return!1;if(t.contains)return t.contains(e);let r=e;for(;r;){if(r===t)return!0;r=r.parentNode}return!1}a(st,"contains");const Oe="data-rc-order",Ee="data-rc-priority",at="rc-util-key",X=new Map;function Ne({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:at}a(Ne,"getMark");function J(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}a(J,"getContainer");function lt(t){return t==="queue"?"prependQueue":t?"prepend":"append"}a(lt,"getOrder");function Z(t){return Array.from((X.get(t)||t).children).filter(e=>e.tagName==="STYLE")}a(Z,"findStyles");function Ie(t,e={}){if(!it())return null;const{csp:r,prepend:n,priority:i=0}=e,s=lt(n),l=s==="prependQueue",o=document.createElement("style");o.setAttribute(Oe,s),l&&i&&o.setAttribute(Ee,`${i}`),r?.nonce&&(o.nonce=r?.nonce),o.innerHTML=t;const c=J(e),{firstChild:f}=c;if(n){if(l){const u=(e.styles||Z(c)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(Oe)))return!1;const g=Number(h.getAttribute(Ee)||0);return i>=g});if(u.length)return c.insertBefore(o,u[u.length-1].nextSibling),o}c.insertBefore(o,f)}else c.appendChild(o);return o}a(Ie,"injectCSS");function ot(t,e={}){let{styles:r}=e;return r||=Z(J(e)),r.find(n=>n.getAttribute(Ne(e))===t)}a(ot,"findExistNode");function ct(t,e){const r=X.get(t);if(!r||!st(document,r)){const n=Ie("",e),{parentNode:i}=n;X.set(t,i),t.removeChild(n)}}a(ct,"syncRealContainer");function ut(t,e,r={}){const n=J(r),i=Z(n),s={...r,styles:i};ct(n,s);const l=ot(e,s);if(l)return s.csp?.nonce&&l.nonce!==s.csp?.nonce&&(l.nonce=s.csp?.nonce),l.innerHTML!==t&&(l.innerHTML=t),l;const o=Ie(t,s);return o.setAttribute(Ne(s),e),o}a(ut,"updateCSS");function we(t){return t?.getRootNode?.()}a(we,"getRoot");function ft(t){return we(t)instanceof ShadowRoot}a(ft,"inShadow");function dt(t){return ft(t)?we(t):null}a(dt,"getShadowRoot");let W={};const ee=[],ht=a(t=>{ee.push(t)},"preMessage");function gt(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const r=ee.reduce((n,i)=>i(n??"","warning"),e);r&&console.error(`Warning: ${r}`)}}a(gt,"warning$1");function mt(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const r=ee.reduce((n,i)=>i(n??"","note"),e);r&&console.warn(`Note: ${r}`)}}a(mt,"note");function bt(){W={}}a(bt,"resetWarned");function ke(t,e,r){!e&&!W[r]&&(t(!1,r),W[r]=!0)}a(ke,"call");function B(t,e){ke(gt,t,e)}a(B,"warningOnce");function yt(t,e){ke(mt,t,e)}a(yt,"noteOnce"),B.preMessage=ht,B.resetWarned=bt,B.noteOnce=yt;function vt(t){return t.replace(/-(.)/g,(e,r)=>r.toUpperCase())}a(vt,"camelCase");function pt(t,e){B(t,`[@ant-design/icons] ${e}`)}a(pt,"warning");function Fe(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}a(Fe,"isIconDefinition");function xe(t={}){return Object.keys(t).reduce((e,r)=>{const n=t[r];switch(r){case"class":e.className=n,delete e.class;break;default:delete e[r],e[vt(r)]=n}return e},{})}a(xe,"normalizeAttrs");function te(t,e,r){return r?N.createElement(t.tag,{key:e,...xe(t.attrs),...r},(t.children||[]).map((n,i)=>te(n,`${e}-${t.tag}-${i}`))):N.createElement(t.tag,{key:e,...xe(t.attrs)},(t.children||[]).map((n,i)=>te(n,`${e}-${t.tag}-${i}`)))}a(te,"generate");function Ae(t){return rt(t)[0]}a(Ae,"getSecondaryColor");function Me(t){return t?Array.isArray(t)?t:[t]:[]}a(Me,"normalizeTwoToneColors");const St=`
1
+ (function(y,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react/compiler-runtime"),require("antd"),require("react"),require("@ahoo-wang/fetcher-react"),require("@ahoo-wang/fetcher-wow")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react/compiler-runtime","antd","react","@ahoo-wang/fetcher-react","@ahoo-wang/fetcher-wow"],h):(y=typeof globalThis<"u"?globalThis:y||self,h(y.FetcherReact={},y.ReactJSXRuntime,y.ReactCompilerRuntime,y.Antd,y.React,y.FetcherReact,y.FetcherWow))})(this,(function(y,h,A,O,N,ye,_){"use strict";var Xt=Object.defineProperty;var a=(y,h)=>Xt(y,"name",{value:h,configurable:!0});function rt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:a(()=>t[r],"get")})}}return e.default=t,Object.freeze(e)}a(rt,"_interopNamespaceDefault");const M=rt(N),ve={AND:"与",OR:"或",NOR:"非或",ID:"等于",IDS:"包含任一",AGGREGATE_ID:"等于",AGGREGATE_IDS:"包含任一",TENANT_ID:"等于",OWNER_ID:"等于",DELETED:"已删除",ALL:"全部",EQ:"等于",NE:"不等于",GT:"大于",LT:"小于",GTE:"大于等于",LTE:"小于等于",CONTAINS:"包含",IN:"包含任一",NOT_IN:"不包含任一",BETWEEN:"介于",ALL_IN:"全部包含",STARTS_WITH:"以...开头",ENDS_WITH:"以...结尾",ELEM_MATCH:"元素匹配",NULL:"为空",NOT_NULL:"不为空",TRUE:"为真",FALSE:"为假",EXISTS:"存在",TODAY:"今天",BEFORE_TODAY:"今天之前",TOMORROW:"明天",THIS_WEEK:"本周",NEXT_WEEK:"下周",LAST_WEEK:"上周",THIS_MONTH:"本月",LAST_MONTH:"上月",RECENT_DAYS:"最近几天",EARLIER_DAYS:"几天前",RAW:"原始查询"},it=[];function pe(t){const e=A.c(22),{filters:r,activeFilters:n,ref:i}=t,s=n===void 0?it:n;let l;e[0]!==s?(l=s?.map(st).sort(),e[0]=s,e[1]=l):l=e[1];const o=l,[c,u]=N.useState(o);let f;e[2]!==s||e[3]!==t.filters||e[4]!==c?(f=a(()=>({getValue(){return t.filters.flatMap(T=>T.filters.filter(C=>c.includes(C.field.name)&&!s.some(v=>v.field.name===C.field.name)))}}),"t2"),e[2]=s,e[3]=t.filters,e[4]=c,e[5]=f):f=e[5],N.useImperativeHandle(i,f);let d;e[6]!==c?(d=a((T,C)=>{u(C?[...c,T.field.name]:c.filter(v=>v!==T.field.name))},"t3"),e[6]=c,e[7]=d):d=e[7];const g=d;let m,p;e[8]!==o?(m=a(()=>{u(o)},"t4"),p=[o],e[8]=o,e[9]=m,e[10]=p):(m=e[9],p=e[10]),N.useEffect(m,p);let b;if(e[11]!==s||e[12]!==r||e[13]!==g||e[14]!==c){let T;e[16]!==s||e[17]!==g||e[18]!==c?(T=a(C=>h.jsxs("div",{children:[h.jsx(O.Typography.Title,{level:5,children:C.label}),h.jsx(O.Flex,{gap:"middle",wrap:!0,children:C.filters.map(v=>h.jsx(O.Checkbox,{checked:c.includes(v.field.name),onChange:a(E=>{g(v,E.target.checked)},"onChange"),disabled:s.some(E=>E.field.name===v.field.name),children:v.field.label},v.field.name))})]},C.label),"t72"),e[16]=s,e[17]=g,e[18]=c,e[19]=T):T=e[19],b=r.map(T),e[11]=s,e[12]=r,e[13]=g,e[14]=c,e[15]=b}else b=e[15];let S;return e[20]!==b?(S=h.jsx(h.Fragment,{children:b}),e[20]=b,e[21]=S):S=e[21],S}a(pe,"AvailableFilterSelect");function st(t){return t.field.name}a(st,"_temp$3");function Ce(t){const e=A.c(8),r=N.useRef(null);let n;e[0]!==t?(n=a(()=>{t?.onSave?.(r.current?.getValue()??[])},"t0"),e[0]=t,e[1]=n):n=e[1];const i=n;let s;e[2]!==t.availableFilters?(s=h.jsx(pe,{...t.availableFilters,ref:r}),e[2]=t.availableFilters,e[3]=s):s=e[3];let l;return e[4]!==i||e[5]!==t||e[6]!==s?(l=h.jsx(O.Modal,{...t,onOk:i,children:s}),e[4]=i,e[5]=t,e[6]=s,e[7]=l):l=e[7],l}a(Ce,"AvailableFilterSelectModal");const _e=N.createContext({});function Se(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Se(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}a(Se,"r");function at(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Se(t))&&(n&&(n+=" "),n+=e);return n}a(at,"clsx");const lt={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},k=Math.round;function Z(t,e){const r=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=e(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}a(Z,"splitColorStr");const Oe=a((t,e,r)=>r===0?t:t/100,"parseHSVorHSL");function q(t,e){const r=e||255;return t>r?r:t<0?0:t}a(q,"limitRange");const X=class X{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function r(n){return n[0]in e&&n[1]in e&&n[2]in e}if(a(r,"matchFormat"),e)if(typeof e=="string"){let i=function(s){return n.startsWith(s)};a(i,"matchPrefix");const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{const s=lt[n.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(e instanceof X)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(r("rgb"))this.r=q(e.r),this.g=q(e.g),this.b=q(e.b),this.a=typeof e.a=="number"?q(e.a,1):1;else if(r("hsl"))this.fromHsl(e);else if(r("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const r=this.toHsv();return r.h=e,this._c(r)}getLuminance(){function e(s){const l=s/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}a(e,"adjustGamma");const r=e(this.r),n=e(this.g),i=e(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=k(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(e,r=50){const n=this._c(e),i=r/100,s=a(o=>(n[o]-this[o])*i+this[o],"calc"),l={r:k(s("r")),g:k(s("g")),b:k(s("b")),a:k(s("a")*100)/100};return this._c(l)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const r=this._c(e),n=this.a+r.a*(1-this.a),i=a(s=>k((this[s]*this.a+r[s]*r.a*(1-this.a))/n),"calc");return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const r=(this.r||0).toString(16);e+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=k(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),r=k(this.getSaturation()*100),n=k(this.getLightness()*100);return this.a!==1?`hsla(${e},${r}%,${n}%,${this.a})`:`hsl(${e},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,r,n){const i=this.clone();return i[e]=q(r,n),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const r=e.replace("#","");function n(i,s){return parseInt(r[i]+r[s||i],16)}a(n,"connectNum"),r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:e,s:r,l:n,a:i}){if(this._h=e%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const g=k(n*255);this.r=g,this.g=g,this.b=g}let s=0,l=0,o=0;const c=e/60,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(c%2-1));c>=0&&c<1?(s=u,l=f):c>=1&&c<2?(s=f,l=u):c>=2&&c<3?(l=u,o=f):c>=3&&c<4?(l=f,o=u):c>=4&&c<5?(s=f,o=u):c>=5&&c<6&&(s=u,o=f);const d=n-u/2;this.r=k((s+d)*255),this.g=k((l+d)*255),this.b=k((o+d)*255)}fromHsv({h:e,s:r,v:n,a:i}){this._h=e%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const s=k(n*255);if(this.r=s,this.g=s,this.b=s,r<=0)return;const l=e/60,o=Math.floor(l),c=l-o,u=k(n*(1-r)*255),f=k(n*(1-r*c)*255),d=k(n*(1-r*(1-c))*255);switch(o){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(e){const r=Z(e,Oe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(e){const r=Z(e,Oe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(e){const r=Z(e,(n,i)=>i.includes("%")?k(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};a(X,"FastColor");let L=X;const U=2,Te=.16,ot=.05,ct=.05,ut=.15,Ee=5,Ne=4,ft=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function we(t,e,r){let n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-U*e:Math.round(t.h)+U*e:n=r?Math.round(t.h)+U*e:Math.round(t.h)-U*e,n<0?n+=360:n>=360&&(n-=360),n}a(we,"getHue");function Ie(t,e,r){if(t.h===0&&t.s===0)return t.s;let n;return r?n=t.s-Te*e:e===Ne?n=t.s+Te:n=t.s+ot*e,n>1&&(n=1),r&&e===Ee&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}a(Ie,"getSaturation");function ke(t,e,r){let n;return r?n=t.v+ct*e:n=t.v-ut*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}a(ke,"getValue");function ht(t,e={}){const r=[],n=new L(t),i=n.toHsv();for(let s=Ee;s>0;s-=1){const l=new L({h:we(i,s,!0),s:Ie(i,s,!0),v:ke(i,s,!0)});r.push(l)}r.push(n);for(let s=1;s<=Ne;s+=1){const l=new L({h:we(i,s),s:Ie(i,s),v:ke(i,s)});r.push(l)}return e.theme==="dark"?ft.map(({index:s,amount:l})=>new L(e.backgroundColor||"#141414").mix(r[s],l).toHexString()):r.map(s=>s.toHexString())}a(ht,"generate$1");const W=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];W.primary=W[5];function dt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}a(dt,"canUseDom");function gt(t,e){if(!t)return!1;if(t.contains)return t.contains(e);let r=e;for(;r;){if(r===t)return!0;r=r.parentNode}return!1}a(gt,"contains");const Fe="data-rc-order",Ae="data-rc-priority",mt="rc-util-key",ee=new Map;function xe({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:mt}a(xe,"getMark");function te(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}a(te,"getContainer");function bt(t){return t==="queue"?"prependQueue":t?"prepend":"append"}a(bt,"getOrder");function ne(t){return Array.from((ee.get(t)||t).children).filter(e=>e.tagName==="STYLE")}a(ne,"findStyles");function ze(t,e={}){if(!dt())return null;const{csp:r,prepend:n,priority:i=0}=e,s=bt(n),l=s==="prependQueue",o=document.createElement("style");o.setAttribute(Fe,s),l&&i&&o.setAttribute(Ae,`${i}`),r?.nonce&&(o.nonce=r?.nonce),o.innerHTML=t;const c=te(e),{firstChild:u}=c;if(n){if(l){const f=(e.styles||ne(c)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(Fe)))return!1;const g=Number(d.getAttribute(Ae)||0);return i>=g});if(f.length)return c.insertBefore(o,f[f.length-1].nextSibling),o}c.insertBefore(o,u)}else c.appendChild(o);return o}a(ze,"injectCSS");function yt(t,e={}){let{styles:r}=e;return r||=ne(te(e)),r.find(n=>n.getAttribute(xe(e))===t)}a(yt,"findExistNode");function vt(t,e){const r=ee.get(t);if(!r||!gt(document,r)){const n=ze("",e),{parentNode:i}=n;ee.set(t,i),t.removeChild(n)}}a(vt,"syncRealContainer");function pt(t,e,r={}){const n=te(r),i=ne(n),s={...r,styles:i};vt(n,s);const l=yt(e,s);if(l)return s.csp?.nonce&&l.nonce!==s.csp?.nonce&&(l.nonce=s.csp?.nonce),l.innerHTML!==t&&(l.innerHTML=t),l;const o=ze(t,s);return o.setAttribute(xe(s),e),o}a(pt,"updateCSS");function Me(t){return t?.getRootNode?.()}a(Me,"getRoot");function Ct(t){return Me(t)instanceof ShadowRoot}a(Ct,"inShadow");function _t(t){return Ct(t)?Me(t):null}a(_t,"getShadowRoot");let re={};const ie=[],St=a(t=>{ie.push(t)},"preMessage");function Ot(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const r=ie.reduce((n,i)=>i(n??"","warning"),e);r&&console.error(`Warning: ${r}`)}}a(Ot,"warning$1");function Tt(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const r=ie.reduce((n,i)=>i(n??"","note"),e);r&&console.warn(`Note: ${r}`)}}a(Tt,"note");function Et(){re={}}a(Et,"resetWarned");function He(t,e,r){!e&&!re[r]&&(t(!1,r),re[r]=!0)}a(He,"call");function Y(t,e){He(Ot,t,e)}a(Y,"warningOnce");function Nt(t,e){He(Tt,t,e)}a(Nt,"noteOnce"),Y.preMessage=St,Y.resetWarned=Et,Y.noteOnce=Nt;function wt(t){return t.replace(/-(.)/g,(e,r)=>r.toUpperCase())}a(wt,"camelCase");function It(t,e){Y(t,`[@ant-design/icons] ${e}`)}a(It,"warning");function Ve(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}a(Ve,"isIconDefinition");function $e(t={}){return Object.keys(t).reduce((e,r)=>{const n=t[r];switch(r){case"class":e.className=n,delete e.class;break;default:delete e[r],e[wt(r)]=n}return e},{})}a($e,"normalizeAttrs");function se(t,e,r){return r?N.createElement(t.tag,{key:e,...$e(t.attrs),...r},(t.children||[]).map((n,i)=>se(n,`${e}-${t.tag}-${i}`))):N.createElement(t.tag,{key:e,...$e(t.attrs)},(t.children||[]).map((n,i)=>se(n,`${e}-${t.tag}-${i}`)))}a(se,"generate");function Le(t){return ht(t)[0]}a(Le,"getSecondaryColor");function je(t){return t?Array.isArray(t)?t:[t]:[]}a(je,"normalizeTwoToneColors");const kt=`
2
2
  .anticon {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -54,7 +54,7 @@
54
54
  transform: rotate(360deg);
55
55
  }
56
56
  }
57
- `,_t=a(t=>{const{csp:e,prefixCls:r,layer:n}=N.useContext(me);let i=St;r&&(i=i.replace(/anticon/g,r)),n&&(i=`@layer ${n} {
57
+ `,Ft=a(t=>{const{csp:e,prefixCls:r,layer:n}=N.useContext(_e);let i=kt;r&&(i=i.replace(/anticon/g,r)),n&&(i=`@layer ${n} {
58
58
  ${i}
59
- }`),N.useEffect(()=>{const s=t.current,l=dt(s);ut(i,"@ant-design-icons",{prepend:!n,csp:e,attachTo:l})},[])},"useInsertStyles"),V={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ct({primaryColor:t,secondaryColor:e}){V.primaryColor=t,V.secondaryColor=e||Ae(t),V.calculated=!!e}a(Ct,"setTwoToneColors");function Tt(){return{...V}}a(Tt,"getTwoToneColors");const $=a(t=>{const{icon:e,className:r,onClick:n,style:i,primaryColor:s,secondaryColor:l,...o}=t,c=A.useRef(null);let f=V;if(s&&(f={primaryColor:s,secondaryColor:l||Ae(s)}),_t(c),pt(Fe(e),`icon should be icon definiton, but got ${e}`),!Fe(e))return null;let u=e;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(f.primaryColor,f.secondaryColor)}),te(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...o,ref:c})},"IconBase");$.displayName="IconReact",$.getTwoToneColors=Tt,$.setTwoToneColors=Ct;function ze(t){const[e,r]=Me(t);return $.setTwoToneColors({primaryColor:e,secondaryColor:r})}a(ze,"setTwoToneColor");function Ot(){const t=$.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}a(Ot,"getTwoToneColor");function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ne.apply(this,arguments)}a(ne,"_extends$2"),ze(K.primary);const D=A.forwardRef((t,e)=>{const{className:r,icon:n,spin:i,rotate:s,tabIndex:l,onClick:o,twoToneColor:c,...f}=t,{prefixCls:u="anticon",rootClassName:h}=A.useContext(me),g=Je(h,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||n.name==="loading"},r);let m=l;m===void 0&&o&&(m=-1);const v=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[b,p]=Me(c);return A.createElement("span",ne({role:"img","aria-label":n.name},f,{ref:e,tabIndex:m,onClick:o,className:g}),A.createElement($,{icon:n,primaryColor:b,secondaryColor:p,style:v}))});D.getTwoToneColor=Ot,D.setTwoToneColor=ze,process.env.NODE_ENV!=="production"&&(D.displayName="AntdIcon");var Et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function re(){return re=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},re.apply(this,arguments)}a(re,"_extends$1");const Nt=a((t,e)=>A.createElement(D,re({},t,{ref:e,icon:Et})),"MinusOutlined"),$e=A.forwardRef(Nt);process.env.NODE_ENV!=="production"&&($e.displayName="MinusOutlined");var It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ie.apply(this,arguments)}a(ie,"_extends");const wt=a((t,e)=>A.createElement(D,ie({},t,{ref:e,icon:It})),"SearchOutlined"),He=A.forwardRef(wt);process.env.NODE_ENV!=="production"&&(He.displayName="SearchOutlined");const Le={serialize(t){return t},deserialize(t){return t}},Ve={serialize(t){return t.map(e=>e.toString())},deserialize(t){return t.map(e=>parseFloat(e))}},kt=[",",",",";",";"," "];function j(t){const e=x.c(22);let r,n,i,s,l,o;e[0]!==t?({tokenSeparators:i,allowClear:s,serializer:l,value:o,onChange:r,...n}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=s,e[5]=l,e[6]=o):(r=e[1],n=e[2],i=e[3],s=e[4],l=e[5],o=e[6]);const c=i===void 0?kt:i,f=s===void 0?!0:s,u=l===void 0?Le:l;let h;e[7]!==r||e[8]!==u?(h=a(b=>{if(!r)return;const p=u.deserialize(b);r(p)},"t3"),e[7]=r,e[8]=u,e[9]=h):h=e[9];const g=h;let m=null;if(o)if(Array.isArray(o)){let b;e[10]!==u||e[11]!==o?(b=u.serialize(o),e[10]=u,e[11]=o,e[12]=b):b=e[12],m=b}else{let b;e[13]!==u||e[14]!==o?(b=u.serialize([o]),e[13]=u,e[14]=o,e[15]=b):b=e[15],m=b}let v;return e[16]!==f||e[17]!==g||e[18]!==n||e[19]!==m||e[20]!==c?(v=d.jsx(O.Select,{...n,mode:"tags",open:!1,suffixIcon:null,allowClear:f,tokenSeparators:c,value:m,onChange:g}),e[16]=f,e[17]=g,e[18]=n,e[19]=m,e[20]=c,e[21]=v):v=e[21],v}a(j,"TagInput"),j.displayName="TagInput";function De(t){const e=x.c(26);let r;e[0]!==t.defaultValue?(r=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,void 0],e[0]=t.defaultValue,e[1]=r):r=e[1];const n=r,[i,s]=n,[l,o]=N.useState(i),[c,f]=N.useState(s),u=c!==void 0?c:t.max,h=l!==void 0?l:t.min;let g;e[2]!==c||e[3]!==t?(g=a(k=>{const I=k??void 0;o(I),t.onChange?.([I,c])},"t1"),e[2]=c,e[3]=t,e[4]=g):g=e[4];const m=g;let v;e[5]!==t||e[6]!==l?(v=a(k=>{const I=k??void 0;f(I),t.onChange?.([l,I])},"t2"),e[5]=t,e[6]=l,e[7]=v):v=e[7];const b=v,p=t.placeholder?.[0]||"最小值";let S;e[8]!==m||e[9]!==t.min||e[10]!==t.precision||e[11]!==l||e[12]!==u||e[13]!==p?(S=d.jsx(O.InputNumber,{value:l,min:t.min,max:u,precision:t.precision,placeholder:p,onChange:m}),e[8]=m,e[9]=t.min,e[10]=t.precision,e[11]=l,e[12]=u,e[13]=p,e[14]=S):S=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=d.jsx(O.Input,{style:{width:30,borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),e[15]=C):C=e[15];const T=t.placeholder?.[1]||"最大值";let E;e[16]!==c||e[17]!==h||e[18]!==b||e[19]!==t.max||e[20]!==t.precision||e[21]!==T?(E=d.jsx(O.InputNumber,{value:c,min:h,max:t.max,precision:t.precision,placeholder:T,onChange:b}),e[16]=c,e[17]=h,e[18]=b,e[19]=t.max,e[20]=t.precision,e[21]=T,e[22]=E):E=e[22];let F;return e[23]!==S||e[24]!==E?(F=d.jsxs(O.Space.Compact,{block:!0,children:[S,C,E]}),e[23]=S,e[24]=E,e[25]=F):F=e[25],F}a(De,"NumberRange");const Ft=a((t,e)=>!t||!e?!1:!(Array.isArray(e)&&e.length===0),"defaultValueValidate"),xt=a((t,e,r)=>r,"defaultValueConverter");function je(t){const e=x.c(22),[r,n]=N.useState(t.operator),[i,s]=N.useState(t.value),l=t.validate??Ft,o=t.valueConverter??xt;let c;e[0]!==t.field||e[1]!==l?(c=a((p,S)=>l(p,S)?{condition:{field:t.field,operator:p,value:S}}:void 0,"t0"),e[0]=t.field,e[1]=l,e[2]=c):c=e[2];const f=c;let u;e[3]!==r||e[4]!==t||e[5]!==f||e[6]!==i||e[7]!==o?(u=a(p=>{const S=o(r,p,i);n(p),s(S);const C=f(p,S);t.onChange?.(C)},"t1"),e[3]=r,e[4]=t,e[5]=f,e[6]=i,e[7]=o,e[8]=u):u=e[8];const h=u;let g;e[9]!==r||e[10]!==t||e[11]!==f?(g=a(p=>{s(p);const S=f(r,p);t.onChange?.(S)},"t2"),e[9]=r,e[10]=t,e[11]=f,e[12]=g):g=e[12];const m=g;let v;e[13]!==r||e[14]!==f||e[15]!==i?(v=a(()=>({getValue(){return f(r,i)}}),"t3"),e[13]=r,e[14]=f,e[15]=i,e[16]=v):v=e[16],N.useImperativeHandle(t.ref,v);let b;return e[17]!==r||e[18]!==h||e[19]!==m||e[20]!==i?(b={operator:r,value:i,setOperator:h,setValue:m},e[17]=r,e[18]=h,e[19]=m,e[20]=i,e[21]=b):b=e[21],b}a(je,"useFilterState");function P(t){const e=x.c(15),{ref:r,...n}=t,i=n.operator?.supportedOperators??n.supportedOperators;if(!i||i.length===0)throw new Error("supportedOperators must be a non-empty array");const s=n.operator?.locale??de;let l=n.operator?.defaultValue;(!l||!i.includes(l))&&(l=i[0]);const o=je({field:n.field.name,operator:l,value:n.value?.defaultValue,ref:r,valueConverter:n.valueConverter,validate:n.validate,onChange:n.onChange}),c=n.valueInputSupplier(o),f=i.map(v=>({value:v,label:s[v]}));let u;e[0]!==n.field.label||e[1]!==n.label?(u=d.jsx(O.Button,{...n.label,children:n.field.label}),e[0]=n.field.label,e[1]=n.label,e[2]=u):u=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h={minWidth:120},e[3]=h):h=e[3];let g;e[4]!==o.operator||e[5]!==o.setOperator||e[6]!==f||e[7]!==n.operator?(g=d.jsx(O.Select,{style:h,onChange:o.setOperator,...n.operator,value:o.operator,options:f}),e[4]=o.operator,e[5]=o.setOperator,e[6]=f,e[7]=n.operator,e[8]=g):g=e[8];let m;return e[9]!==n.className||e[10]!==n.style||e[11]!==u||e[12]!==g||e[13]!==c?(m=d.jsxs(O.Space.Compact,{block:!0,style:n.style,className:n.className,children:[u,g,c]}),e[9]=n.className,e[10]=n.style,e[11]=u,e[12]=g,e[13]=c,e[14]=m):m=e[14],m}a(P,"AssemblyFilter");const Pe="text";function se(t){const e=x.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.EQ,_.Operator.NE,_.Operator.CONTAINS,_.Operator.STARTS_WITH,_.Operator.ENDS_WITH,_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>{switch(s.operator){case _.Operator.IN:case _.Operator.NOT_IN:return d.jsx(j,{value:s.value,onChange:s.setValue,...t.value});default:return d.jsx(O.Input,{value:s.value,onChange:a(l=>s.setValue(l.target.value),"onChange"),allowClear:!0,...t.value})}},"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueInputSupplier:n};i=d.jsx(P,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(se,"TextFilter"),se.displayName="TextFilter";const qe="id",At=a((t,e,r)=>t===_.Operator.ID&&e===_.Operator.IDS?[r]:t===_.Operator.IDS&&e===_.Operator.ID?r[0]:r,"IdOnOperatorChangeValueConverter");function ae(t){const e=x.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.ID,_.Operator.IDS],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>s.operator===_.Operator.ID?d.jsx(O.Input,{value:s.value,onChange:a(l=>s.setValue(l.target.value),"onChange"),allowClear:!0,...t.value}):d.jsx(j,{value:s.value,onChange:s.setValue,...t.value}),"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueConverter:At,valueInputSupplier:n};i=d.jsx(P,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(ae,"IdFilter"),ae.displayName="IdConditionFilter";const Be="number";function le(t){const e=x.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.EQ,_.Operator.NE,_.Operator.GT,_.Operator.LT,_.Operator.GTE,_.Operator.LTE,_.Operator.BETWEEN,_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>{switch(s.operator){case _.Operator.IN:case _.Operator.NOT_IN:return d.jsx(j,{value:s.value,serializer:Ve,onChange:a(l=>s.setValue(l),"onChange"),...t.value});case _.Operator.BETWEEN:{const{placeholder:l,...o}=t.value??{};return d.jsx(De,{onChange:s.setValue,...o})}default:{const{defaultValue:l,...o}=t.value??{},c=Array.isArray(l)?l[0]:l;return d.jsx(O.InputNumber,{defaultValue:c,onChange:a(f=>{s.setValue(f??void 0)},"onChange"),...o})}}},"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,validate:Mt,valueInputSupplier:n};i=d.jsx(P,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(le,"NumberFilter");function Mt(t,e){return t===_.Operator.BETWEEN?Array.isArray(e)?e[0]!==void 0&&e[1]!==void 0:!1:e!=null}a(Mt,"_temp$2"),le.displayName="NumberFilter";const Ge="select";function oe(t){const e=x.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>d.jsx(O.Select,{mode:"multiple",value:s.value,onChange:s.setValue,allowClear:!0,...t.value}),"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueInputSupplier:n};i=d.jsx(P,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(oe,"SelectFilter"),oe.displayName="SelectFilter";const ue=class ue{constructor(){this.filters=new Map,this.register(qe,ae),this.register(Pe,se),this.register(Be,le),this.register(Ge,oe)}register(e,r){this.filters.set(e,r)}unregister(e){return this.filters.delete(e)}get(e){return this.filters.get(e)}};a(ue,"FilterRegistry");let G=ue;const Ue=new G;function ce(t){const e=x.c(2),{type:r,ref:n}=t;N.useImperativeHandle(n,zt);const i=`Unsupported filter type:[${r}]`;let s;return e[0]!==i?(s=d.jsx(O.Alert,{message:i,type:"warning",showIcon:!0}),e[0]=i,e[1]=s):s=e[1],s}a(ce,"FallbackFilter");function zt(){return{getValue(){}}}a(zt,"_temp$1"),ce.displayName="FallbackFilter";function U(t){const e=x.c(5);let r;e[0]!==t.type?(r=Ue.get(t.type)||ce,e[0]=t.type,e[1]=r):r=e[1];const n=r;let i;return e[2]!==n||e[3]!==t?(i=N.createElement(n,t),e[2]=n,e[3]=t,e[4]=i):i=e[4],i}a(U,"TypedFilter"),U.displayName="TypedFilter";function Re(t){const e=x.c(15);let r,n;e[0]!==t?({onRemove:r,...n}=t,e[0]=t,e[1]=r,e[2]=n):(r=e[1],n=e[2]);const[i,s]=N.useState(!1);if(!r){let h;return e[3]!==n?(h=d.jsx(U,{...n}),e[3]=n,e[4]=h):h=e[4],h}let l,o;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a(()=>s(!0),"t0"),o=a(()=>s(!1),"t1"),e[5]=l,e[6]=o):(l=e[5],o=e[6]);let c;e[7]!==n?(c=d.jsx(U,{...n}),e[7]=n,e[8]=c):c=e[8];let f;e[9]!==r||e[10]!==i?(f=i&&d.jsx(O.Button,{type:"dashed",shape:"circle",size:"small",onClick:r,icon:d.jsx($e,{})}),e[9]=r,e[10]=i,e[11]=f):f=e[11];let u;return e[12]!==c||e[13]!==f?(u=d.jsxs(O.Space,{onMouseOver:l,onMouseOut:o,children:[c,f]}),e[12]=c,e[13]=f,e[14]=u):u=e[14],u}a(Re,"RemovableTypedFilter");const $t={gutter:[8,8],wrap:!0},Ht={xxl:6,xl:8,lg:12,md:12,sm:24,xs:24},Lt={span:12};function Ye(t){const e=x.c(24),{row:r,col:n,actionCol:i,filters:s,onSearch:l,actions:o,loading:c}=t,f=r===void 0?$t:r,u=n===void 0?Ht:n,h=i===void 0?Lt:i,g=c===void 0?!1:c,m=fe.useRefs();let v;e[0]!==m||e[1]!==l?(v=a(()=>{if(!l)return;const k=Array.from(m.values()).map(Vt).filter(Boolean),I=_.and(...k);l(I)},"t4"),e[0]=m,e[1]=l,e[2]=v):v=e[2];const b=v;let p;if(e[3]!==u||e[4]!==m||e[5]!==s){let k;e[7]!==u||e[8]!==m?(k=a(I=>N.createElement(O.Col,{...u,key:I.key},d.jsx(Re,{type:I.type,field:I.field,operator:I.operator,value:I.value,onRemove:I.onRemove,ref:m.register(I.key)},I.key)),"t62"),e[7]=u,e[8]=m,e[9]=k):k=e[9],p=s.map(k),e[3]=u,e[4]=m,e[5]=s,e[6]=p}else p=e[6];let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S=d.jsx(He,{}),e[10]=S):S=e[10];let C;e[11]!==b||e[12]!==g?(C=d.jsx(O.Button,{type:"primary",icon:S,onClick:b,loading:g,children:"Search"}),e[11]=b,e[12]=g,e[13]=C):C=e[13];let T;e[14]!==o||e[15]!==C?(T=d.jsxs(O.Space,{children:[o,C]}),e[14]=o,e[15]=C,e[16]=T):T=e[16];let E;e[17]!==h||e[18]!==T?(E=d.jsx(O.Col,{...h,children:T}),e[17]=h,e[18]=T,e[19]=E):E=e[19];let F;return e[20]!==f||e[21]!==p||e[22]!==E?(F=d.jsx(d.Fragment,{children:d.jsxs(O.Row,{...f,children:[p,E]})}),e[20]=f,e[21]=p,e[22]=E,e[23]=F):F=e[23],F}a(Ye,"FilterPanel");function Vt(t){return t?.getValue()?.condition}a(Vt,"_temp");function Dt(t){const e=x.c(27),{row:r,col:n,availableFilters:i,filters:s,onSearch:l}=t,[o,c]=N.useState(s),[f,u]=N.useState(!1),h=fe.useRequestId();let g;e[0]!==o||e[1]!==h?(g=a(M=>{if(M.length===0){u(!1);return}const H=M.map(Y=>({key:h.generate(),type:Y.component,field:Y.field}));c([...o,...H]),u(!1)},"t0"),e[0]=o,e[1]=h,e[2]=g):g=e[2];const m=g;let v;e[3]!==o?(v=a(M=>{const H=o.filter(Y=>Y.key!==M);c(H)},"t1"),e[3]=o,e[4]=v):v=e[4];const b=v;let p;if(e[5]!==o||e[6]!==b){let M;e[8]!==b?(M=a(H=>({...H,onRemove:a(()=>b(H.key),"onRemove")}),"t32"),e[8]=b,e[9]=M):M=e[9],p=o.map(M),e[5]=o,e[6]=b,e[7]=p}else p=e[7];const S=p;let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=d.jsx(O.Button,{onClick:a(()=>u(!0),"onClick"),children:"Add Filter"}),e[10]=C):C=e[10];let T;e[11]!==n||e[12]!==S||e[13]!==l||e[14]!==r?(T=d.jsx(Ye,{filters:S,onSearch:l,actions:C,row:r,col:n}),e[11]=n,e[12]=S,e[13]=l,e[14]=r,e[15]=T):T=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=a(()=>u(!1),"t5"),e[16]=E):E=e[16];let F;e[17]!==o||e[18]!==i?(F={filters:i,activeFilters:o},e[17]=o,e[18]=i,e[19]=F):F=e[19];let k;e[20]!==m||e[21]!==f||e[22]!==F?(k=d.jsx(ge,{title:"Add Filter",open:f,onCancel:E,onSave:m,availableFilters:F}),e[20]=m,e[21]=f,e[22]=F,e[23]=k):k=e[23];let I;return e[24]!==T||e[25]!==k?(I=d.jsxs(d.Fragment,{children:[T,k]}),e[24]=T,e[25]=k,e[26]=I):I=e[26],I}a(Dt,"EditableFilterPanel"),y.AssemblyFilter=P,y.AvailableFilterSelect=he,y.AvailableFilterSelectModal=ge,y.EditableFilterPanel=Dt,y.FallbackFilter=ce,y.FilterPanel=Ye,y.FilterRegistry=G,y.ID_FILTER=qe,y.IdFilter=ae,y.NUMBER_FILTER=Be,y.NumberFilter=le,y.NumberRange=De,y.NumberTagValueItemSerializer=Ve,y.OPERATOR_zh_CN=de,y.RemovableTypedFilter=Re,y.SELECT_FILTER=Ge,y.SelectFilter=oe,y.StringTagValueItemSerializer=Le,y.TEXT_FILTER=Pe,y.TagInput=j,y.TextFilter=se,y.TypedFilter=U,y.filterRegistry=Ue,y.useFilterState=je,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
59
+ }`),N.useEffect(()=>{const s=t.current,l=_t(s);pt(i,"@ant-design-icons",{prepend:!n,csp:e,attachTo:l})},[])},"useInsertStyles"),B={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function At({primaryColor:t,secondaryColor:e}){B.primaryColor=t,B.secondaryColor=e||Le(t),B.calculated=!!e}a(At,"setTwoToneColors");function xt(){return{...B}}a(xt,"getTwoToneColors");const j=a(t=>{const{icon:e,className:r,onClick:n,style:i,primaryColor:s,secondaryColor:l,...o}=t,c=M.useRef(null);let u=B;if(s&&(u={primaryColor:s,secondaryColor:l||Le(s)}),Ft(c),It(Ve(e),`icon should be icon definiton, but got ${e}`),!Ve(e))return null;let f=e;return f&&typeof f.icon=="function"&&(f={...f,icon:f.icon(u.primaryColor,u.secondaryColor)}),se(f.icon,`svg-${f.name}`,{className:r,onClick:n,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...o,ref:c})},"IconBase");j.displayName="IconReact",j.getTwoToneColors=xt,j.setTwoToneColors=At;function De(t){const[e,r]=je(t);return j.setTwoToneColors({primaryColor:e,secondaryColor:r})}a(De,"setTwoToneColor");function zt(){const t=j.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}a(zt,"getTwoToneColor");function ae(){return ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ae.apply(this,arguments)}a(ae,"_extends$3"),De(W.primary);const D=M.forwardRef((t,e)=>{const{className:r,icon:n,spin:i,rotate:s,tabIndex:l,onClick:o,twoToneColor:c,...u}=t,{prefixCls:f="anticon",rootClassName:d}=M.useContext(_e),g=at(d,f,{[`${f}-${n.name}`]:!!n.name,[`${f}-spin`]:!!i||n.name==="loading"},r);let m=l;m===void 0&&o&&(m=-1);const p=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[b,S]=je(c);return M.createElement("span",ae({role:"img","aria-label":n.name},u,{ref:e,tabIndex:m,onClick:o,className:g}),M.createElement(j,{icon:n,primaryColor:b,secondaryColor:S,style:p}))});D.getTwoToneColor=zt,D.setTwoToneColor=De,process.env.NODE_ENV!=="production"&&(D.displayName="AntdIcon");var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function le(){return le=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},le.apply(this,arguments)}a(le,"_extends$2");const Ht=a((t,e)=>M.createElement(D,le({},t,{ref:e,icon:Mt})),"ClearOutlined"),Pe=M.forwardRef(Ht);process.env.NODE_ENV!=="production"&&(Pe.displayName="ClearOutlined");var Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oe.apply(this,arguments)}a(oe,"_extends$1");const $t=a((t,e)=>M.createElement(D,oe({},t,{ref:e,icon:Vt})),"MinusOutlined"),qe=M.forwardRef($t);process.env.NODE_ENV!=="production"&&(qe.displayName="MinusOutlined");var Lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function ce(){return ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ce.apply(this,arguments)}a(ce,"_extends");const jt=a((t,e)=>M.createElement(D,ce({},t,{ref:e,icon:Lt})),"SearchOutlined"),Be=M.forwardRef(jt);process.env.NODE_ENV!=="production"&&(Be.displayName="SearchOutlined");const Re={serialize(t){return t},deserialize(t){return t}},Ge={serialize(t){return t.map(e=>e.toString())},deserialize(t){return t.map(e=>parseFloat(e))}},Dt=[",",",",";",";"," "];function R(t){const e=A.c(22);let r,n,i,s,l,o;e[0]!==t?({tokenSeparators:i,allowClear:s,serializer:l,value:o,onChange:r,...n}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=s,e[5]=l,e[6]=o):(r=e[1],n=e[2],i=e[3],s=e[4],l=e[5],o=e[6]);const c=i===void 0?Dt:i,u=s===void 0?!0:s,f=l===void 0?Re:l;let d;e[7]!==r||e[8]!==f?(d=a(b=>{if(!r)return;const S=f.deserialize(b);r(S)},"t3"),e[7]=r,e[8]=f,e[9]=d):d=e[9];const g=d;let m=null;if(o)if(Array.isArray(o)){let b;e[10]!==f||e[11]!==o?(b=f.serialize(o),e[10]=f,e[11]=o,e[12]=b):b=e[12],m=b}else{let b;e[13]!==f||e[14]!==o?(b=f.serialize([o]),e[13]=f,e[14]=o,e[15]=b):b=e[15],m=b}let p;return e[16]!==u||e[17]!==g||e[18]!==n||e[19]!==m||e[20]!==c?(p=h.jsx(O.Select,{...n,mode:"tags",open:!1,suffixIcon:null,allowClear:u,tokenSeparators:c,value:m,onChange:g}),e[16]=u,e[17]=g,e[18]=n,e[19]=m,e[20]=c,e[21]=p):p=e[21],p}a(R,"TagInput"),R.displayName="TagInput";const Ue=a(t=>Array.isArray(t)?t:[t,void 0],"convertToRangeValue"),ue=["最小值","最大值"];function Ye(t){const e=A.c(35),r=t.value!==void 0;let n;e[0]!==t.defaultValue?(n=Ue(t.defaultValue),e[0]=t.defaultValue,e[1]=n):n=e[1];const[i,s]=N.useState(n);let l;e[2]!==i||e[3]!==r||e[4]!==t.value?(l=r?Ue(t.value):i,e[2]=i,e[3]=r,e[4]=t.value,e[5]=l):l=e[5];const o=l,[c,u]=o;let f;e[6]!==r||e[7]!==t?(f=a(I=>{r||s(I),t.onChange?.(I)},"t2"),e[6]=r,e[7]=t,e[8]=f):f=e[8];const d=f;let g;e[9]!==u||e[10]!==d?(g=a(I=>{d([I??void 0,u])},"t3"),e[9]=u,e[10]=d,e[11]=g):g=e[11];const m=g;let p;e[12]!==d||e[13]!==c?(p=a(I=>{d([c,I??void 0])},"t4"),e[12]=d,e[13]=c,e[14]=p):p=e[14];const b=p,S=u!==void 0?u:t.max,T=c!==void 0?c:t.min;let C;e[15]!==t.placeholder?(C=t.placeholder?[t.placeholder[0]||ue[0],t.placeholder[1]||ue[1]]:ue,e[15]=t.placeholder,e[16]=C):C=e[16];const v=C;let E;e[17]!==m||e[18]!==v[0]||e[19]!==t.min||e[20]!==t.precision||e[21]!==c||e[22]!==S?(E=h.jsx(O.InputNumber,{value:c,min:t.min,max:S,precision:t.precision,placeholder:v[0],onChange:m}),e[17]=m,e[18]=v[0],e[19]=t.min,e[20]=t.precision,e[21]=c,e[22]=S,e[23]=E):E=e[23];let F;e[24]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(O.Input,{style:{width:30,borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),e[24]=F):F=e[24];let w;e[25]!==u||e[26]!==T||e[27]!==b||e[28]!==v[1]||e[29]!==t.max||e[30]!==t.precision?(w=h.jsx(O.InputNumber,{value:u,min:T,max:t.max,precision:t.precision,placeholder:v[1],onChange:b}),e[25]=u,e[26]=T,e[27]=b,e[28]=v[1],e[29]=t.max,e[30]=t.precision,e[31]=w):w=e[31];let z;return e[32]!==E||e[33]!==w?(z=h.jsxs(O.Space.Compact,{block:!0,children:[E,F,w]}),e[32]=E,e[33]=w,e[34]=z):z=e[34],z}a(Ye,"NumberRange");const Pt=a((t,e)=>!t||!e?!1:!(Array.isArray(e)&&e.length===0),"defaultValueValidate"),qt=a((t,e,r)=>r,"defaultValueConverter");function Qe(t){const e=A.c(27),[r,n]=N.useState(t.operator),[i,s]=N.useState(t.value),l=t.validate??Pt,o=t.valueConverter??qt;let c;e[0]!==t.field||e[1]!==l?(c=a((C,v)=>l(C,v)?{condition:{field:t.field,operator:C,value:v}}:void 0,"t0"),e[0]=t.field,e[1]=l,e[2]=c):c=e[2];const u=c;let f;e[3]!==r||e[4]!==t||e[5]!==u||e[6]!==i||e[7]!==o?(f=a(C=>{const v=o(r,C,i);n(C),s(v);const E=u(C,v);t.onChange?.(E)},"t1"),e[3]=r,e[4]=t,e[5]=u,e[6]=i,e[7]=o,e[8]=f):f=e[8];const d=f;let g;e[9]!==r||e[10]!==t||e[11]!==u?(g=a(C=>{s(C);const v=u(r,C);t.onChange?.(v)},"t2"),e[9]=r,e[10]=t,e[11]=u,e[12]=g):g=e[12];const m=g;let p;e[13]!==t||e[14]!==u?(p=a(()=>{n(t.operator),s(t.value);const C=u(t.operator,t.value);t.onChange?.(C)},"t3"),e[13]=t,e[14]=u,e[15]=p):p=e[15];const b=p;let S;e[16]!==r||e[17]!==b||e[18]!==u||e[19]!==i?(S=a(()=>({getValue(){return u(r,i)},reset:b}),"t4"),e[16]=r,e[17]=b,e[18]=u,e[19]=i,e[20]=S):S=e[20],N.useImperativeHandle(t.ref,S);let T;return e[21]!==r||e[22]!==b||e[23]!==d||e[24]!==m||e[25]!==i?(T={operator:r,value:i,setOperator:d,setValue:m,reset:b},e[21]=r,e[22]=b,e[23]=d,e[24]=m,e[25]=i,e[26]=T):T=e[26],T}a(Qe,"useFilterState");function G(t){const e=A.c(15),{ref:r,...n}=t,i=n.operator?.supportedOperators??n.supportedOperators;if(!i||i.length===0)throw new Error("supportedOperators must be a non-empty array");const s=n.operator?.locale??ve;let l=n.operator?.defaultValue;(!l||!i.includes(l))&&(l=i[0]);const o=Qe({field:n.field.name,operator:l,value:n.value?.defaultValue,ref:r,valueConverter:n.valueConverter,validate:n.validate,onChange:n.onChange}),c=n.valueInputSupplier(o),u=i.map(p=>({value:p,label:s[p]}));let f;e[0]!==n.field.label||e[1]!==n.label?(f=h.jsx(O.Button,{...n.label,children:n.field.label}),e[0]=n.field.label,e[1]=n.label,e[2]=f):f=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={minWidth:120},e[3]=d):d=e[3];let g;e[4]!==o.operator||e[5]!==o.setOperator||e[6]!==u||e[7]!==n.operator?(g=h.jsx(O.Select,{style:d,onChange:o.setOperator,...n.operator,value:o.operator,options:u}),e[4]=o.operator,e[5]=o.setOperator,e[6]=u,e[7]=n.operator,e[8]=g):g=e[8];let m;return e[9]!==n.className||e[10]!==n.style||e[11]!==f||e[12]!==g||e[13]!==c?(m=h.jsxs(O.Space.Compact,{block:!0,style:n.style,className:n.className,children:[f,g,c]}),e[9]=n.className,e[10]=n.style,e[11]=f,e[12]=g,e[13]=c,e[14]=m):m=e[14],m}a(G,"AssemblyFilter");const Ke="text";function fe(t){const e=A.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.EQ,_.Operator.NE,_.Operator.CONTAINS,_.Operator.STARTS_WITH,_.Operator.ENDS_WITH,_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>{switch(s.operator){case _.Operator.IN:case _.Operator.NOT_IN:return h.jsx(R,{value:s.value,onChange:s.setValue,...t.value});default:return h.jsx(O.Input,{value:s.value,onChange:a(l=>s.setValue(l.target.value),"onChange"),allowClear:!0,...t.value})}},"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueInputSupplier:n};i=h.jsx(G,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(fe,"TextFilter"),fe.displayName="TextFilter";const Xe="id",Je=a((t,e,r)=>{if(r==null)return r;if(e===_.Operator.ID)return Array.isArray(r)?r[0]:r;if(Array.isArray(r))return r;const n=r.trim();return n?[n]:[]},"IdOnOperatorChangeValueConverter");function he(t){const e=A.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.ID,_.Operator.IDS],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>s.operator===_.Operator.ID?h.jsx(O.Input,{value:s.value,onChange:a(l=>s.setValue(l.target.value),"onChange"),allowClear:!0,...t.value}):h.jsx(R,{value:s.value,onChange:s.setValue,...t.value}),"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueConverter:Je,valueInputSupplier:n};i=h.jsx(G,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(he,"IdFilter"),he.displayName="IdConditionFilter";const Ze="number";function de(t){const e=A.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.EQ,_.Operator.NE,_.Operator.GT,_.Operator.LT,_.Operator.GTE,_.Operator.LTE,_.Operator.BETWEEN,_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>{switch(s.operator){case _.Operator.IN:case _.Operator.NOT_IN:return h.jsx(R,{value:s.value,serializer:Ge,onChange:a(l=>s.setValue(l),"onChange"),...t.value});case _.Operator.BETWEEN:{const{placeholder:l,...o}=t.value??{};return h.jsx(Ye,{value:s.value,onChange:s.setValue,...o})}default:{const{defaultValue:l,...o}=t.value??{},c=Array.isArray(l)?l[0]:l,u=Array.isArray(s.value)?s.value[0]:s.value;return h.jsx(O.InputNumber,{value:u,defaultValue:c,onChange:a(f=>{s.setValue(f??void 0)},"onChange"),...o})}}},"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,validate:Bt,valueInputSupplier:n};i=h.jsx(G,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(de,"NumberFilter");function Bt(t,e){return t===_.Operator.BETWEEN?Array.isArray(e)?e[0]!==void 0&&e[1]!==void 0:!1:e!=null}a(Bt,"_temp$2"),de.displayName="NumberFilter";const We="select";function ge(t){const e=A.c(6);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[_.Operator.IN,_.Operator.NOT_IN],e[0]=r):r=e[0];let n;e[1]!==t.value?(n=a(s=>h.jsx(O.Select,{mode:"multiple",value:s.value,onChange:s.setValue,allowClear:!0,...t.value}),"t1"),e[1]=t.value,e[2]=n):n=e[2];let i;if(e[3]!==t||e[4]!==n){const s={...t,supportedOperators:r,valueInputSupplier:n};i=h.jsx(G,{...s}),e[3]=t,e[4]=n,e[5]=i}else i=e[5];return i}a(ge,"SelectFilter"),ge.displayName="SelectFilter";const be=class be{constructor(){this.filters=new Map,this.register(Xe,he),this.register(Ke,fe),this.register(Ze,de),this.register(We,ge)}register(e,r){this.filters.set(e,r)}unregister(e){return this.filters.delete(e)}get(e){return this.filters.get(e)}};a(be,"FilterRegistry");let Q=be;const et=new Q;function me(t){const e=A.c(2),{type:r,ref:n}=t;N.useImperativeHandle(n,Rt);const i=`Unsupported filter type:[${r}]`;let s;return e[0]!==i?(s=h.jsx(O.Alert,{message:i,type:"warning",showIcon:!0}),e[0]=i,e[1]=s):s=e[1],s}a(me,"FallbackFilter");function Rt(){return{getValue(){},reset(){}}}a(Rt,"_temp$1"),me.displayName="FallbackFilter";function K(t){const e=A.c(5);let r;e[0]!==t.type?(r=et.get(t.type)||me,e[0]=t.type,e[1]=r):r=e[1];const n=r;let i;return e[2]!==n||e[3]!==t?(i=N.createElement(n,t),e[2]=n,e[3]=t,e[4]=i):i=e[4],i}a(K,"TypedFilter"),K.displayName="TypedFilter";function tt(t){const e=A.c(15);let r,n;e[0]!==t?({onRemove:r,...n}=t,e[0]=t,e[1]=r,e[2]=n):(r=e[1],n=e[2]);const[i,s]=N.useState(!1);if(!r){let d;return e[3]!==n?(d=h.jsx(K,{...n}),e[3]=n,e[4]=d):d=e[4],d}let l,o;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a(()=>s(!0),"t0"),o=a(()=>s(!1),"t1"),e[5]=l,e[6]=o):(l=e[5],o=e[6]);let c;e[7]!==n?(c=h.jsx(K,{...n}),e[7]=n,e[8]=c):c=e[8];let u;e[9]!==r||e[10]!==i?(u=i&&h.jsx(O.Button,{type:"dashed",shape:"circle",size:"small",onClick:r,icon:h.jsx(qe,{})}),e[9]=r,e[10]=i,e[11]=u):u=e[11];let f;return e[12]!==c||e[13]!==u?(f=h.jsxs(O.Space,{onMouseOver:l,onMouseOut:o,children:[c,u]}),e[12]=c,e[13]=u,e[14]=f):f=e[14],f}a(tt,"RemovableTypedFilter");const Gt={gutter:[8,8],wrap:!0},Ut={xxl:6,xl:8,lg:12,md:12,sm:24,xs:24},Yt={span:12};function nt(t){const e=A.c(34),{row:r,col:n,actionsCol:i,filters:s,onSearch:l,actions:o,resetButton:c,searchButton:u}=t,f=r===void 0?Gt:r,d=n===void 0?Ut:n,g=i===void 0?Yt:i,m=ye.useRefs();let p;e[0]!==m||e[1]!==l?(p=a(()=>{if(!l)return;const $=Array.from(m.values()).map(Qt).filter(Boolean),V=_.and(...$);l(V)},"t3"),e[0]=m,e[1]=l,e[2]=p):p=e[2];const b=p;let S;e[3]!==m?(S=a(()=>{for(const $ of m.values())$.reset()},"t4"),e[3]=m,e[4]=S):S=e[4];const T=S,C=c!==!1;let v;e[5]!==c?(v=typeof c=="object"?c:{},e[5]=c,e[6]=v):v=e[6];const E=v;let F;if(e[7]!==d||e[8]!==m||e[9]!==s){let $;e[11]!==d||e[12]!==m?($=a(V=>N.createElement(O.Col,{...d,key:V.key},h.jsx(tt,{type:V.type,field:V.field,operator:V.operator,value:V.value,onRemove:V.onRemove,ref:m.register(V.key)},V.key)),"t72"),e[11]=d,e[12]=m,e[13]=$):$=e[13],F=s.map($),e[7]=d,e[8]=m,e[9]=s,e[10]=F}else F=e[10];let w;e[14]!==T||e[15]!==E||e[16]!==C?(w=C&&h.jsx(O.Button,{icon:h.jsx(Pe,{}),onClick:T,...E,children:E?.children||"Reset"}),e[14]=T,e[15]=E,e[16]=C,e[17]=w):w=e[17];let z;e[18]===Symbol.for("react.memo_cache_sentinel")?(z=h.jsx(Be,{}),e[18]=z):z=e[18];const I=u?.children||"Search";let x;e[19]!==b||e[20]!==u||e[21]!==I?(x=h.jsx(O.Button,{type:"primary",icon:z,onClick:b,...u,children:I}),e[19]=b,e[20]=u,e[21]=I,e[22]=x):x=e[22];let H;e[23]!==o||e[24]!==x||e[25]!==w?(H=h.jsxs(O.Space.Compact,{children:[o,w,x]}),e[23]=o,e[24]=x,e[25]=w,e[26]=H):H=e[26];let P;e[27]!==g||e[28]!==H?(P=h.jsx(O.Col,{...g,children:H}),e[27]=g,e[28]=H,e[29]=P):P=e[29];let J;return e[30]!==f||e[31]!==P||e[32]!==F?(J=h.jsx(h.Fragment,{children:h.jsxs(O.Row,{...f,children:[F,P]})}),e[30]=f,e[31]=P,e[32]=F,e[33]=J):J=e[33],J}a(nt,"FilterPanel");function Qt(t){return t?.getValue()?.condition}a(Qt,"_temp");function Kt(t){const e=A.c(27),{row:r,col:n,availableFilters:i,filters:s,onSearch:l}=t,[o,c]=N.useState(s),[u,f]=N.useState(!1),d=ye.useRequestId();let g;e[0]!==o||e[1]!==d?(g=a(I=>{if(I.length===0){f(!1);return}const x=I.map(H=>({key:d.generate(),type:H.component,field:H.field}));c([...o,...x]),f(!1)},"t0"),e[0]=o,e[1]=d,e[2]=g):g=e[2];const m=g;let p;e[3]!==o?(p=a(I=>{const x=o.filter(H=>H.key!==I);c(x)},"t1"),e[3]=o,e[4]=p):p=e[4];const b=p;let S;if(e[5]!==o||e[6]!==b){let I;e[8]!==b?(I=a(x=>({...x,onRemove:a(()=>b(x.key),"onRemove")}),"t32"),e[8]=b,e[9]=I):I=e[9],S=o.map(I),e[5]=o,e[6]=b,e[7]=S}else S=e[7];const T=S;let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=h.jsx(O.Button,{onClick:a(()=>f(!0),"onClick"),children:"Add Filter"}),e[10]=C):C=e[10];let v;e[11]!==n||e[12]!==T||e[13]!==l||e[14]!==r?(v=h.jsx(nt,{filters:T,onSearch:l,actions:C,row:r,col:n}),e[11]=n,e[12]=T,e[13]=l,e[14]=r,e[15]=v):v=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=a(()=>f(!1),"t5"),e[16]=E):E=e[16];let F;e[17]!==o||e[18]!==i?(F={filters:i,activeFilters:o},e[17]=o,e[18]=i,e[19]=F):F=e[19];let w;e[20]!==m||e[21]!==u||e[22]!==F?(w=h.jsx(Ce,{title:"Add Filter",open:u,onCancel:E,onSave:m,availableFilters:F}),e[20]=m,e[21]=u,e[22]=F,e[23]=w):w=e[23];let z;return e[24]!==v||e[25]!==w?(z=h.jsxs(h.Fragment,{children:[v,w]}),e[24]=v,e[25]=w,e[26]=z):z=e[26],z}a(Kt,"EditableFilterPanel"),y.AssemblyFilter=G,y.AvailableFilterSelect=pe,y.AvailableFilterSelectModal=Ce,y.EditableFilterPanel=Kt,y.FallbackFilter=me,y.FilterPanel=nt,y.FilterRegistry=Q,y.ID_FILTER=Xe,y.IdFilter=he,y.IdOnOperatorChangeValueConverter=Je,y.NUMBER_FILTER=Ze,y.NumberFilter=de,y.NumberRange=Ye,y.NumberTagValueItemSerializer=Ge,y.OPERATOR_zh_CN=ve,y.RemovableTypedFilter=tt,y.SELECT_FILTER=We,y.SelectFilter=ge,y.StringTagValueItemSerializer=Re,y.TEXT_FILTER=Ke,y.TagInput=R,y.TextFilter=fe,y.TypedFilter=K,y.filterRegistry=et,y.useFilterState=Qe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
60
60
  //# sourceMappingURL=index.umd.js.map