aha-components 1.6.2 → 1.6.4

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/Table.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import i,{createContext as o,useContext as r,useState as l,forwardRef as a,useRef as d,useEffect as s,useCallback as c,useMemo as p}from"react";import{createPortal as u}from"react-dom";var f=function(){return f=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},f.apply(this,arguments)};function h(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}function x(e,n,t){if(t||2===arguments.length)for(var i,o=0,r=n.length;o<r;o++)!i&&o in n||(i||(i=Array.prototype.slice.call(n,0,o)),i[o]=n[o]);return e.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var g={primaryColor:"#FB6011"},v=o(g),m=function(){var e=r(v);return e||g},y={small:{height:"32px",paddingLeft:"12px",paddingRight:"12px",fontSize:"14px",lineHeight:"20px",iconSize:"16px",gap:"6px"},mediumSmall:{height:"36px",paddingLeft:"14px",paddingRight:"14px",fontSize:"14px",lineHeight:"20px",iconSize:"16px",gap:"6px"},medium:{height:"40px",paddingLeft:"16px",paddingRight:"16px",fontSize:"14px",lineHeight:"20px",iconSize:"18px",gap:"8px"},large:{height:"48px",paddingLeft:"20px",paddingRight:"20px",fontSize:"16px",lineHeight:"24px",iconSize:"20px",gap:"8px"}},b=function(i){var o=i.size,r=i.color;return e(t,{children:[n("style",{children:"\n @keyframes aha-button-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),e("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",style:{animation:"aha-button-spin 1s linear infinite"},children:[n("circle",{cx:"12",cy:"12",r:"10",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"24",opacity:"0.3"}),n("circle",{cx:"12",cy:"12",r:"10",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"16"})]})]})},w=function(t){var i,o=t.children,r=t.type,a=void 0===r?"default":r,d=t.size,s=void 0===d?"medium":d,c=t.disabled,p=void 0!==c&&c,u=t.loading,x=void 0!==u&&u,g=t.onClick,v=t.htmlType,w=void 0===v?"button":v,k=t.className,C=void 0===k?"":k,S=t.style,F=t.icon,A=t.iconPosition,z=void 0===A?"left":A,W=h(t,["children","type","size","disabled","loading","onClick","htmlType","className","style","icon","iconPosition"]),L=m().primaryColor,E=void 0===L?"#FB6011":L,D=l(!1),I=D[0],B=D[1],j=l(!1),N=j[0],M=j[1],R=y[s],H=p||x,T=function(){if(x){var e="primary"===a?"#FFFFFF":"#101828",t=parseInt(R.iconSize.replace("px",""));return n(b,{size:t,color:e})}return F?n("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:R.iconSize,height:R.iconSize,flexShrink:0},children:F}):null},O=(i=f({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:R.gap,height:R.height,paddingLeft:R.paddingLeft,paddingRight:R.paddingRight,fontSize:R.fontSize,lineHeight:R.lineHeight,fontWeight:500,fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"none",cursor:H?"not-allowed":"pointer",outline:"none",transition:"all 0.2s",userSelect:"none",WebkitTapHighlightColor:"transparent"},S),"primary"===a?(i.color="#FFFFFF",i.backgroundColor=E,p?(i.opacity=.4,i.cursor="not-allowed"):x?i.backgroundColor=E:N?i.backgroundColor="#EC470A":I&&(i.backgroundColor="#FD843A")):p?(i.backgroundColor="#FAFAF9",i.color="#D6D3D1",i.border="1px solid #E7E5E4"):x?(i.backgroundColor="#FFFFFF",i.color="#101828",i.border="1px solid #E7E5E4",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):N?(i.backgroundColor="#F5F5F4",i.color="#101828",i.border="1px solid #D7D3D0",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):I?(i.backgroundColor="#FAFAF9",i.color="#101828",i.border="1px solid #D7D3D0",i.boxShadow="0px 2px 4px 0px rgba(12, 10, 9, 0.08)"):(i.backgroundColor="#FFFFFF",i.color="#101828",i.border="1px solid #E7E5E4",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"),i);return e("button",f({type:w,className:"aha-button aha-button--".concat(a," aha-button--").concat(s," ").concat(H?"aha-button--disabled":""," ").concat(x?"aha-button--loading":""," ").concat(C),disabled:H,onClick:function(e){H?e.preventDefault():null==g||g(e)},onMouseEnter:function(){return!H&&B(!0)},onMouseLeave:function(){B(!1),M(!1)},onMouseDown:function(){return!H&&M(!0)},onMouseUp:function(){return M(!1)},style:O},W,{children:[x&&T(),!x&&"left"===z&&T(),o&&n("span",{style:{display:"inline-block"},children:o}),!x&&"right"===z&&T()]}))};w.displayName="Button";var k=a(function(o,r){var l=o.size,a=void 0===l?"medium":l,c=o.disabled,p=void 0!==c&&c,u=o.error,x=void 0!==u&&u,g=o.readOnly,v=void 0!==g&&g,y=o.prefix,b=o.suffix,w=o.allowClear,k=void 0!==w&&w,C=o.onClear,S=o.className,F=void 0===S?"":S,A=o.style,z=o.type,W=void 0===z?"text":z,L=o.placeholder,E=o.value,D=o.defaultValue,I=o.onChange,B=o.onFocus,j=o.onBlur,N=o.onPressEnter,M=h(o,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter"]),R=m().primaryColor,H=void 0===R?"#FB6011":R,T=d(null),O=i.useState(D||E||""),P=O[0],K=O[1],Y=i.useState(!1),V=Y[0],J=Y[1];s(function(){"function"==typeof r?r(T.current):r&&(r.current=T.current)},[r]);var Q=void 0!==E,q=Q?E:P,U=function(e){var n;e.stopPropagation(),Q||K("");null==I||I({target:{value:""},currentTarget:{value:""}}),null==C||C(),null===(n=T.current)||void 0===n||n.focus()},X=k&&q&&!p,G={small:{height:"32px",paddingTop:"3px",paddingBottom:"3px"},mediumSmall:{height:"36px",paddingTop:"5px",paddingBottom:"5px"},medium:{height:"40px",paddingTop:"7px",paddingBottom:"7px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px"}},_=b||X?"40px":"12px",Z=f({width:"100%",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(x?"#F04438":V?H:"#D7D3D0"),backgroundColor:p||v?"#FAFAF9":"#FFFFFF",color:p?"#98A2B3":"#1C1917",fontSize:"16px",fontWeight:400,lineHeight:"24px",paddingLeft:y?"40px":"12px",paddingRight:_,paddingTop:G[a].paddingTop,paddingBottom:G[a].paddingBottom,transition:"all 0.2s",outline:"none",WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"},A);return e(t,{children:[n("style",{children:'\n .aha-input-wrapper input::placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input::-webkit-input-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input::-moz-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input:-ms-input-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n /* 移动端优化 */\n .aha-input-wrapper input {\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n touch-action: manipulation;\n }\n /* 移除数字输入框的上下箭头 */\n .aha-input-wrapper input[type="number"]::-webkit-inner-spin-button,\n .aha-input-wrapper input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n .aha-input-wrapper input[type="number"] {\n -moz-appearance: textfield;\n }\n '}),e("div",{className:"aha-input-wrapper ".concat(F),style:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%"},children:[y&&n("span",{style:{position:"absolute",left:"12px",display:"flex",alignItems:"center",color:p?"#98A2B3":"#78716C",zIndex:1,pointerEvents:"none"},children:y}),n("input",f({ref:T,type:W,value:q,placeholder:L,disabled:p,readOnly:v,onChange:function(e){Q||K(e.target.value),null==I||I(e)},onFocus:function(e){J(!0),null==B||B(e)},onBlur:function(e){J(!1),null==j||j(e)},onKeyDown:function(e){var n;"Enter"===e.key&&N&&N(e),null===(n=M.onKeyDown)||void 0===n||n.call(M,e)},style:Z,autoComplete:M.autoComplete||"off",autoCorrect:M.autoCorrect||"off",autoCapitalize:M.autoCapitalize||"off",spellCheck:M.spellCheck||!1},M)),(b||X)&&e("span",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px",color:p?"#98A2B3":"#78716C",zIndex:1},children:[X&&n(function(){return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:U,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:n("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),b&&n("span",{style:{pointerEvents:"none"},children:b})]})]})]})});k.displayName="Input";var C=function(o){var r,a=o.value,h=o.defaultValue,g=o.options,v=void 0===g?[]:g,y=o.mode,b=o.disabled,w=void 0!==b&&b,k=o.error,C=void 0!==k&&k,S=o.placeholder,F=void 0===S?"Please select":S,A=o.size,z=void 0===A?"medium":A,W=o.showSearch,L=void 0!==W&&W,E=o.filterOption,D=void 0===E||E,I=o.allowClear,B=void 0!==I&&I,j=o.onChange,N=o.onSelect,M=o.onDeselect,R=o.onSearch,H=o.onFocus,T=o.onBlur,O=o.onDropdownVisibleChange,P=o.className,K=void 0===P?"":P,Y=o.style,V=o.dropdownClassName,J=void 0===V?"":V,Q=o.dropdownStyle,q=o.defaultOpen,U=void 0!==q&&q,X=o.open,G=o.maxTagCount,_=o.tagRender,Z=o.optionRender,$=m().primaryColor,ee=void 0===$?"#FB6011":$,ne=l(void 0!==h?h:y?[]:void 0),te=ne[0],ie=ne[1],oe=l(U),re=oe[0],le=oe[1],ae=l(""),de=ae[0],se=ae[1],ce=l(-1),pe=ce[0],ue=ce[1],fe=d(null),he=d(null),xe=d(null),ge=l(null),ve=ge[0],me=ge[1],ye=void 0!==a,be=void 0!==X,we=ye?a:te,ke=be?X:re,Ce="multiple"===y||"tags"===y,Se=c(function(){if(!we)return[];var e=Array.isArray(we)?we:[we];return v.filter(function(n){return e.includes(n.value)})},[we,v]),Fe=c(function(){return L&&de?!1===D?v:"function"==typeof D?v.filter(function(e){return D(de,e)}):v.filter(function(e){var n=String(e.label||"").toLowerCase(),t=de.toLowerCase();return n.includes(t)}):v},[v,de,L,D]),Ae=p(function(){return Fe()},[Fe]);s(function(){if(ke&&fe.current){var e=function(){var e,n;if(fe.current){var t=fe.current.getBoundingClientRect(),i=null!==(n=null===(e=xe.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:Math.min(256,Math.max(40,40*Ae.length)),o=window.innerHeight-t.bottom,r=t.top,l=o<i+4&&r>o,a=l?t.top+window.scrollY-i-4:t.bottom+window.scrollY+4;me({top:a,left:t.left+window.scrollX,width:t.width,placement:l?"top":"bottom"})}};return e(),requestAnimationFrame(e),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}me(null)},[ke,Ae.length]),s(function(){var e=function(e){var n=e.target;fe.current&&!fe.current.contains(n)&&xe.current&&!xe.current.contains(n)&&(be||le(!1),null==O||O(!1),se(""))};if(ke)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0)}},[ke,be,O]),s(function(){if(ke){var e=function(e){var n;if("ArrowDown"===e.key)e.preventDefault(),ue(function(e){return e<Ae.length-1?e+1:e});else if("ArrowUp"===e.key)e.preventDefault(),ue(function(e){return e>0?e-1:0});else if("Enter"===e.key&&pe>=0){e.preventDefault();var t=Ae[pe];t&&!t.disabled&&ze(t)}else"Escape"===e.key&&(e.preventDefault(),be||le(!1),null==O||O(!1),null===(n=fe.current)||void 0===n||n.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[ke,Ae,pe,be,O]),s(function(){if(pe>=0&&xe.current){var e=xe.current.querySelectorAll(".aha-select-option")[pe];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[pe]);var ze=c(function(e){var n;if(!e.disabled)if(Ce){var t,i=Array.isArray(we)?we:[];i.includes(e.value)?(t=i.filter(function(n){return n!==e.value}),null==M||M(e.value,e)):(t=x(x([],i,!0),[e.value],!1),null==N||N(e.value,e)),ye||ie(t);var o=v.filter(function(e){return t.includes(e.value)});null==j||j(t,o)}else ye||ie(e.value),null==j||j(e.value,e),null==N||N(e.value,e),be||le(!1),null==O||O(!1),se(""),null===(n=fe.current)||void 0===n||n.focus()},[Ce,we,ye,be,v,j,N,M,O]),We=c(function(e,n){if(e.stopPropagation(),Ce&&Array.isArray(we)){var t=we.filter(function(e){return e!==n}),i=v.find(function(e){return e.value===n});ye||ie(t),null==j||j(t,Se()),null==M||M(n,i)}},[Ce,we,ye,v,j,M,Se]),Le=function(e){e.stopPropagation();var n=Ce?[]:void 0;ye||ie(n),null==j||j(n,[]),se("")},Ee={small:{height:"32px",paddingTop:"3px",paddingBottom:"3px",fontSize:"16px",lineHeight:"24px"},mediumSmall:{height:"36px",paddingTop:"5px",paddingBottom:"5px",fontSize:"16px",lineHeight:"24px"},medium:{height:"40px",paddingTop:"7px",paddingBottom:"7px",fontSize:"16px",lineHeight:"24px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px",fontSize:"16px",lineHeight:"24px"}},De=p(function(){return Se()},[Se]),Ie=p(function(){return B&&we&&!w},[B,we,w]),Be=p(function(){return Ce?Array.isArray(we)&&we.length>0:null!=we&&""!==we},[Ce,we]),je=p(function(){if(!Ce||!Array.isArray(we)||0===we.length)return null;var t="responsive"===G?De.slice(0,2):G?De.slice(0,G):De,o=G&&De.length>t.length?De.length-t.length:0;return e("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px",flex:1,minWidth:0},children:[t.map(function(t){var o={label:t.label,value:t.value,closable:!w,onClose:function(){return We({},t.value)}};return _?n(i.Fragment,{children:_(o)},t.value):e("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",backgroundColor:"#F5F5F4",borderRadius:"4px",fontSize:"12px",lineHeight:"18px",color:"#101828",fontFamily:"DM Sans, sans-serif",maxWidth:"100%"},children:[n("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),!w&&n("span",{onClick:function(e){return We(e,t.value)},style:{cursor:"pointer",display:"flex",alignItems:"center",color:"#78716C",marginLeft:"4px"},children:n("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]},t.value)}),o>0&&e("span",{style:{fontSize:"12px",lineHeight:"18px",color:"#78716C",fontFamily:"DM Sans, sans-serif"},children:["+",o]})]})},[Ce,we,De,G,w,_]);return e(t,{children:[n("style",{children:"\n @keyframes dropdownFadeIn {\n from {\n opacity: 0;\n transform: translateY(-8px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n "}),e("div",{ref:fe,className:"aha-select ".concat(K),style:f({position:"relative",display:"inline-flex",alignItems:"center",width:"100%",minWidth:"120px",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(C?"#F04438":ke?ee:"#D7D3D0"),backgroundColor:w?"#FAFAF9":"#FFFFFF",cursor:w?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:Ee[z].paddingTop,paddingBottom:Ee[z].paddingBottom,fontSize:Ee[z].fontSize,lineHeight:Ee[z].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},Y),onClick:function(){if(!w){var e=!ke;be||le(e),null==O||O(e),e&&L?setTimeout(function(){var e;null===(e=he.current)||void 0===e||e.focus()},0):se("")}},onFocus:function(e){null==H||H(e)},onBlur:function(e){null==T||T(e)},onTouchStart:function(e){w||(e.currentTarget.style.opacity="0.8")},onTouchEnd:function(e){e.currentTarget.style.opacity="1"},tabIndex:w?-1:0,children:[n("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0,gap:"8px"},children:Ce?je||n("span",F?{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400},children:F}:{style:{flex:1,minHeight:"24px"}}):L&&ke?n("input",{ref:he,type:"text",value:de,onChange:function(e){var n=e.target.value;se(n),null==R||R(n),ue(-1)},onClick:function(e){return e.stopPropagation()},onFocus:function(e){return e.stopPropagation()},style:{flex:1,border:"none",outline:"none",background:"transparent",fontSize:"16px",lineHeight:"24px",fontWeight:400,color:w?"#98A2B3":"#1C1917",fontFamily:"DM Sans, sans-serif",minWidth:0,WebkitAppearance:"none",appearance:"none"},placeholder:Be?void 0:F,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):n("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:Be?w?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:Be?(null===(r=De[0])||void 0===r?void 0:r.label)||we:F||" "})}),e("div",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[Ie&&n(function(){return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:Le,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:n("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),n(function(e){var t=e.isOpen;return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out",flexShrink:0},children:n("path",{d:"M4 6L8 10L12 6",stroke:"#78716C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{isOpen:ke})]})]}),ke&&ve&&u(n("div",{ref:xe,className:"aha-select-dropdown ".concat(J),style:f({position:"absolute",top:"".concat(ve.top,"px"),left:"".concat(ve.left,"px"),width:"".concat(ve.width,"px"),zIndex:1050,backgroundColor:"#FFFFFF",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",border:"1px solid #E7E5E4",maxHeight:"256px",overflow:"auto",opacity:0,transform:"top"===ve.placement?"translateY(8px)":"translateY(-8px)",animation:"dropdownFadeIn 0.2s ease-out forwards",transformOrigin:"top"===ve.placement?"bottom center":"top center",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},Q),children:0===Ae.length?n("div",{style:{padding:"8px 16px",textAlign:"center",color:"#78716C",fontSize:"14px",fontFamily:"DM Sans, sans-serif"},children:"No data"}):Ae.map(function(t,i){var o=Ce?Array.isArray(we)&&we.includes(t.value):we===t.value,r=i===pe;return Z?n("div",{className:"aha-select-option ".concat(t.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return!t.disabled&&ze(t)},style:{cursor:t.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:Z(t,{selected:o,focused:r,disabled:t.disabled||!1})},t.value):e("div",{className:"aha-select-option ".concat(t.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return ze(t)},style:{padding:"8px 16px",cursor:t.disabled?"not-allowed":"pointer",color:t.disabled?"#98A2B3":"#101828",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s"},children:[n("span",{children:t.label}),o&&n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r?"hidden":"",children:n("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:ee,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},t.value)})}),document.body)]})};C.displayName="Select";var S=function(e){var t=e.className,i=e.style;return n("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},F=function(e){var t=e.className,i=e.style;return n("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M3.5 7H10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},A=function(e){var t=e.className,i=e.style;return n("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M3.5 7.5L6 10L8.5 7.5M3.5 4.5L6 2L8.5 4.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},z=function(t){var i=t.className,o=t.style;return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,style:o,children:[n("path",{d:"M3.5 4.5L6 2L8.5 4.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M3.5 7.5L6 10L8.5 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},W=function(t){var i=t.className,o=t.style;return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,style:o,children:[n("path",{d:"M8.5 7.5L6 10L3.5 7.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M8.5 4.5L6 2L3.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},L=function(e){var t=e.className,i=e.style;return n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M15.8334 10H4.16675M4.16675 10L10.0001 15.8334M4.16675 10L10.0001 4.16669",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},E=function(e){var t=e.className,i=e.style;return n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M4.16675 10H15.8334M15.8334 10L10.0001 4.16669M15.8334 10L10.0001 15.8334",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},D=function(i){var o=i.current,r=i.defaultCurrent,a=void 0===r?1:r,d=i.total,c=void 0===d?0:d,u=i.pageSize,h=i.defaultPageSize,x=void 0===h?10:h,g=i.showSizeChanger,v=void 0!==g&&g,y=i.pageSizeOptions,b=void 0===y?["10","20","50","100"]:y,S=i.showQuickJumper,F=void 0!==S&&S,A=i.showTotal,z=i.onChange,W=i.onShowSizeChange,D=i.simple,I=void 0!==D&&D,B=i.disabled,j=void 0!==B&&B,N=i.hideOnSinglePage,M=void 0!==N&&N,R=i.className,H=void 0===R?"":R,T=i.style,O=i.size,P=void 0===O?"default":O,K=i.responsive,Y=void 0!==K&&K;i.showLessItems;var V=i.itemRender,J=m().primaryColor,Q=void 0===J?"#FB6011":J,q=l(a),U=q[0],X=q[1],G=l(x),_=G[0],Z=G[1],$=l(""),ee=$[0],ne=$[1],te=null!=o?o:U,ie=null!=u?u:_,oe=p(function(){return Math.ceil(c/ie)},[c,ie]);s(function(){void 0!==o&&X(o)},[o]),s(function(){void 0!==u&&Z(u)},[u]);var re=function(e){e<1||e>oe||e===te||j||(void 0===o&&X(e),null==z||z(e,ie))},le=function(){var e=parseInt(ee,10);e>=1&&e<=oe&&(re(e),ne(""))};if(M&&oe<=1)return null;if(I)return e("div",{className:"aha-pagination aha-pagination-simple ".concat(H),style:T,children:[n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(L,{})}),e("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[te," / ",oe]}),n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(E,{})})]});var ae=(te-1)*ie+1,de=Math.min(te*ie,c);return e("div",{className:"aha-pagination w-full ".concat(H),style:f({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:Y?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},T),children:[A&&n("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:A(c,[ae,de])}),e("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[c>0&&n(t,{children:V?V(te-1,"prev",n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(L,{})})):n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(L,{})})}),n("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(oe<=7)return Array.from({length:oe},function(e,n){return n+1});var e=[];if(te<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(oe)}else if(te>=oe-3){e.push(1),e.push("jump-prev");for(n=oe-4;n<=oe;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=te-1;n<=te+1;n++)e.push(n);e.push("jump-next"),e.push(oe)}return e}().map(function(e){return function(e){if("number"==typeof e){var t=e===te,i=n(w,{onClick:function(){return re(e)},disabled:j,type:t?"primary":"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,fontWeight:t?500:400,border:t?"1px solid ".concat(Q):void 0,boxShadow:"none",borderRadius:"8px"},children:e},e);return V?V(e,"page",i):i}if("jump-prev"===e)return i=n(w,{onClick:function(){return re(Math.max(1,te-5))},disabled:j,type:"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),V?V(te-5,"jump-prev",i):i;if("jump-next"===e)return i=n(w,{onClick:function(){return re(Math.min(oe,te+5))},disabled:j,type:"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),V?V(te+5,"jump-next",i):i;return null}(e)})}),c>0&&n(t,{children:V?V(te+1,"next",n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(E,{})})):n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(E,{})})}),v&&n(C,{value:ie,options:b.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return n=Number(e),t=Math.ceil(c/n),i=te>t?t:te,void 0===u&&Z(n),void 0===o&&X(i),null==W||W(i,n),void(null==z||z(i,n));var n,t,i},disabled:j,size:"small"===P?"small":"medium",style:{minWidth:"small"===P?80:96}}),F&&e("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"DM Sans, sans-serif"},children:[n("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"Go to"}),n(k,{type:"number",min:1,value:ee,onChange:function(e){return ne(e.target.value)},onPressEnter:le,disabled:j,size:"small"===P?"small":"medium",style:{width:56,minWidth:56}}),n("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"page"}),"object"==typeof F&&F.goButton?n(w,{onClick:le,disabled:j,type:"default",size:"default"===P?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:F.goButton}):n(w,{onClick:le,disabled:j,type:"default",size:"default"===P?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"OK"})]})]})]})},I=function(t){var i=t.checked,o=void 0!==i&&i,r=t.indeterminate,l=void 0!==r&&r,a=t.disabled,d=void 0!==a&&a,s=t.onChange,c=t.className,p=void 0===c?"":c,u=t.style,h=t.children,x=m().primaryColor,g=o||l,v=d?"#FAFAF9":g?x:"white",y=d?"#FAFAF9":g?x:"#D7D3D0";return e("div",{className:"aha-checkbox ".concat(p),style:f({display:"inline-flex",alignItems:"center",gap:"8px",cursor:d?"not-allowed":"pointer"},u),onClick:function(e){d||(null==s||s({target:{checked:!o},currentTarget:{checked:!o}}))},children:[n("div",{style:{position:"relative",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"4px",border:"1px solid ".concat(y),backgroundColor:v,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0,boxSizing:"border-box"},children:n("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"14px",opacity:g?1:0,transition:"opacity 0.2s",pointerEvents:"none"},children:n(l?F:S,{style:{width:"14px",height:"14px",display:"block"}})})}),h&&n("span",{style:{fontSize:"14px",lineHeight:"20px",color:d?"#98A2B3":"#101828",fontFamily:"DM Sans, sans-serif"},children:h}),n("input",{type:"checkbox",checked:o,ref:function(e){e&&(e.indeterminate=l)},onChange:s,disabled:d,style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-hidden":"true"})]})};I.displayName="Checkbox";var B=function(e,n){return"string"==typeof n?null==e?void 0:e[n]:n.reduce(function(e,n){return null==e?void 0:e[n]},e)},j=function(e,n){var t,i;return"function"==typeof n?n(e):"string"==typeof n?null!==(t=B(e,n))&&void 0!==t?t:"":null!==(i=e.key)&&void 0!==i?i:""},N=function(e){var t=e.order,i=m().primaryColor;return"ascend"===t?n(W,{style:{color:i}}):"descend"===t?n(z,{style:{color:i}}):n(A,{})},M=function(t){var o,r,a,u,g=t.columns,v=void 0===g?[]:g,m=t.dataSource,y=void 0===m?[]:m,b=t.rowKey,w=void 0===b?"key":b,k=t.rowSelection,C=t.pagination,S=void 0!==C&&C,F=t.size,A=void 0===F?"middle":F,z=t.bordered,W=void 0!==z&&z;t.loading;var L=t.locale,E=t.showHeader,M=void 0===E||E,R=t.title,H=t.footer,T=t.summary,O=t.scroll,P=t.tableLayout,K=void 0===P?"auto":P,Y=t.onChange,V=t.onSorterChange,J=t.onPaginationChange,Q=t.onRow,q=t.className,U=void 0===q?"":q,X=t.innerClassName,G=void 0===X?"":X,_=t.style,Z=t.expandable,$=t.rowClassName,ee=t.onHeaderRow;t.sticky;var ne=h(t,["columns","dataSource","rowKey","rowSelection","pagination","size","bordered","loading","locale","showHeader","title","footer","summary","scroll","tableLayout","onChange","onSorterChange","onPaginationChange","onRow","className","innerClassName","style","expandable","rowClassName","onHeaderRow","sticky"]),te=l((null==k?void 0:k.selectedRowKeys)||(null==k?void 0:k.defaultSelectedRowKeys)||[]),ie=te[0],oe=te[1];s(function(){void 0!==(null==k?void 0:k.selectedRowKeys)&&oe(k.selectedRowKeys)},[null==k?void 0:k.selectedRowKeys]);var re=l(new Map),le=re[0],ae=re[1],de=l((null==Z?void 0:Z.defaultExpandedRowKeys)||[]),se=de[0],ce=de[1],pe=l(S&&"object"==typeof S&&(S.current||S.defaultCurrent)||1),ue=pe[0],fe=pe[1],he=l(S&&"object"==typeof S&&(S.pageSize||S.defaultPageSize)||10),xe=he[0],ge=he[1];s(function(){S&&"object"==typeof S&&(void 0!==S.current&&fe(S.current),void 0!==S.pageSize&&ge(S.pageSize))},[S]);var ve=l(null),me=ve[0],ye=ve[1],be=l(null),we=be[0],ke=be[1],Ce=l(!1),Se=Ce[0],Fe=Ce[1],Ae=d(null),ze=d(null);s(function(){var e=function(){Fe(window.innerWidth<768)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var We=c(function(e,n){var t,i,o,r=null===(t=null==k?void 0:k.getCheckboxProps)||void 0===t?void 0:t.call(k,e);if(!(null==r?void 0:r.disabled)){var l,a=j(e,w);l="radio"===(null==k?void 0:k.type)?n?[a]:[]:n?x(x([],ie,!0),[a],!1):ie.filter(function(e){return e!==a}),oe(l);var d=y.filter(function(e){return l.includes(j(e,w))});null===(i=null==k?void 0:k.onChange)||void 0===i||i.call(k,l,d),null===(o=null==k?void 0:k.onSelect)||void 0===o||o.call(k,e,n,d,new Event("select"))}},[ie,w,k,y]),Le=c(function(e,n){var t,i,o=n.filter(function(e){var n;return!(null===(n=null==k?void 0:k.getCheckboxProps)||void 0===n?void 0:n.call(k,e).disabled)}).map(function(e){return j(e,w)}),r=e?o:[];oe(r);var l=y.filter(function(e){return r.includes(j(e,w))}),a=e?n.filter(function(e){var n;return!(null===(n=null==k?void 0:k.getCheckboxProps)||void 0===n?void 0:n.call(k,e).disabled)}):[];null===(t=null==k?void 0:k.onChange)||void 0===t||t.call(k,r,l),null===(i=null==k?void 0:k.onSelectAll)||void 0===i||i.call(k,e,l,a)},[w,k,y]),Ee=c(function(e,n){var t=e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex);if(t){var i=new Map(le);null===n?i.delete(t):i.set(t,n),ae(i);var o=Array.from(i.entries()).map(function(n){var t=n[0],i=n[1];return{column:v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===t})||e,order:i,field:t,columnKey:t}}),r={column:e,order:n,field:t,columnKey:t};e.onSorterChange&&e.onSorterChange(r),V&&V(1===o.length?o[0]:o),Y&&Y({current:ue,pageSize:xe},{},1===o.length?o[0]:o,{currentDataSource:y,action:"sort"})}},[le,Y,V,ue,xe,y,v]);c(function(e,n){var t,i,o,r=j(e,w);o=n?x(x([],se,!0),[r],!1):se.filter(function(e){return e!==r}),ce(o),null===(t=null==Z?void 0:Z.onExpand)||void 0===t||t.call(Z,n,e),null===(i=null==Z?void 0:Z.onExpandedRowsChange)||void 0===i||i.call(Z,o)},[se,w,Z]);var De,Ie=c(function(){var e=x([],y,!0);return le.size>0&&e.sort(function(e,n){for(var t=function(t,i){var o=v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===t});if(!o)return"continue";var r=0;if("function"==typeof o.sorter)r=o.sorter(e,n);else if(!0===o.sorter){var l=B(e,o.dataIndex||t),a=B(n,o.dataIndex||t);l<a?r=-1:l>a&&(r=1)}return 0!==r?{value:"ascend"===i?r:-r}:void 0},i=0,o=Array.from(le.entries());i<o.length;i++){var r=o[i],l=t(r[0],r[1]);if("object"==typeof l)return l.value}return 0}),e},[y,le,v]),Be=Ie(),je=Boolean(S&&"object"==typeof S&&void 0!==S.total),Ne=p(function(){if(!1===S||!S)return Be;if(je)return Be;var e=(ue-1)*xe,n=e+xe;return Be.slice(e,n)},[Be,ue,xe,S,je]),Me=c(function(e,n){var t,i,o=null!=n?n:xe;if(fe(e),n&&ge(n),J&&J(e,o),S&&"object"==typeof S&&(null===(t=S.onChange)||void 0===t||t.call(S,e,n),n&&(null===(i=S.onShowSizeChange)||void 0===i||i.call(S,e,n))),Y){var r=Array.from(le.entries()).map(function(e){var n=e[0],t=e[1];return{column:v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===n}),order:t,field:n,columnKey:n}});Y({current:e,pageSize:o},{},1===r.length?r[0]:r,{currentDataSource:Be,action:"paginate"})}},[S,J,Y,xe,le,v,Be]),Re=c(function(e,n,t){var i=B(n,e.dataIndex||"");return e.render?e.render(i,n,t):i},[]),He=c(function(e,n,t){if(n){var i=!0===n?"left":n,o=0;if("left"===i){if(k&&("left"===k.fixed||!0===k.fixed))o+="number"==typeof k.columnWidth?k.columnWidth:"string"==typeof k.columnWidth?parseInt(k.columnWidth):60;for(var r=0;r<e;r++){if("left"===(l=v[r]).fixed||!0===l.fixed)o+=l.width?"number"==typeof l.width?l.width:parseInt(l.width)||0:150}return o}if("right"===i){for(r=e+1;r<v.length;r++){var l;if("right"===(l=v[r]).fixed)o+=l.width?"number"==typeof l.width?l.width:parseInt(l.width)||0:150}if(k&&"right"===k.fixed)o+="number"==typeof k.columnWidth?k.columnWidth:"string"==typeof k.columnWidth?parseInt(k.columnWidth):60;return o}}},[v,k]),Te=c(function(){if(!M)return null;var t,i,o,r,l=v.map(function(t,i){var o,r=t.key||(Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex)||i,l=le.get(r)||null,a=He(i,t.fixed,!0),d=t.width?"number"==typeof t.width?"".concat(t.width,"px"):t.width:void 0;return n("th",f({className:"".concat(t.className||""," ").concat(t.align?"text-".concat(t.align):""),style:{width:d,minWidth:t.minWidth?"number"==typeof t.minWidth?"".concat(t.minWidth,"px"):t.minWidth:d||void 0,maxWidth:d,position:t.fixed?"sticky":"relative",left:"left"===t.fixed||!0===t.fixed?void 0!==a?"".concat(a,"px"):"0":void 0,right:"right"===t.fixed?void 0!==a?"".concat(a,"px"):"0":void 0,zIndex:t.fixed?"left"===t.fixed||!0===t.fixed?10:9:1,backgroundColor:(t.fixed,"#F9FAFB"),boxShadow:"left"===t.fixed||!0===t.fixed?"2px 0 4px rgba(0, 0, 0, 0.05)":"right"===t.fixed?"-2px 0 4px rgba(0, 0, 0, 0.05)":void 0,padding:"12px 16px",textAlign:t.align||"left",borderBottom:"1px solid #EAECF0",fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467",fontFamily:"DM Sans, sans-serif"}},(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,t))||{},{children:e("div",{style:{display:"flex",alignItems:"center",gap:"8px",justifyContent:"right"===t.align?"flex-end":"center"===t.align?"center":"flex-start"},children:[n("span",{style:{fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467"},children:"function"==typeof t.title?t.title({sortOrder:l,sortColumn:t}):t.title}),t.sorter&&n("button",{onClick:function(){Ee(t,null===l?"ascend":"ascend"===l?"descend":null)},style:{border:"none",background:"none",cursor:"pointer",display:"flex",alignItems:"center",padding:"2px",color:l?"#475467":"#98A2B3"},children:n(N,{order:l||void 0})})]})}),r)});if(k){var a="number"==typeof k.columnWidth?"".concat(k.columnWidth,"px"):"string"==typeof k.columnWidth?k.columnWidth:"60px",d=n("th",{style:{width:a,position:k.fixed?"sticky":"relative",left:"left"===k.fixed||!0===k.fixed?"0px":void 0,right:"right"===k.fixed?"0px":void 0,zIndex:k.fixed?"left"===k.fixed||!0===k.fixed?12:11:1,backgroundColor:"#F9FAFB",padding:"12px 16px",borderBottom:"1px solid #EAECF0",fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467",fontFamily:"DM Sans, sans-serif",textAlign:"center"},children:e("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[!k.hideSelectAll&&"radio"!==k.type&&(t=Ne.filter(function(e){var n;return!(null===(n=k.getCheckboxProps)||void 0===n?void 0:n.call(k,e).disabled)}),i=t.map(function(e){return j(e,w)}),o=t.length>0&&i.every(function(e){return ie.includes(e)}),r=i.some(function(e){return ie.includes(e)}),n(I,{checked:o,indeterminate:r&&!o,onChange:function(e){return Le(e.target.checked,Ne)}})),k.columnTitle&&n("span",{style:{marginLeft:k.hideSelectAll?0:"8px"},children:k.columnTitle})]})},"selection");l.unshift(d)}var s=null==ee?void 0:ee(v,0);return n("thead",{ref:ze,children:n("tr",f({},s||{},{children:l}))})},[v,M,le,k,ie,Ne,w,Ee,Le,L,ee,He]),Oe=c(function(e){ye(e)},[]),Pe=c(function(e,n){e.preventDefault(),ke(n)},[]),Ke=c(function(e,n){if(e.preventDefault(),null===me||me===n)return ye(null),void ke(null);var t=x([],Ne,!0),i=t[me];t.splice(me,1),t.splice(n,0,i),ye(null),ke(null)},[me,Ne]),Ye=c(function(){ye(null),ke(null)},[]),Ve=c(function(){var e=null==L?void 0:L.emptyText,t="function"==typeof e?e():void 0!==e?e:"No data",i=v.length+(k?1:0);return n("tr",{className:"aha-table-placeholder",children:n("td",{colSpan:i,style:{padding:"48px 16px",textAlign:"center",color:"#98A2B3",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif",borderBottom:"none",backgroundColor:"white"},children:t})})},[null==L?void 0:L.emptyText,v.length,k]),Je=c(function(){return 0===Ne.length?Ve():Ne.map(function(t,o){var r,l=j(t,w),a=ie.includes(l),d=se.includes(l),s=(null==Q?void 0:Q(t,o))||{},c=o===Ne.length-1;return e(i.Fragment,{children:[e("tr",f({className:"".concat("function"==typeof $?$(t,o):$||""," ").concat(me===o?"dragging":""," ").concat(we===o?"drag-over":""),draggable:!0,onDragStart:function(){return Oe(o)},onDragOver:function(e){return Pe(e,o)},onDrop:function(e){return Ke(e,o)},onDragEnd:Ye,style:f({cursor:"move",opacity:me===o?.5:1,backgroundColor:we===o?"#F9FAFB":"white",transition:"background-color 0.2s"},s.style),onMouseEnter:function(e){me!==o&&we!==o&&(e.currentTarget.style.backgroundColor="#F9FAFB")},onMouseLeave:function(e){me!==o&&we!==o&&(e.currentTarget.style.backgroundColor="white")}},s,{children:[k&&n("td",{style:{width:"number"==typeof k.columnWidth?"".concat(k.columnWidth,"px"):"string"==typeof k.columnWidth?k.columnWidth:"60px",position:k.fixed?"sticky":"relative",left:"left"===k.fixed||!0===k.fixed?"0px":void 0,right:"right"===k.fixed?"0px":void 0,zIndex:k.fixed?"left"===k.fixed||!0===k.fixed?12:11:1,backgroundColor:"white",padding:"16px",borderBottom:c?"none":"1px solid #EAECF0",textAlign:"center"},children:n("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:n(I,{checked:a,onChange:function(e){return We(t,e.target.checked)},disabled:null===(r=k.getCheckboxProps)||void 0===r?void 0:r.call(k,t).disabled})})}),v.map(function(e,i){var r,l=e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex)||i,a=(null===(r=e.onCell)||void 0===r?void 0:r.call(e,t,o))||{},d=He(i,e.fixed,!1),s=e.width?"number"==typeof e.width?"".concat(e.width,"px"):e.width:void 0;return n("td",f({className:"".concat(e.className||""," ").concat(e.align?"text-".concat(e.align):""),style:f({width:s,minWidth:e.minWidth?"number"==typeof e.minWidth?"".concat(e.minWidth,"px"):e.minWidth:s||void 0,maxWidth:s,position:e.fixed?"sticky":"relative",left:"left"===e.fixed||!0===e.fixed?void 0!==d?"".concat(d,"px"):"0":void 0,right:"right"===e.fixed?void 0!==d?"".concat(d,"px"):"0":void 0,zIndex:e.fixed?"left"===e.fixed||!0===e.fixed?10:9:1,backgroundColor:"white",boxShadow:"left"===e.fixed||!0===e.fixed?"2px 0 4px rgba(0, 0, 0, 0.05)":"right"===e.fixed?"-2px 0 4px rgba(0, 0, 0, 0.05)":void 0,padding:"16px",borderBottom:c?"none":"1px solid #EAECF0",fontSize:"14px",lineHeight:"20px",color:"#101828",fontFamily:"DM Sans, sans-serif",textAlign:e.align||"left"},a.style),colSpan:e.colSpan,rowSpan:e.rowSpan},a,{children:Re(e,t,o)}),l)})]})),(null==Z?void 0:Z.expandedRowRender)&&d&&n("tr",{children:n("td",{colSpan:v.length+(k?1:0),children:Z.expandedRowRender(t,o,0,!0)})})]},l)})},[Ne,w,ie,se,k,v,Q,$,We,Re,Z,me,we,Oe,Pe,Ke,Ye,He,Ve]),Qe=function(){var e;if(!1===S||!S)return null;var t=null!==(e=S.total)&&void 0!==e?e:Be.length,i=S.position||"bottomRight";return n("div",{style:{marginTop:"16px",display:"flex",justifyContent:i.includes("Right")?"flex-end":i.includes("Left")?"flex-start":"center"},children:n(D,{current:ue,total:t,pageSize:xe,showSizeChanger:S.showSizeChanger,pageSizeOptions:S.pageSizeOptions,showQuickJumper:S.showQuickJumper,showTotal:S.showTotal,onChange:Me,onShowSizeChange:Me,simple:S.simple,responsive:S.responsive,size:"small"===A?"small":"default"})})},qe=p(function(){return v.some(function(e){return e.fixed})||k&&k.fixed},[v,k]),Ue=p(function(){return v.every(function(e){return e.width})&&(!k||k.columnWidth)},[v,k]),Xe=p(function(){if(null==O?void 0:O.x){if("number"==typeof O.x)return O.x;if(!0===O.x)return v.reduce(function(e,n){return e+(n.width?"number"==typeof n.width?n.width:parseInt(String(n.width).replace("px",""))||0:150)},0)+(k?"number"==typeof k.columnWidth?k.columnWidth:parseInt(String(k.columnWidth||"60").replace("px",""))||60:0)}if(qe)return v.reduce(function(e,n){return n.fixed&&n.width?e+("number"==typeof n.width?n.width:parseInt(String(n.width).replace("px",""))||0):e},0)+(k&&k.fixed&&k.columnWidth?"number"==typeof k.columnWidth?k.columnWidth:parseInt(String(k.columnWidth).replace("px",""))||60:0)},[v,null==O?void 0:O.x,k,qe]),Ge=p(function(){return"fixed"===K||qe||Ue||v.some(function(e){return e.width})?"fixed":K},[K,qe,Ue,v]),_e=f(f({width:"100%",minWidth:Xe?"".concat(Xe,"px"):"100%",borderCollapse:"separate",borderSpacing:0,tableLayout:Ge,backgroundColor:"white"},W&&{borderRadius:"8px",border:"1px solid #EAECF0"}),{overflow:"hidden"}),Ze=f({position:"relative",width:"100%",maxWidth:"100%",maxHeight:"number"==typeof(null==O?void 0:O.y)?"".concat(O.y,"px"):void 0,borderRadius:"8px"},_);if(Se)return e("div",f({ref:Ae,className:"aha-table aha-table-mobile-wrapper ".concat(U),style:Ze},ne,{children:[R&&n("div",{style:{marginBottom:"16px"},children:R(Be)}),S&&"object"==typeof S&&(null===(o=S.position)||void 0===o?void 0:o.startsWith("top"))&&Qe(),(De="function"==typeof(null==L?void 0:L.emptyText)?L.emptyText():void 0!==(null==L?void 0:L.emptyText)?L.emptyText:"No data",0===Ne.length?n("div",{className:"aha-table-mobile aha-table-placeholder",style:{padding:"48px 16px",textAlign:"center",color:"#98A2B3",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif"},children:De}):n("div",{className:"aha-table-mobile",children:Ne.map(function(t,i){var o,r=j(t,w),l=ie.includes(r);return e("div",{className:"aha-table-mobile-row ".concat(l?"selected":""),style:{border:"1px solid #e8e8e8",borderRadius:"4px",padding:"12px",marginBottom:"12px",backgroundColor:l?"#e6f7ff":"white"},children:[k&&n("div",{style:{marginBottom:"8px"},children:n(I,{checked:l,onChange:function(e){return We(t,e.target.checked)},disabled:null===(o=k.getCheckboxProps)||void 0===o?void 0:o.call(k,t).disabled})}),v.map(function(o){var r=o.key||(Array.isArray(o.dataIndex)?o.dataIndex.join("."):o.dataIndex),l=B(t,o.dataIndex||""),a=o.render?o.render(l,t,i):l;return e("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"8px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"},children:[e("span",{style:{fontWeight:"bold",color:"#666"},children:["function"==typeof o.title?o.title({}):o.title,":"]}),n("span",{style:{flex:1,textAlign:"right"},children:a})]},r)})]},r)})})),H&&n("div",{style:{marginTop:"16px"},children:H(Be)}),S&&("object"!=typeof S||!(null===(r=S.position)||void 0===r?void 0:r.startsWith("top")))&&Qe()]}));var $e={position:"relative",overflowX:(null==O?void 0:O.x)||qe?"auto":"visible",overflowY:(null==O?void 0:O.y)?"auto":"visible",width:"100%",maxWidth:!0===(null==O?void 0:O.x)?"100%":"number"==typeof(null==O?void 0:O.x)?"".concat(O.x,"px"):void 0,maxHeight:"number"==typeof(null==O?void 0:O.y)?"".concat(O.y,"px"):void 0,borderRadius:"8px"};return e("div",f({ref:Ae,className:"aha-table ".concat(U),style:Ze},ne,{children:[R&&n("div",{style:{marginBottom:"16px"},children:R(Be)}),S&&"object"==typeof S&&(null===(a=S.position)||void 0===a?void 0:a.startsWith("top"))&&Qe(),n("div",{style:$e,children:n("div",{style:{width:"100%",minWidth:Xe?"".concat(Xe,"px"):"100%",display:"block"},children:e("table",{style:_e,className:G,children:[Te(),n("tbody",{children:Je()}),T&&n("tfoot",{children:n("tr",{children:n("td",{colSpan:v.length+(k?1:0),children:T(Be)})})})]})})}),H&&n("div",{style:{marginTop:"16px"},children:H(Be)}),S&&("object"!=typeof S||!(null===(u=S.position)||void 0===u?void 0:u.startsWith("top")))&&Qe()]}))};export{M as default};
1
+ import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import i,{createContext as o,useContext as r,useState as l,forwardRef as a,useRef as d,useEffect as s,useCallback as c,useMemo as p}from"react";import{createPortal as u}from"react-dom";var f=function(){return f=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},f.apply(this,arguments)};function h(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}function x(e,n,t){if(t||2===arguments.length)for(var i,o=0,r=n.length;o<r;o++)!i&&o in n||(i||(i=Array.prototype.slice.call(n,0,o)),i[o]=n[o]);return e.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var g={primaryColor:"#FB6011"},v=o(g),m=function(){var e=r(v);return e||g},y={small:{height:"32px",paddingLeft:"12px",paddingRight:"12px",fontSize:"14px",lineHeight:"20px",iconSize:"16px",gap:"6px"},mediumSmall:{height:"36px",paddingLeft:"14px",paddingRight:"14px",fontSize:"14px",lineHeight:"20px",iconSize:"16px",gap:"6px"},medium:{height:"40px",paddingLeft:"16px",paddingRight:"16px",fontSize:"14px",lineHeight:"20px",iconSize:"18px",gap:"8px"},large:{height:"48px",paddingLeft:"20px",paddingRight:"20px",fontSize:"16px",lineHeight:"24px",iconSize:"20px",gap:"8px"}},b=function(i){var o=i.size,r=i.color;return e(t,{children:[n("style",{children:"\n @keyframes aha-button-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),e("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",style:{animation:"aha-button-spin 1s linear infinite"},children:[n("circle",{cx:"12",cy:"12",r:"10",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"24",opacity:"0.3"}),n("circle",{cx:"12",cy:"12",r:"10",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"16"})]})]})},w=function(t){var i,o=t.children,r=t.type,a=void 0===r?"default":r,d=t.size,s=void 0===d?"medium":d,c=t.disabled,p=void 0!==c&&c,u=t.loading,x=void 0!==u&&u,g=t.onClick,v=t.htmlType,w=void 0===v?"button":v,k=t.className,C=void 0===k?"":k,S=t.style,F=t.icon,A=t.iconPosition,z=void 0===A?"left":A,L=h(t,["children","type","size","disabled","loading","onClick","htmlType","className","style","icon","iconPosition"]),W=m().primaryColor,D=void 0===W?"#FB6011":W,E=l(!1),I=E[0],B=E[1],j=l(!1),N=j[0],M=j[1],R=y[s],H=p||x,T=function(){if(x){var e="primary"===a?"#FFFFFF":"#101828",t=parseInt(R.iconSize.replace("px",""));return n(b,{size:t,color:e})}return F?n("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:R.iconSize,height:R.iconSize,flexShrink:0},children:F}):null},O=(i=f({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:R.gap,height:R.height,paddingLeft:R.paddingLeft,paddingRight:R.paddingRight,fontSize:R.fontSize,lineHeight:R.lineHeight,fontWeight:500,fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"none",cursor:H?"not-allowed":"pointer",outline:"none",transition:"all 0.2s",userSelect:"none",WebkitTapHighlightColor:"transparent"},S),"primary"===a?(i.color="#FFFFFF",i.backgroundColor=D,p?(i.opacity=.4,i.cursor="not-allowed"):x?i.backgroundColor=D:N?i.backgroundColor="#EC470A":I&&(i.backgroundColor="#FD843A")):p?(i.backgroundColor="#FAFAF9",i.color="#D6D3D1",i.border="1px solid #E7E5E4"):x?(i.backgroundColor="#FFFFFF",i.color="#101828",i.border="1px solid #E7E5E4",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):N?(i.backgroundColor="#F5F5F4",i.color="#101828",i.border="1px solid #D7D3D0",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):I?(i.backgroundColor="#FAFAF9",i.color="#101828",i.border="1px solid #D7D3D0",i.boxShadow="0px 2px 4px 0px rgba(12, 10, 9, 0.08)"):(i.backgroundColor="#FFFFFF",i.color="#101828",i.border="1px solid #E7E5E4",i.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"),i);return e("button",f({type:w,className:"aha-button aha-button--".concat(a," aha-button--").concat(s," ").concat(H?"aha-button--disabled":""," ").concat(x?"aha-button--loading":""," ").concat(C),disabled:H,onClick:function(e){H?e.preventDefault():null==g||g(e)},onMouseEnter:function(){return!H&&B(!0)},onMouseLeave:function(){B(!1),M(!1)},onMouseDown:function(){return!H&&M(!0)},onMouseUp:function(){return M(!1)},style:O},L,{children:[x&&T(),!x&&"left"===z&&T(),o&&n("span",{style:{display:"inline-block"},children:o}),!x&&"right"===z&&T()]}))};w.displayName="Button";var k=a(function(o,r){var l=o.size,a=void 0===l?"medium":l,c=o.disabled,p=void 0!==c&&c,u=o.error,x=void 0!==u&&u,g=o.readOnly,v=void 0!==g&&g,y=o.prefix,b=o.suffix,w=o.allowClear,k=void 0!==w&&w,C=o.onClear,S=o.className,F=void 0===S?"":S,A=o.style,z=o.type,L=void 0===z?"text":z,W=o.placeholder,D=o.value,E=o.defaultValue,I=o.onChange,B=o.onFocus,j=o.onBlur,N=o.onPressEnter,M=h(o,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter"]),R=m().primaryColor,H=void 0===R?"#FB6011":R,T=d(null),O=i.useState(E||D||""),P=O[0],K=O[1],Y=i.useState(!1),V=Y[0],J=Y[1];s(function(){"function"==typeof r?r(T.current):r&&(r.current=T.current)},[r]);var Q=void 0!==D,q=Q?D:P,U=function(e){var n;e.stopPropagation(),Q||K("");null==I||I({target:{value:""},currentTarget:{value:""}}),null==C||C(),null===(n=T.current)||void 0===n||n.focus()},X=k&&q&&!p,G={small:{height:"32px",paddingTop:"3px",paddingBottom:"3px"},mediumSmall:{height:"36px",paddingTop:"5px",paddingBottom:"5px"},medium:{height:"40px",paddingTop:"7px",paddingBottom:"7px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px"}},_=b||X?"40px":"12px",Z=f({width:"100%",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(x?"#F04438":V?H:"#D7D3D0"),backgroundColor:p||v?"#FAFAF9":"#FFFFFF",color:p?"#98A2B3":"#1C1917",fontSize:"16px",fontWeight:400,lineHeight:"24px",paddingLeft:y?"40px":"12px",paddingRight:_,paddingTop:G[a].paddingTop,paddingBottom:G[a].paddingBottom,transition:"all 0.2s",outline:"none",WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"},A);return e(t,{children:[n("style",{children:'\n .aha-input-wrapper input::placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input::-webkit-input-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input::-moz-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input:-ms-input-placeholder {\n color: #D7D3D0;\n font-size: 16px;\n font-weight: 400;\n opacity: 1;\n }\n /* 移动端优化 */\n .aha-input-wrapper input {\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n touch-action: manipulation;\n }\n /* 移除数字输入框的上下箭头 */\n .aha-input-wrapper input[type="number"]::-webkit-inner-spin-button,\n .aha-input-wrapper input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n .aha-input-wrapper input[type="number"] {\n -moz-appearance: textfield;\n }\n '}),e("div",{className:"aha-input-wrapper ".concat(F),style:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%"},children:[y&&n("span",{style:{position:"absolute",left:"12px",display:"flex",alignItems:"center",color:p?"#98A2B3":"#78716C",zIndex:1,pointerEvents:"none"},children:y}),n("input",f({ref:T,type:L,value:q,placeholder:W,disabled:p,readOnly:v,onChange:function(e){Q||K(e.target.value),null==I||I(e)},onFocus:function(e){J(!0),null==B||B(e)},onBlur:function(e){J(!1),null==j||j(e)},onKeyDown:function(e){var n;"Enter"===e.key&&N&&N(e),null===(n=M.onKeyDown)||void 0===n||n.call(M,e)},style:Z,autoComplete:M.autoComplete||"off",autoCorrect:M.autoCorrect||"off",autoCapitalize:M.autoCapitalize||"off",spellCheck:M.spellCheck||!1},M)),(b||X)&&e("span",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px",color:p?"#98A2B3":"#78716C",zIndex:1},children:[X&&n(function(){return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:U,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:n("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),b&&n("span",{style:{pointerEvents:"none"},children:b})]})]})]})});k.displayName="Input";var C=function(o){var r,a=o.value,h=o.defaultValue,g=o.options,v=void 0===g?[]:g,y=o.mode,b=o.disabled,w=void 0!==b&&b,k=o.error,C=void 0!==k&&k,S=o.placeholder,F=void 0===S?"Please select":S,A=o.size,z=void 0===A?"medium":A,L=o.showSearch,W=void 0!==L&&L,D=o.filterOption,E=void 0===D||D,I=o.allowClear,B=void 0!==I&&I,j=o.onChange,N=o.onSelect,M=o.onDeselect,R=o.onSearch,H=o.onFocus,T=o.onBlur,O=o.onDropdownVisibleChange,P=o.className,K=void 0===P?"":P,Y=o.style,V=o.dropdownClassName,J=void 0===V?"":V,Q=o.dropdownStyle,q=o.defaultOpen,U=void 0!==q&&q,X=o.open,G=o.maxTagCount,_=o.tagRender,Z=o.optionRender,$=m().primaryColor,ee=void 0===$?"#FB6011":$,ne=l(void 0!==h?h:y?[]:void 0),te=ne[0],ie=ne[1],oe=l(U),re=oe[0],le=oe[1],ae=l(""),de=ae[0],se=ae[1],ce=l(-1),pe=ce[0],ue=ce[1],fe=d(null),he=d(null),xe=d(null),ge=l(null),ve=ge[0],me=ge[1],ye=void 0!==a,be=void 0!==X,we=ye?a:te,ke=be?X:re,Ce="multiple"===y||"tags"===y,Se=c(function(){if(!we)return[];var e=Array.isArray(we)?we:[we];return v.filter(function(n){return e.includes(n.value)})},[we,v]),Fe=c(function(){return W&&de?!1===E?v:"function"==typeof E?v.filter(function(e){return E(de,e)}):v.filter(function(e){var n=String(e.label||"").toLowerCase(),t=de.toLowerCase();return n.includes(t)}):v},[v,de,W,E]),Ae=p(function(){return Fe()},[Fe]);s(function(){if(ke&&fe.current){var e=function(){var e,n;if(fe.current){var t=fe.current.getBoundingClientRect(),i=null!==(n=null===(e=xe.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:Math.min(256,Math.max(40,40*Ae.length)),o=window.innerHeight-t.bottom,r=t.top,l=o<i+4&&r>o,a=l?t.top+window.scrollY-i-4:t.bottom+window.scrollY+4;me({top:a,left:t.left+window.scrollX,width:t.width,placement:l?"top":"bottom"})}};return e(),requestAnimationFrame(e),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}me(null)},[ke,Ae.length]),s(function(){var e=function(e){var n=e.target;fe.current&&!fe.current.contains(n)&&xe.current&&!xe.current.contains(n)&&(be||le(!1),null==O||O(!1),se(""))};if(ke)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0)}},[ke,be,O]),s(function(){if(ke){var e=function(e){var n;if("ArrowDown"===e.key)e.preventDefault(),ue(function(e){return e<Ae.length-1?e+1:e});else if("ArrowUp"===e.key)e.preventDefault(),ue(function(e){return e>0?e-1:0});else if("Enter"===e.key&&pe>=0){e.preventDefault();var t=Ae[pe];t&&!t.disabled&&ze(t)}else"Escape"===e.key&&(e.preventDefault(),be||le(!1),null==O||O(!1),null===(n=fe.current)||void 0===n||n.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[ke,Ae,pe,be,O]),s(function(){if(pe>=0&&xe.current){var e=xe.current.querySelectorAll(".aha-select-option")[pe];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[pe]);var ze=c(function(e){var n;if(!e.disabled)if(Ce){var t,i=Array.isArray(we)?we:[];i.includes(e.value)?(t=i.filter(function(n){return n!==e.value}),null==M||M(e.value,e)):(t=x(x([],i,!0),[e.value],!1),null==N||N(e.value,e)),ye||ie(t);var o=v.filter(function(e){return t.includes(e.value)});null==j||j(t,o)}else ye||ie(e.value),null==j||j(e.value,e),null==N||N(e.value,e),be||le(!1),null==O||O(!1),se(""),null===(n=fe.current)||void 0===n||n.focus()},[Ce,we,ye,be,v,j,N,M,O]),Le=c(function(e,n){if(e.stopPropagation(),Ce&&Array.isArray(we)){var t=we.filter(function(e){return e!==n}),i=v.find(function(e){return e.value===n});ye||ie(t),null==j||j(t,Se()),null==M||M(n,i)}},[Ce,we,ye,v,j,M,Se]),We=function(e){e.stopPropagation();var n=Ce?[]:void 0;ye||ie(n),null==j||j(n,[]),se("")},De={small:{height:"32px",paddingTop:"3px",paddingBottom:"3px",fontSize:"16px",lineHeight:"24px"},mediumSmall:{height:"36px",paddingTop:"5px",paddingBottom:"5px",fontSize:"16px",lineHeight:"24px"},medium:{height:"40px",paddingTop:"7px",paddingBottom:"7px",fontSize:"16px",lineHeight:"24px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px",fontSize:"16px",lineHeight:"24px"}},Ee=p(function(){return Se()},[Se]),Ie=p(function(){return B&&we&&!w},[B,we,w]),Be=p(function(){return Ce?Array.isArray(we)&&we.length>0:null!=we&&""!==we},[Ce,we]),je=p(function(){if(!Ce||!Array.isArray(we)||0===we.length)return null;var t="responsive"===G?Ee.slice(0,2):G?Ee.slice(0,G):Ee,o=G&&Ee.length>t.length?Ee.length-t.length:0;return e("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px",flex:1,minWidth:0},children:[t.map(function(t){var o={label:t.label,value:t.value,closable:!w,onClose:function(){return Le({},t.value)}};return _?n(i.Fragment,{children:_(o)},t.value):e("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",backgroundColor:"#F5F5F4",borderRadius:"4px",fontSize:"12px",lineHeight:"18px",color:"#101828",fontFamily:"DM Sans, sans-serif",maxWidth:"100%"},children:[n("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),!w&&n("span",{onClick:function(e){return Le(e,t.value)},style:{cursor:"pointer",display:"flex",alignItems:"center",color:"#78716C",marginLeft:"4px"},children:n("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]},t.value)}),o>0&&e("span",{style:{fontSize:"12px",lineHeight:"18px",color:"#78716C",fontFamily:"DM Sans, sans-serif"},children:["+",o]})]})},[Ce,we,Ee,G,w,_]);return e(t,{children:[n("style",{children:"\n @keyframes dropdownFadeIn {\n from {\n opacity: 0;\n transform: translateY(-8px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n "}),e("div",{ref:fe,className:"aha-select ".concat(K),style:f({position:"relative",display:"inline-flex",alignItems:"center",width:"100%",minWidth:"120px",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(C?"#F04438":ke?ee:"#D7D3D0"),backgroundColor:w?"#FAFAF9":"#FFFFFF",cursor:w?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:De[z].paddingTop,paddingBottom:De[z].paddingBottom,fontSize:De[z].fontSize,lineHeight:De[z].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},Y),onClick:function(){if(!w){var e=!ke;be||le(e),null==O||O(e),e&&W?setTimeout(function(){var e;null===(e=he.current)||void 0===e||e.focus()},0):se("")}},onFocus:function(e){null==H||H(e)},onBlur:function(e){null==T||T(e)},onTouchStart:function(e){w||(e.currentTarget.style.opacity="0.8")},onTouchEnd:function(e){e.currentTarget.style.opacity="1"},tabIndex:w?-1:0,children:[n("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0,gap:"8px"},children:Ce?je||n("span",F?{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400},children:F}:{style:{flex:1,minHeight:"24px"}}):W&&ke?n("input",{ref:he,type:"text",value:de,onChange:function(e){var n=e.target.value;se(n),null==R||R(n),ue(-1)},onClick:function(e){return e.stopPropagation()},onFocus:function(e){return e.stopPropagation()},style:{flex:1,border:"none",outline:"none",background:"transparent",fontSize:"16px",lineHeight:"24px",fontWeight:400,color:w?"#98A2B3":"#1C1917",fontFamily:"DM Sans, sans-serif",minWidth:0,WebkitAppearance:"none",appearance:"none"},placeholder:Be?void 0:F,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):n("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:Be?w?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:Be?(null===(r=Ee[0])||void 0===r?void 0:r.label)||we:F||" "})}),e("div",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[Ie&&n(function(){return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:We,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:n("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),n(function(e){var t=e.isOpen;return n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out",flexShrink:0},children:n("path",{d:"M4 6L8 10L12 6",stroke:"#78716C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{isOpen:ke})]})]}),ke&&ve&&u(n("div",{ref:xe,className:"aha-select-dropdown ".concat(J),style:f({position:"absolute",top:"".concat(ve.top,"px"),left:"".concat(ve.left,"px"),width:"".concat(ve.width,"px"),zIndex:1050,backgroundColor:"#FFFFFF",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",border:"1px solid #E7E5E4",maxHeight:"256px",overflow:"auto",opacity:0,transform:"top"===ve.placement?"translateY(8px)":"translateY(-8px)",animation:"dropdownFadeIn 0.2s ease-out forwards",transformOrigin:"top"===ve.placement?"bottom center":"top center",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},Q),children:0===Ae.length?n("div",{style:{padding:"8px 16px",textAlign:"center",color:"#78716C",fontSize:"14px",fontFamily:"DM Sans, sans-serif"},children:"No data"}):Ae.map(function(t,i){var o=Ce?Array.isArray(we)&&we.includes(t.value):we===t.value,r=i===pe;return Z?n("div",{className:"aha-select-option ".concat(t.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return!t.disabled&&ze(t)},style:{cursor:t.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:Z(t,{selected:o,focused:r,disabled:t.disabled||!1})},t.value):e("div",{className:"aha-select-option ".concat(t.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return ze(t)},style:{padding:"8px 16px",cursor:t.disabled?"not-allowed":"pointer",color:t.disabled?"#98A2B3":"#101828",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s"},children:[n("span",{children:t.label}),o&&n("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r?"hidden":"",children:n("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:ee,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},t.value)})}),document.body)]})};C.displayName="Select";var S=function(e){var t=e.className,i=e.style;return n("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},F=function(e){var t=e.className,i=e.style;return n("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M3.5 7H10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},A=function(e){var t=e.className,i=e.style;return n("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M3.5 7.5L6 10L8.5 7.5M3.5 4.5L6 2L8.5 4.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},z=function(t){var i=t.className,o=t.style;return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,style:o,children:[n("path",{d:"M3.5 4.5L6 2L8.5 4.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M3.5 7.5L6 10L8.5 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},L=function(t){var i=t.className,o=t.style;return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,style:o,children:[n("path",{d:"M8.5 7.5L6 10L3.5 7.5",stroke:"#A9A29D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M8.5 4.5L6 2L3.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},W=function(e){var t=e.className,i=e.style;return n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M15.8334 10H4.16675M4.16675 10L10.0001 15.8334M4.16675 10L10.0001 4.16669",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},D=function(e){var t=e.className,i=e.style;return n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:i,children:n("path",{d:"M4.16675 10H15.8334M15.8334 10L10.0001 4.16669M15.8334 10L10.0001 15.8334",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})},E=function(i){var o=i.current,r=i.defaultCurrent,a=void 0===r?1:r,d=i.total,c=void 0===d?0:d,u=i.pageSize,h=i.defaultPageSize,x=void 0===h?10:h,g=i.showSizeChanger,v=void 0!==g&&g,y=i.pageSizeOptions,b=void 0===y?["10","20","50","100"]:y,S=i.showQuickJumper,F=void 0!==S&&S,A=i.showTotal,z=i.onChange,L=i.onShowSizeChange,E=i.simple,I=void 0!==E&&E,B=i.disabled,j=void 0!==B&&B,N=i.hideOnSinglePage,M=void 0!==N&&N,R=i.className,H=void 0===R?"":R,T=i.style,O=i.size,P=void 0===O?"default":O,K=i.responsive,Y=void 0!==K&&K;i.showLessItems;var V=i.itemRender,J=m().primaryColor,Q=void 0===J?"#FB6011":J,q=l(a),U=q[0],X=q[1],G=l(x),_=G[0],Z=G[1],$=l(""),ee=$[0],ne=$[1],te=null!=o?o:U,ie=null!=u?u:_,oe=p(function(){return Math.ceil(c/ie)},[c,ie]);s(function(){void 0!==o&&X(o)},[o]),s(function(){void 0!==u&&Z(u)},[u]);var re=function(e){e<1||e>oe||e===te||j||(void 0===o&&X(e),null==z||z(e,ie))},le=function(){var e=parseInt(ee,10);e>=1&&e<=oe&&(re(e),ne(""))};if(M&&oe<=1)return null;if(I)return e("div",{className:"aha-pagination aha-pagination-simple ".concat(H),style:T,children:[n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(W,{})}),e("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[te," / ",oe]}),n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(D,{})})]});var ae=(te-1)*ie+1,de=Math.min(te*ie,c);return e("div",{className:"aha-pagination w-full ".concat(H),style:f({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:Y?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},T),children:[A&&n("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:A(c,[ae,de])}),e("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[c>0&&n(t,{children:V?V(te-1,"prev",n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(W,{})})):n(w,{onClick:function(){return re(te-1)},disabled:j||1===te,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(W,{})})}),n("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(oe<=7)return Array.from({length:oe},function(e,n){return n+1});var e=[];if(te<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(oe)}else if(te>=oe-3){e.push(1),e.push("jump-prev");for(n=oe-4;n<=oe;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=te-1;n<=te+1;n++)e.push(n);e.push("jump-next"),e.push(oe)}return e}().map(function(e){return function(e){if("number"==typeof e){var t=e===te,i=n(w,{onClick:function(){return re(e)},disabled:j,type:t?"primary":"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,fontWeight:t?500:400,border:t?"1px solid ".concat(Q):void 0,boxShadow:"none",borderRadius:"8px"},children:e},e);return V?V(e,"page",i):i}if("jump-prev"===e)return i=n(w,{onClick:function(){return re(Math.max(1,te-5))},disabled:j,type:"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),V?V(te-5,"jump-prev",i):i;if("jump-next"===e)return i=n(w,{onClick:function(){return re(Math.min(oe,te+5))},disabled:j,type:"default",size:"default"===P?"medium":"small",style:{minWidth:"small"===P?"32px":"36px",height:"small"===P?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),V?V(te+5,"jump-next",i):i;return null}(e)})}),c>0&&n(t,{children:V?V(te+1,"next",n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(D,{})})):n(w,{onClick:function(){return re(te+1)},disabled:j||te===oe,type:"default",size:"default"===P?"medium":"small",style:{height:"small"===P?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:n(D,{})})}),v&&n(C,{value:ie,options:b.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return n=Number(e),t=Math.ceil(c/n),i=te>t?t:te,void 0===u&&Z(n),void 0===o&&X(i),null==L||L(i,n),void(null==z||z(i,n));var n,t,i},disabled:j,size:"small"===P?"small":"medium",style:{minWidth:"small"===P?80:96}}),F&&e("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"DM Sans, sans-serif"},children:[n("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"Go to"}),n(k,{type:"number",min:1,value:ee,onChange:function(e){return ne(e.target.value)},onPressEnter:le,disabled:j,size:"small"===P?"small":"medium",style:{width:56,minWidth:56}}),n("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"page"}),"object"==typeof F&&F.goButton?n(w,{onClick:le,disabled:j,type:"default",size:"default"===P?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:F.goButton}):n(w,{onClick:le,disabled:j,type:"default",size:"default"===P?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"OK"})]})]})]})},I=function(t){var i=t.checked,o=void 0!==i&&i,r=t.indeterminate,l=void 0!==r&&r,a=t.disabled,d=void 0!==a&&a,s=t.onChange,c=t.className,p=void 0===c?"":c,u=t.style,h=t.children,x=m().primaryColor,g=o||l,v=d?"#FAFAF9":g?x:"white",y=d?"#FAFAF9":g?x:"#D7D3D0";return e("div",{className:"aha-checkbox ".concat(p),style:f({display:"inline-flex",alignItems:"center",gap:"8px",cursor:d?"not-allowed":"pointer"},u),onClick:function(e){d||(null==s||s({target:{checked:!o},currentTarget:{checked:!o}}))},children:[n("div",{style:{position:"relative",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"4px",border:"1px solid ".concat(y),backgroundColor:v,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0,boxSizing:"border-box"},children:n("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"14px",opacity:g?1:0,transition:"opacity 0.2s",pointerEvents:"none"},children:n(l?F:S,{style:{width:"14px",height:"14px",display:"block"}})})}),h&&n("span",{style:{fontSize:"14px",lineHeight:"20px",color:d?"#98A2B3":"#101828",fontFamily:"DM Sans, sans-serif"},children:h}),n("input",{type:"checkbox",checked:o,ref:function(e){e&&(e.indeterminate=l)},onChange:s,disabled:d,style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-hidden":"true"})]})};I.displayName="Checkbox";var B=function(i){var o=i.color;return e(t,{children:[n("style",{children:"\n @keyframes aha-table-loading-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),e("svg",{width:32,height:32,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,style:{animation:"aha-table-loading-spin 1s linear infinite"},children:[n("circle",{cx:"12",cy:"12",r:"10",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"24",opacity:.3}),n("circle",{cx:"12",cy:"12",r:"10",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"16"})]})]})},j=function(e){var t=e.loading,i=e.spinColor;if(!t)return null;var o=!0===t?n(B,{color:i}):t;return n("div",{role:"status","aria-live":"polite","aria-label":"Loading",className:"aha-table-loading-overlay",style:{position:"absolute",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.55)",pointerEvents:"auto"},children:o})},N=function(e,n){return"string"==typeof n?null==e?void 0:e[n]:n.reduce(function(e,n){return null==e?void 0:e[n]},e)},M=function(e,n){var t,i;return"function"==typeof n?n(e):"string"==typeof n?null!==(t=N(e,n))&&void 0!==t?t:"":null!==(i=e.key)&&void 0!==i?i:""},R=function(e){var t=e.order,i=m().primaryColor;return"ascend"===t?n(L,{style:{color:i}}):"descend"===t?n(z,{style:{color:i}}):n(A,{})},H=function(t){var o,r,a,u,g=t.columns,v=void 0===g?[]:g,y=t.dataSource,b=void 0===y?[]:y,w=t.rowKey,k=void 0===w?"key":w,C=t.rowSelection,S=t.pagination,F=void 0!==S&&S,A=t.size,z=void 0===A?"middle":A,L=t.bordered,W=void 0!==L&&L,D=t.loading,B=void 0!==D&&D,H=t.locale,T=t.showHeader,O=void 0===T||T,P=t.title,K=t.footer,Y=t.summary,V=t.scroll,J=t.tableLayout,Q=void 0===J?"auto":J,q=t.onChange,U=t.onSorterChange,X=t.onPaginationChange,G=t.onRow,_=t.className,Z=void 0===_?"":_,$=t.innerClassName,ee=void 0===$?"":$,ne=t.style,te=t.expandable,ie=t.rowClassName,oe=t.onHeaderRow;t.sticky;var re=h(t,["columns","dataSource","rowKey","rowSelection","pagination","size","bordered","loading","locale","showHeader","title","footer","summary","scroll","tableLayout","onChange","onSorterChange","onPaginationChange","onRow","className","innerClassName","style","expandable","rowClassName","onHeaderRow","sticky"]),le=m().primaryColor||"#FB6011",ae=l((null==C?void 0:C.selectedRowKeys)||(null==C?void 0:C.defaultSelectedRowKeys)||[]),de=ae[0],se=ae[1];s(function(){void 0!==(null==C?void 0:C.selectedRowKeys)&&se(C.selectedRowKeys)},[null==C?void 0:C.selectedRowKeys]);var ce=l(new Map),pe=ce[0],ue=ce[1],fe=l((null==te?void 0:te.defaultExpandedRowKeys)||[]),he=fe[0],xe=fe[1],ge=l(F&&"object"==typeof F&&(F.current||F.defaultCurrent)||1),ve=ge[0],me=ge[1],ye=l(F&&"object"==typeof F&&(F.pageSize||F.defaultPageSize)||10),be=ye[0],we=ye[1];s(function(){F&&"object"==typeof F&&(void 0!==F.current&&me(F.current),void 0!==F.pageSize&&we(F.pageSize))},[F]);var ke=l(null),Ce=ke[0],Se=ke[1],Fe=l(null),Ae=Fe[0],ze=Fe[1],Le=l(!1),We=Le[0],De=Le[1],Ee=d(null),Ie=d(null);s(function(){var e=function(){De(window.innerWidth<768)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var Be=c(function(e,n){var t,i,o,r=null===(t=null==C?void 0:C.getCheckboxProps)||void 0===t?void 0:t.call(C,e);if(!(null==r?void 0:r.disabled)){var l,a=M(e,k);l="radio"===(null==C?void 0:C.type)?n?[a]:[]:n?x(x([],de,!0),[a],!1):de.filter(function(e){return e!==a}),se(l);var d=b.filter(function(e){return l.includes(M(e,k))});null===(i=null==C?void 0:C.onChange)||void 0===i||i.call(C,l,d),null===(o=null==C?void 0:C.onSelect)||void 0===o||o.call(C,e,n,d,new Event("select"))}},[de,k,C,b]),je=c(function(e,n){var t,i,o=n.filter(function(e){var n;return!(null===(n=null==C?void 0:C.getCheckboxProps)||void 0===n?void 0:n.call(C,e).disabled)}).map(function(e){return M(e,k)}),r=e?o:[];se(r);var l=b.filter(function(e){return r.includes(M(e,k))}),a=e?n.filter(function(e){var n;return!(null===(n=null==C?void 0:C.getCheckboxProps)||void 0===n?void 0:n.call(C,e).disabled)}):[];null===(t=null==C?void 0:C.onChange)||void 0===t||t.call(C,r,l),null===(i=null==C?void 0:C.onSelectAll)||void 0===i||i.call(C,e,l,a)},[k,C,b]),Ne=c(function(e,n){var t=e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex);if(t){var i=new Map(pe);null===n?i.delete(t):i.set(t,n),ue(i);var o=Array.from(i.entries()).map(function(n){var t=n[0],i=n[1];return{column:v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===t})||e,order:i,field:t,columnKey:t}}),r={column:e,order:n,field:t,columnKey:t};e.onSorterChange&&e.onSorterChange(r),U&&U(1===o.length?o[0]:o),q&&q({current:ve,pageSize:be},{},1===o.length?o[0]:o,{currentDataSource:b,action:"sort"})}},[pe,q,U,ve,be,b,v]);c(function(e,n){var t,i,o,r=M(e,k);o=n?x(x([],he,!0),[r],!1):he.filter(function(e){return e!==r}),xe(o),null===(t=null==te?void 0:te.onExpand)||void 0===t||t.call(te,n,e),null===(i=null==te?void 0:te.onExpandedRowsChange)||void 0===i||i.call(te,o)},[he,k,te]);var Me,Re=c(function(){var e=x([],b,!0);return pe.size>0&&e.sort(function(e,n){for(var t=function(t,i){var o=v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===t});if(!o)return"continue";var r=0;if("function"==typeof o.sorter)r=o.sorter(e,n);else if(!0===o.sorter){var l=N(e,o.dataIndex||t),a=N(n,o.dataIndex||t);l<a?r=-1:l>a&&(r=1)}return 0!==r?{value:"ascend"===i?r:-r}:void 0},i=0,o=Array.from(pe.entries());i<o.length;i++){var r=o[i],l=t(r[0],r[1]);if("object"==typeof l)return l.value}return 0}),e},[b,pe,v]),He=Re(),Te=Boolean(F&&"object"==typeof F&&void 0!==F.total),Oe=p(function(){if(!1===F||!F)return He;if(Te)return He;var e=(ve-1)*be,n=e+be;return He.slice(e,n)},[He,ve,be,F,Te]),Pe=c(function(e,n){var t,i,o=null!=n?n:be;if(me(e),n&&we(n),X&&X(e,o),F&&"object"==typeof F&&(null===(t=F.onChange)||void 0===t||t.call(F,e,n),n&&(null===(i=F.onShowSizeChange)||void 0===i||i.call(F,e,n))),q){var r=Array.from(pe.entries()).map(function(e){var n=e[0],t=e[1];return{column:v.find(function(e){return(e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex))===n}),order:t,field:n,columnKey:n}});q({current:e,pageSize:o},{},1===r.length?r[0]:r,{currentDataSource:He,action:"paginate"})}},[F,X,q,be,pe,v,He]),Ke=c(function(e,n,t){var i=N(n,e.dataIndex||"");return e.render?e.render(i,n,t):i},[]),Ye=c(function(e,n,t){if(n){var i=!0===n?"left":n,o=0;if("left"===i){if(C&&("left"===C.fixed||!0===C.fixed))o+="number"==typeof C.columnWidth?C.columnWidth:"string"==typeof C.columnWidth?parseInt(C.columnWidth):60;for(var r=0;r<e;r++){if("left"===(l=v[r]).fixed||!0===l.fixed)o+=l.width?"number"==typeof l.width?l.width:parseInt(l.width)||0:150}return o}if("right"===i){for(r=e+1;r<v.length;r++){var l;if("right"===(l=v[r]).fixed)o+=l.width?"number"==typeof l.width?l.width:parseInt(l.width)||0:150}if(C&&"right"===C.fixed)o+="number"==typeof C.columnWidth?C.columnWidth:"string"==typeof C.columnWidth?parseInt(C.columnWidth):60;return o}}},[v,C]),Ve=c(function(){if(!O)return null;var t,i,o,r,l=v.map(function(t,i){var o,r=t.key||(Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex)||i,l=pe.get(r)||null,a=Ye(i,t.fixed,!0),d=t.width?"number"==typeof t.width?"".concat(t.width,"px"):t.width:void 0;return n("th",f({className:"".concat(t.className||""," ").concat(t.align?"text-".concat(t.align):""),style:{width:d,minWidth:t.minWidth?"number"==typeof t.minWidth?"".concat(t.minWidth,"px"):t.minWidth:d||void 0,maxWidth:d,position:t.fixed?"sticky":"relative",left:"left"===t.fixed||!0===t.fixed?void 0!==a?"".concat(a,"px"):"0":void 0,right:"right"===t.fixed?void 0!==a?"".concat(a,"px"):"0":void 0,zIndex:t.fixed?"left"===t.fixed||!0===t.fixed?10:9:1,backgroundColor:(t.fixed,"#F9FAFB"),boxShadow:"left"===t.fixed||!0===t.fixed?"2px 0 4px rgba(0, 0, 0, 0.05)":"right"===t.fixed?"-2px 0 4px rgba(0, 0, 0, 0.05)":void 0,padding:"12px 16px",textAlign:t.align||"left",borderBottom:"1px solid #EAECF0",fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467",fontFamily:"DM Sans, sans-serif"}},(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,t))||{},{children:e("div",{style:{display:"flex",alignItems:"center",gap:"8px",justifyContent:"right"===t.align?"flex-end":"center"===t.align?"center":"flex-start"},children:[n("span",{style:{fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467"},children:"function"==typeof t.title?t.title({sortOrder:l,sortColumn:t}):t.title}),t.sorter&&n("button",{onClick:function(){Ne(t,null===l?"ascend":"ascend"===l?"descend":null)},style:{border:"none",background:"none",cursor:"pointer",display:"flex",alignItems:"center",padding:"2px",color:l?"#475467":"#98A2B3"},children:n(R,{order:l||void 0})})]})}),r)});if(C){var a="number"==typeof C.columnWidth?"".concat(C.columnWidth,"px"):"string"==typeof C.columnWidth?C.columnWidth:"60px",d=n("th",{style:{width:a,position:C.fixed?"sticky":"relative",left:"left"===C.fixed||!0===C.fixed?"0px":void 0,right:"right"===C.fixed?"0px":void 0,zIndex:C.fixed?"left"===C.fixed||!0===C.fixed?12:11:1,backgroundColor:"#F9FAFB",padding:"12px 16px",borderBottom:"1px solid #EAECF0",fontWeight:600,fontSize:"12px",lineHeight:"18px",color:"#475467",fontFamily:"DM Sans, sans-serif",textAlign:"center"},children:e("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[!C.hideSelectAll&&"radio"!==C.type&&(t=Oe.filter(function(e){var n;return!(null===(n=C.getCheckboxProps)||void 0===n?void 0:n.call(C,e).disabled)}),i=t.map(function(e){return M(e,k)}),o=t.length>0&&i.every(function(e){return de.includes(e)}),r=i.some(function(e){return de.includes(e)}),n(I,{checked:o,indeterminate:r&&!o,onChange:function(e){return je(e.target.checked,Oe)}})),C.columnTitle&&n("span",{style:{marginLeft:C.hideSelectAll?0:"8px"},children:C.columnTitle})]})},"selection");l.unshift(d)}var s=null==oe?void 0:oe(v,0);return n("thead",{ref:Ie,children:n("tr",f({},s||{},{children:l}))})},[v,O,pe,C,de,Oe,k,Ne,je,H,oe,Ye]),Je=c(function(e){Se(e)},[]),Qe=c(function(e,n){e.preventDefault(),ze(n)},[]),qe=c(function(e,n){if(e.preventDefault(),null===Ce||Ce===n)return Se(null),void ze(null);var t=x([],Oe,!0),i=t[Ce];t.splice(Ce,1),t.splice(n,0,i),Se(null),ze(null)},[Ce,Oe]),Ue=c(function(){Se(null),ze(null)},[]),Xe=c(function(){var e=null==H?void 0:H.emptyText,t="function"==typeof e?e():void 0!==e?e:"No data",i=v.length+(C?1:0);return n("tr",{className:"aha-table-placeholder",children:n("td",{colSpan:i,style:{padding:"48px 16px",textAlign:"center",color:"#98A2B3",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif",borderBottom:"none",backgroundColor:"white"},children:t})})},[null==H?void 0:H.emptyText,v.length,C]),Ge=c(function(){return 0===Oe.length?Xe():Oe.map(function(t,o){var r,l=M(t,k),a=de.includes(l),d=he.includes(l),s=(null==G?void 0:G(t,o))||{},c=o===Oe.length-1;return e(i.Fragment,{children:[e("tr",f({className:"".concat("function"==typeof ie?ie(t,o):ie||""," ").concat(Ce===o?"dragging":""," ").concat(Ae===o?"drag-over":""),draggable:!0,onDragStart:function(){return Je(o)},onDragOver:function(e){return Qe(e,o)},onDrop:function(e){return qe(e,o)},onDragEnd:Ue,style:f({cursor:"move",opacity:Ce===o?.5:1,backgroundColor:Ae===o?"#F9FAFB":"white",transition:"background-color 0.2s"},s.style),onMouseEnter:function(e){Ce!==o&&Ae!==o&&(e.currentTarget.style.backgroundColor="#F9FAFB")},onMouseLeave:function(e){Ce!==o&&Ae!==o&&(e.currentTarget.style.backgroundColor="white")}},s,{children:[C&&n("td",{style:{width:"number"==typeof C.columnWidth?"".concat(C.columnWidth,"px"):"string"==typeof C.columnWidth?C.columnWidth:"60px",position:C.fixed?"sticky":"relative",left:"left"===C.fixed||!0===C.fixed?"0px":void 0,right:"right"===C.fixed?"0px":void 0,zIndex:C.fixed?"left"===C.fixed||!0===C.fixed?12:11:1,backgroundColor:"white",padding:"16px",borderBottom:c?"none":"1px solid #EAECF0",textAlign:"center"},children:n("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:n(I,{checked:a,onChange:function(e){return Be(t,e.target.checked)},disabled:null===(r=C.getCheckboxProps)||void 0===r?void 0:r.call(C,t).disabled})})}),v.map(function(e,i){var r,l=e.key||(Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex)||i,a=(null===(r=e.onCell)||void 0===r?void 0:r.call(e,t,o))||{},d=Ye(i,e.fixed,!1),s=e.width?"number"==typeof e.width?"".concat(e.width,"px"):e.width:void 0;return n("td",f({className:"".concat(e.className||""," ").concat(e.align?"text-".concat(e.align):""),style:f({width:s,minWidth:e.minWidth?"number"==typeof e.minWidth?"".concat(e.minWidth,"px"):e.minWidth:s||void 0,maxWidth:s,position:e.fixed?"sticky":"relative",left:"left"===e.fixed||!0===e.fixed?void 0!==d?"".concat(d,"px"):"0":void 0,right:"right"===e.fixed?void 0!==d?"".concat(d,"px"):"0":void 0,zIndex:e.fixed?"left"===e.fixed||!0===e.fixed?10:9:1,backgroundColor:"white",boxShadow:"left"===e.fixed||!0===e.fixed?"2px 0 4px rgba(0, 0, 0, 0.05)":"right"===e.fixed?"-2px 0 4px rgba(0, 0, 0, 0.05)":void 0,padding:"16px",borderBottom:c?"none":"1px solid #EAECF0",fontSize:"14px",lineHeight:"20px",color:"#101828",fontFamily:"DM Sans, sans-serif",textAlign:e.align||"left"},a.style),colSpan:e.colSpan,rowSpan:e.rowSpan},a,{children:Ke(e,t,o)}),l)})]})),(null==te?void 0:te.expandedRowRender)&&d&&n("tr",{children:n("td",{colSpan:v.length+(C?1:0),children:te.expandedRowRender(t,o,0,!0)})})]},l)})},[Oe,k,de,he,C,v,G,ie,Be,Ke,te,Ce,Ae,Je,Qe,qe,Ue,Ye,Xe]),_e=function(){var e;if(!1===F||!F)return null;var t=null!==(e=F.total)&&void 0!==e?e:He.length,i=F.position||"bottomRight";return n("div",{style:{marginTop:"16px",display:"flex",justifyContent:i.includes("Right")?"flex-end":i.includes("Left")?"flex-start":"center"},children:n(E,{current:ve,total:t,pageSize:be,showSizeChanger:F.showSizeChanger,pageSizeOptions:F.pageSizeOptions,showQuickJumper:F.showQuickJumper,showTotal:F.showTotal,onChange:Pe,onShowSizeChange:Pe,simple:F.simple,responsive:F.responsive,size:"small"===z?"small":"default"})})},Ze=p(function(){return v.some(function(e){return e.fixed})||C&&C.fixed},[v,C]),$e=p(function(){return v.every(function(e){return e.width})&&(!C||C.columnWidth)},[v,C]),en=p(function(){if(null==V?void 0:V.x){if("number"==typeof V.x)return V.x;if(!0===V.x)return v.reduce(function(e,n){return e+(n.width?"number"==typeof n.width?n.width:parseInt(String(n.width).replace("px",""))||0:150)},0)+(C?"number"==typeof C.columnWidth?C.columnWidth:parseInt(String(C.columnWidth||"60").replace("px",""))||60:0)}if(Ze)return v.reduce(function(e,n){return n.fixed&&n.width?e+("number"==typeof n.width?n.width:parseInt(String(n.width).replace("px",""))||0):e},0)+(C&&C.fixed&&C.columnWidth?"number"==typeof C.columnWidth?C.columnWidth:parseInt(String(C.columnWidth).replace("px",""))||60:0)},[v,null==V?void 0:V.x,C,Ze]),nn=p(function(){return"fixed"===Q||Ze||$e||v.some(function(e){return e.width})?"fixed":Q},[Q,Ze,$e,v]),tn=f(f({width:"100%",minWidth:en?"".concat(en,"px"):"100%",borderCollapse:"separate",borderSpacing:0,tableLayout:nn,backgroundColor:"white"},W&&{borderRadius:"8px",border:"1px solid #EAECF0"}),{overflow:"hidden"}),on=f({position:"relative",width:"100%",maxWidth:"100%",maxHeight:"number"==typeof(null==V?void 0:V.y)?"".concat(V.y,"px"):void 0,borderRadius:"8px"},ne);if(We)return e("div",f({ref:Ee,className:"aha-table aha-table-mobile-wrapper ".concat(Z),style:on,"aria-busy":!!B||void 0},re,{children:[P&&n("div",{style:{marginBottom:"16px"},children:P(He)}),F&&"object"==typeof F&&(null===(o=F.position)||void 0===o?void 0:o.startsWith("top"))&&_e(),(Me="function"==typeof(null==H?void 0:H.emptyText)?H.emptyText():void 0!==(null==H?void 0:H.emptyText)?H.emptyText:"No data",0===Oe.length?n("div",{className:"aha-table-mobile aha-table-placeholder",style:{padding:"48px 16px",textAlign:"center",color:"#98A2B3",fontSize:"14px",lineHeight:"20px",fontFamily:"DM Sans, sans-serif"},children:Me}):n("div",{className:"aha-table-mobile",children:Oe.map(function(t,i){var o,r=M(t,k),l=de.includes(r);return e("div",{className:"aha-table-mobile-row ".concat(l?"selected":""),style:{border:"1px solid #e8e8e8",borderRadius:"4px",padding:"12px",marginBottom:"12px",backgroundColor:l?"#e6f7ff":"white"},children:[C&&n("div",{style:{marginBottom:"8px"},children:n(I,{checked:l,onChange:function(e){return Be(t,e.target.checked)},disabled:null===(o=C.getCheckboxProps)||void 0===o?void 0:o.call(C,t).disabled})}),v.map(function(o){var r=o.key||(Array.isArray(o.dataIndex)?o.dataIndex.join("."):o.dataIndex),l=N(t,o.dataIndex||""),a=o.render?o.render(l,t,i):l;return e("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"8px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"},children:[e("span",{style:{fontWeight:"bold",color:"#666"},children:["function"==typeof o.title?o.title({}):o.title,":"]}),n("span",{style:{flex:1,textAlign:"right"},children:a})]},r)})]},r)})})),K&&n("div",{style:{marginTop:"16px"},children:K(He)}),F&&("object"!=typeof F||!(null===(r=F.position)||void 0===r?void 0:r.startsWith("top")))&&_e(),n(j,{loading:B,spinColor:le})]}));var rn={position:"relative",overflowX:(null==V?void 0:V.x)||Ze?"auto":"visible",overflowY:(null==V?void 0:V.y)?"auto":"visible",width:"100%",maxWidth:!0===(null==V?void 0:V.x)?"100%":"number"==typeof(null==V?void 0:V.x)?"".concat(V.x,"px"):void 0,maxHeight:"number"==typeof(null==V?void 0:V.y)?"".concat(V.y,"px"):void 0,borderRadius:"8px"};return e("div",f({ref:Ee,className:"aha-table ".concat(Z),style:on,"aria-busy":!!B||void 0},re,{children:[P&&n("div",{style:{marginBottom:"16px"},children:P(He)}),F&&"object"==typeof F&&(null===(a=F.position)||void 0===a?void 0:a.startsWith("top"))&&_e(),n("div",{style:rn,children:n("div",{style:{width:"100%",minWidth:en?"".concat(en,"px"):"100%",display:"block"},children:e("table",{style:tn,className:ee,children:[Ve(),n("tbody",{children:Ge()}),Y&&n("tfoot",{children:n("tr",{children:n("td",{colSpan:v.length+(C?1:0),children:Y(He)})})})]})})}),K&&n("div",{style:{marginTop:"16px"},children:K(He)}),F&&("object"!=typeof F||!(null===(u=F.position)||void 0===u?void 0:u.startsWith("top")))&&_e(),n(j,{loading:B,spinColor:le})]}))};export{H as default};
2
2
  //# sourceMappingURL=Table.esm.js.map