aha-components 1.7.7 → 1.7.9

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),t=require("react-dom"),o=function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},o.apply(this,arguments)};function i(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t}function r(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var l={primaryColor:"#FB6011"},a=n.createContext(l),s=function(){var e=n.useContext(a);return e||l},d={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"}},p=function(n){var t=n.size,o=n.color;return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:"\n @keyframes aha-button-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{animation:"aha-button-spin 1s linear infinite"},children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"24",opacity:"0.3"}),e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"16"})]})]})},u=function(t){var r,l=t.children,a=t.type,u=void 0===a?"default":a,c=t.size,x=void 0===c?"medium":c,f=t.disabled,h=void 0!==f&&f,g=t.loading,m=void 0!==g&&g,v=t.onClick,y=t.htmlType,b=void 0===y?"button":y,w=t.className,F=void 0===w?"":w,j=t.style,C=t.icon,k=t.iconPosition,S=void 0===k?"left":k,z=i(t,["children","type","size","disabled","loading","onClick","htmlType","className","style","icon","iconPosition"]),E=s().primaryColor,A=void 0===E?"#FB6011":E,D=n.useState(!1),L=D[0],M=D[1],B=n.useState(!1),R=B[0],W=B[1],H=d[x],I=h||m,O=function(){if(m){var n="primary"===u?"#FFFFFF":"#101828",t=parseInt(H.iconSize.replace("px",""));return e.jsx(p,{size:t,color:n})}return C?e.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:H.iconSize,height:H.iconSize,flexShrink:0},children:C}):null},N=(r=o({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:H.gap,height:H.height,paddingLeft:H.paddingLeft,paddingRight:H.paddingRight,fontSize:H.fontSize,lineHeight:H.lineHeight,fontWeight:500,fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"none",cursor:I?"not-allowed":"pointer",outline:"none",transition:"all 0.2s",userSelect:"none",WebkitTapHighlightColor:"transparent"},j),"primary"===u?(r.color="#FFFFFF",r.backgroundColor=A,h?(r.opacity=.4,r.cursor="not-allowed"):m?r.backgroundColor=A:R?r.backgroundColor="#EC470A":L&&(r.backgroundColor="#FD843A")):h?(r.backgroundColor="#FAFAF9",r.color="#D6D3D1",r.border="1px solid #E7E5E4"):m?(r.backgroundColor="#FFFFFF",r.color="#101828",r.border="1px solid #E7E5E4",r.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):R?(r.backgroundColor="#F5F5F4",r.color="#101828",r.border="1px solid #D7D3D0",r.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):L?(r.backgroundColor="#FAFAF9",r.color="#101828",r.border="1px solid #D7D3D0",r.boxShadow="0px 2px 4px 0px rgba(12, 10, 9, 0.08)"):(r.backgroundColor="#FFFFFF",r.color="#101828",r.border="1px solid #E7E5E4",r.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"),r);return e.jsxs("button",o({type:b,className:"aha-button aha-button--".concat(u," aha-button--").concat(x," ").concat(I?"aha-button--disabled":""," ").concat(m?"aha-button--loading":""," ").concat(F),disabled:I,onClick:function(e){I?e.preventDefault():null==v||v(e)},onMouseEnter:function(){return!I&&M(!0)},onMouseLeave:function(){M(!1),W(!1)},onMouseDown:function(){return!I&&W(!0)},onMouseUp:function(){return W(!1)},style:N},z,{children:[m&&O(),!m&&"left"===S&&O(),l&&e.jsx("span",{style:{display:"inline-block"},children:l}),!m&&"right"===S&&O()]}))};u.displayName="Button";var c=n.forwardRef(function(t,r){var l=t.size,a=void 0===l?"medium":l,d=t.disabled,p=void 0!==d&&d,u=t.error,c=void 0!==u&&u,x=t.readOnly,f=void 0!==x&&x,h=t.prefix,g=t.suffix,m=t.allowClear,v=void 0!==m&&m,y=t.onClear,b=t.className,w=void 0===b?"":b,F=t.style,j=t.type,C=void 0===j?"text":j,k=t.placeholder,S=t.value,z=t.defaultValue,E=t.onChange,A=t.onFocus,D=t.onBlur,L=t.onPressEnter,M=i(t,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter"]),B=s().primaryColor,R=void 0===B?"#FB6011":B,W=n.useRef(null),H=n.useState(z||S||""),I=H[0],O=H[1],N=n.useState(!1),T=N[0],P=N[1];n.useEffect(function(){"function"==typeof r?r(W.current):r&&(r.current=W.current)},[r]);var Y=void 0!==S,q=Y?S:I,V=function(e){var n;e.stopPropagation(),Y||O("");null==E||E({target:{value:""},currentTarget:{value:""}}),null==y||y(),null===(n=W.current)||void 0===n||n.focus()},K=v&&q&&!p,_={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"}},U=g||K?"40px":"12px",G=o({width:"100%",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(c?"#F04438":T?R:"#D7D3D0"),backgroundColor:p||f?"#FAFAF9":"#FFFFFF",color:p?"#98A2B3":"#1C1917",fontSize:"16px",fontWeight:400,lineHeight:"24px",paddingLeft:h?"40px":"12px",paddingRight:U,paddingTop:_[a].paddingTop,paddingBottom:_[a].paddingBottom,transition:"all 0.2s",outline:"none",WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"},F);return e.jsxs(e.Fragment,{children:[e.jsx("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.jsxs("div",{className:"aha-input-wrapper ".concat(w),style:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%"},children:[h&&e.jsx("span",{style:{position:"absolute",left:"12px",display:"flex",alignItems:"center",color:p?"#98A2B3":"#78716C",zIndex:1,pointerEvents:"none"},children:h}),e.jsx("input",o({ref:W,type:C,value:q,placeholder:k,disabled:p,readOnly:f,onChange:function(e){Y||O(e.target.value),null==E||E(e)},onFocus:function(e){P(!0),null==A||A(e)},onBlur:function(e){P(!1),null==D||D(e)},onKeyDown:function(e){var n;"Enter"===e.key&&L&&L(e),null===(n=M.onKeyDown)||void 0===n||n.call(M,e)},style:G,autoComplete:M.autoComplete||"off",autoCorrect:M.autoCorrect||"off",autoCapitalize:M.autoCapitalize||"off",spellCheck:M.spellCheck||!1},M)),(g||K)&&e.jsxs("span",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px",color:p?"#98A2B3":"#78716C",zIndex:1},children:[K&&e.jsx(function(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:V,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),g&&e.jsx("span",{style:{pointerEvents:"none"},children:g})]})]})]})});c.displayName="Input";var x=function(i){var l,a=i.value,d=i.defaultValue,p=i.options,u=void 0===p?[]:p,c=i.mode,x=i.disabled,f=void 0!==x&&x,h=i.error,g=void 0!==h&&h,m=i.placeholder,v=void 0===m?"Please select":m,y=i.size,b=void 0===y?"medium":y,w=i.showSearch,F=void 0!==w&&w,j=i.filterOption,C=void 0===j||j,k=i.allowClear,S=void 0!==k&&k,z=i.onChange,E=i.onSelect,A=i.onDeselect,D=i.onSearch,L=i.onFocus,M=i.onBlur,B=i.onDropdownVisibleChange,R=i.className,W=void 0===R?"":R,H=i.style,I=i.dropdownClassName,O=void 0===I?"":I,N=i.dropdownStyle,T=i.defaultOpen,P=void 0!==T&&T,Y=i.open,q=i.maxTagCount,V=i.tagRender,K=i.optionRender,_=s().primaryColor,U=void 0===_?"#FB6011":_,G=n.useState(void 0!==d?d:c?[]:void 0),J=G[0],Q=G[1],X=n.useState(P),Z=X[0],$=X[1],ee=n.useState(""),ne=ee[0],te=ee[1],oe=n.useState(-1),ie=oe[0],re=oe[1],le=n.useRef(null),ae=n.useRef(null),se=n.useRef(null),de=n.useState(null),pe=de[0],ue=de[1],ce=void 0!==a,xe=void 0!==Y,fe=ce?a:J,he=xe?Y:Z,ge="multiple"===c||"tags"===c,me=n.useCallback(function(){if(!fe)return[];var e=Array.isArray(fe)?fe:[fe];return u.filter(function(n){return e.includes(n.value)})},[fe,u]),ve=n.useCallback(function(){return F&&ne?!1===C?u:"function"==typeof C?u.filter(function(e){return C(ne,e)}):u.filter(function(e){var n=String(e.label||"").toLowerCase(),t=ne.toLowerCase();return n.includes(t)}):u},[u,ne,F,C]),ye=n.useMemo(function(){return ve()},[ve]);n.useEffect(function(){if(he&&le.current){var e=function(){var e,n;if(le.current){var t=le.current.getBoundingClientRect(),o=null!==(n=null===(e=se.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:Math.min(256,Math.max(40,40*ye.length)),i=window.innerHeight-t.bottom,r=t.top,l=i<o+4&&r>i,a=l?t.top+window.scrollY-o-4:t.bottom+window.scrollY+4;ue({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)}}ue(null)},[he,ye.length]),n.useEffect(function(){var e=function(e){var n=e.target;le.current&&!le.current.contains(n)&&se.current&&!se.current.contains(n)&&(xe||$(!1),null==B||B(!1),te(""))};if(he)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0)}},[he,xe,B]),n.useEffect(function(){if(he){var e=function(e){var n;if("ArrowDown"===e.key)e.preventDefault(),re(function(e){return e<ye.length-1?e+1:e});else if("ArrowUp"===e.key)e.preventDefault(),re(function(e){return e>0?e-1:0});else if("Enter"===e.key&&ie>=0){e.preventDefault();var t=ye[ie];t&&!t.disabled&&be(t)}else"Escape"===e.key&&(e.preventDefault(),xe||$(!1),null==B||B(!1),null===(n=le.current)||void 0===n||n.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[he,ye,ie,xe,B]),n.useEffect(function(){if(ie>=0&&se.current){var e=se.current.querySelectorAll(".aha-select-option")[ie];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[ie]);var be=n.useCallback(function(e){var n;if(!e.disabled)if(ge){var t,o=Array.isArray(fe)?fe:[];o.includes(e.value)?(t=o.filter(function(n){return n!==e.value}),null==A||A(e.value,e)):(t=r(r([],o,!0),[e.value],!1),null==E||E(e.value,e)),ce||Q(t);var i=u.filter(function(e){return t.includes(e.value)});null==z||z(t,i)}else ce||Q(e.value),null==z||z(e.value,e),null==E||E(e.value,e),xe||$(!1),null==B||B(!1),te(""),null===(n=le.current)||void 0===n||n.focus()},[ge,fe,ce,xe,u,z,E,A,B]),we=n.useCallback(function(e,n){if(e.stopPropagation(),ge&&Array.isArray(fe)){var t=fe.filter(function(e){return e!==n}),o=u.find(function(e){return e.value===n});ce||Q(t),null==z||z(t,me()),null==A||A(n,o)}},[ge,fe,ce,u,z,A,me]),Fe=function(e){e.stopPropagation();var n=ge?[]:void 0;ce||Q(n),null==z||z(n,[]),te("")},je={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"}},Ce=n.useMemo(function(){return me()},[me]),ke=n.useMemo(function(){return S&&fe&&!f},[S,fe,f]),Se=n.useMemo(function(){return ge?Array.isArray(fe)&&fe.length>0:null!=fe&&""!==fe},[ge,fe]),ze=n.useMemo(function(){if(!ge||!Array.isArray(fe)||0===fe.length)return null;var t="responsive"===q?Ce.slice(0,2):q?Ce.slice(0,q):Ce,o=q&&Ce.length>t.length?Ce.length-t.length:0;return e.jsxs("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:!f,onClose:function(){return we({},t.value)}};return V?e.jsx(n.Fragment,{children:V(o)},t.value):e.jsxs("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:[e.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),!f&&e.jsx("span",{onClick:function(e){return we(e,t.value)},style:{cursor:"pointer",display:"flex",alignItems:"center",color:"#78716C",marginLeft:"4px"},children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]},t.value)}),o>0&&e.jsxs("span",{style:{fontSize:"12px",lineHeight:"18px",color:"#78716C",fontFamily:"DM Sans, sans-serif"},children:["+",o]})]})},[ge,fe,Ce,q,f,V]);return e.jsxs(e.Fragment,{children:[e.jsx("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.jsxs("div",{ref:le,className:"aha-select ".concat(W),style:o({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(g?"#F04438":he?U:"#D7D3D0"),backgroundColor:f?"#FAFAF9":"#FFFFFF",cursor:f?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:je[b].paddingTop,paddingBottom:je[b].paddingBottom,fontSize:je[b].fontSize,lineHeight:je[b].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},H),onClick:function(){if(!f){var e=!he;xe||$(e),null==B||B(e),e&&F?setTimeout(function(){var e;null===(e=ae.current)||void 0===e||e.focus()},0):te("")}},onFocus:function(e){null==L||L(e)},onBlur:function(e){null==M||M(e)},onTouchStart:function(e){f||(e.currentTarget.style.opacity="0.8")},onTouchEnd:function(e){e.currentTarget.style.opacity="1"},tabIndex:f?-1:0,children:[e.jsx("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0,gap:"8px"},children:ge?ze||(v?e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400},children:v}):e.jsx("span",{style:{flex:1,minHeight:"24px"}})):F&&he?e.jsx("input",{ref:ae,type:"text",value:ne,onChange:function(e){var n=e.target.value;te(n),null==D||D(n),re(-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:f?"#98A2B3":"#1C1917",fontFamily:"DM Sans, sans-serif",minWidth:0,WebkitAppearance:"none",appearance:"none"},placeholder:Se?void 0:v,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:Se?f?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:Se?(null===(l=Ce[0])||void 0===l?void 0:l.label)||fe:v||" "})}),e.jsxs("div",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[ke&&e.jsx(function(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:Fe,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),e.jsx(function(n){var t=n.isOpen;return e.jsx("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:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#78716C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{isOpen:he})]})]}),he&&pe&&t.createPortal(e.jsx("div",{ref:se,className:"aha-select-dropdown ".concat(O),style:o({position:"absolute",top:"".concat(pe.top,"px"),left:"".concat(pe.left,"px"),width:"".concat(pe.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"===pe.placement?"translateY(8px)":"translateY(-8px)",animation:"dropdownFadeIn 0.2s ease-out forwards",transformOrigin:"top"===pe.placement?"bottom center":"top center",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},N),children:0===ye.length?e.jsx("div",{style:{padding:"8px 16px",textAlign:"center",color:"#78716C",fontSize:"14px",fontFamily:"DM Sans, sans-serif"},children:"No data"}):ye.map(function(n,t){var o=ge?Array.isArray(fe)&&fe.includes(n.value):fe===n.value,i=t===ie;return K?e.jsx("div",{className:"aha-select-option ".concat(n.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return!n.disabled&&be(n)},style:{cursor:n.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:K(n,{selected:o,focused:i,disabled:n.disabled||!1})},n.value):e.jsxs("div",{className:"aha-select-option ".concat(n.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return be(n)},style:{padding:"8px 16px",cursor:n.disabled?"not-allowed":"pointer",color:n.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:[e.jsx("span",{children:n.label}),o&&e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i?"hidden":"",children:e.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:U,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},n.value)})}),document.body)]})};x.displayName="Select";var f=function(n){var t=n.className,o=n.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:o,children:e.jsx("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"})})},h=function(n){var t=n.className,o=n.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:o,children:e.jsx("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"})})};exports.default=function(t){var i=t.current,r=t.defaultCurrent,l=void 0===r?1:r,a=t.total,d=void 0===a?0:a,p=t.pageSize,g=t.defaultPageSize,m=void 0===g?10:g,v=t.showSizeChanger,y=void 0!==v&&v,b=t.pageSizeOptions,w=void 0===b?["10","20","50","100"]:b,F=t.showQuickJumper,j=void 0!==F&&F,C=t.showTotal,k=t.onChange,S=t.onShowSizeChange,z=t.simple,E=void 0!==z&&z,A=t.disabled,D=void 0!==A&&A,L=t.hideOnSinglePage,M=void 0!==L&&L,B=t.className,R=void 0===B?"":B,W=t.style,H=t.size,I=void 0===H?"default":H,O=t.responsive,N=void 0!==O&&O;t.showLessItems;var T=t.itemRender,P=s().primaryColor,Y=void 0===P?"#FB6011":P,q=n.useState(l),V=q[0],K=q[1],_=n.useState(m),U=_[0],G=_[1],J=n.useState(""),Q=J[0],X=J[1],Z=null!=i?i:V,$=null!=p?p:U,ee=n.useMemo(function(){return Math.ceil(d/$)},[d,$]);n.useEffect(function(){void 0!==i&&K(i)},[i]),n.useEffect(function(){void 0!==p&&G(p)},[p]);var ne=function(e){e<1||e>ee||e===Z||D||(void 0===i&&K(e),null==k||k(e,$))},te=function(){var e=parseInt(Q,10);e>=1&&e<=ee&&(ne(e),X(""))};if(M&&ee<=1)return null;if(E)return e.jsxs("div",{className:"aha-pagination aha-pagination-simple ".concat(R),style:W,children:[e.jsx(u,{onClick:function(){return ne(Z-1)},disabled:D||1===Z,type:"default",size:"default"===I?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(f,{})}),e.jsxs("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[Z," / ",ee]}),e.jsx(u,{onClick:function(){return ne(Z+1)},disabled:D||Z===ee,type:"default",size:"default"===I?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(h,{})})]});var oe=(Z-1)*$+1,ie=Math.min(Z*$,d);return e.jsxs("div",{className:"aha-pagination w-full ".concat(R),style:o({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:N?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},W),children:[C&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:C(d,[oe,ie])}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[d>0&&e.jsx(e.Fragment,{children:T?T(Z-1,"prev",e.jsx(u,{onClick:function(){return ne(Z-1)},disabled:D||1===Z,type:"default",size:"default"===I?"medium":"small",style:{height:"small"===I?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(f,{})})):e.jsx(u,{onClick:function(){return ne(Z-1)},disabled:D||1===Z,type:"default",size:"default"===I?"medium":"small",style:{height:"small"===I?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(f,{})})}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(ee<=7)return Array.from({length:ee},function(e,n){return n+1});var e=[];if(Z<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(ee)}else if(Z>=ee-3){e.push(1),e.push("jump-prev");for(n=ee-4;n<=ee;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=Z-1;n<=Z+1;n++)e.push(n);e.push("jump-next"),e.push(ee)}return e}().map(function(n){return function(n){if("number"==typeof n){var t=n===Z,o=e.jsx(u,{onClick:function(){return ne(n)},disabled:D,type:t?"primary":"default",size:"default"===I?"medium":"small",style:{minWidth:"small"===I?"32px":"36px",height:"small"===I?"32px":"36px",padding:"0 12px",margin:0,fontWeight:t?500:400,border:t?"1px solid ".concat(Y):void 0,boxShadow:"none",borderRadius:"8px"},children:n},n);return T?T(n,"page",o):o}if("jump-prev"===n)return o=e.jsx(u,{onClick:function(){return ne(Math.max(1,Z-5))},disabled:D,type:"default",size:"default"===I?"medium":"small",style:{minWidth:"small"===I?"32px":"36px",height:"small"===I?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),T?T(Z-5,"jump-prev",o):o;if("jump-next"===n)return o=e.jsx(u,{onClick:function(){return ne(Math.min(ee,Z+5))},disabled:D,type:"default",size:"default"===I?"medium":"small",style:{minWidth:"small"===I?"32px":"36px",height:"small"===I?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),T?T(Z+5,"jump-next",o):o;return null}(n)})}),d>0&&e.jsx(e.Fragment,{children:T?T(Z+1,"next",e.jsx(u,{onClick:function(){return ne(Z+1)},disabled:D||Z===ee,type:"default",size:"default"===I?"medium":"small",style:{height:"small"===I?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(h,{})})):e.jsx(u,{onClick:function(){return ne(Z+1)},disabled:D||Z===ee,type:"default",size:"default"===I?"medium":"small",style:{height:"small"===I?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(h,{})})}),y&&e.jsx(x,{value:$,options:w.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return n=Number(e),t=Math.ceil(d/n),o=Z>t?t:Z,void 0===p&&G(n),void 0===i&&K(o),null==S||S(o,n),void(null==k||k(o,n));var n,t,o},disabled:D,size:"small"===I?"small":"medium",style:{minWidth:"small"===I?80:96}}),j&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"DM Sans, sans-serif"},children:[e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"Go to"}),e.jsx(c,{type:"number",min:1,value:Q,onChange:function(e){return X(e.target.value)},onPressEnter:te,disabled:D,size:"small"===I?"small":"medium",style:{width:56,minWidth:56}}),e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"page"}),"object"==typeof j&&j.goButton?e.jsx(u,{onClick:te,disabled:D,type:"default",size:"default"===I?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:j.goButton}):e.jsx(u,{onClick:te,disabled:D,type:"default",size:"default"===I?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"OK"})]})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),o=require("react-dom"),r=function(){return r=Object.assign||function(e){for(var n,o=1,r=arguments.length;o<r;o++)for(var t in n=arguments[o])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},r.apply(this,arguments)};function t(e,n){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)n.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(o[r[t]]=e[r[t]])}return o}function i(e,n,o){if(o||2===arguments.length)for(var r,t=0,i=n.length;t<i;t++)!r&&t in n||(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var a={primaryColor:"#FB6011"},l=n.createContext(a),s=function(){var e=n.useContext(l);return e||a},d={sm:"sm",md:"md",lg:"lg",xl:"xl",small:"sm",mediumSmall:"sm",medium:"md",large:"xl"},c={primary:"primary",secondary:"secondary",tertiary:"tertiary","link-color":"link-color","link-gray":"link-gray","destructive-primary":"destructive-primary","destructive-secondary":"destructive-secondary","destructive-tertiary":"destructive-tertiary","destructive-link":"destructive-link",default:"secondary"},p={sm:{height:36,paddingX:12,paddingXLg:12,fontSize:14,lineHeight:20,iconSize:20,gap:4,iconOnlyPad:8},md:{height:40,paddingX:14,paddingXLg:14,fontSize:14,lineHeight:20,iconSize:20,gap:4,iconOnlyPad:10},lg:{height:44,paddingX:16,paddingXLg:16,fontSize:16,lineHeight:24,iconSize:20,gap:6,iconOnlyPad:12},xl:{height:48,paddingX:18,paddingXLg:18,fontSize:16,lineHeight:24,iconSize:20,gap:6,iconOnlyPad:14}},u=function(n){var o=n.size,r=n.color;return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:"@keyframes aha-button-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}"}),e.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,style:{animation:"aha-button-spin 1s linear infinite",flexShrink:0},children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:r,strokeWidth:"2",opacity:"0.25"}),e.jsx("path",{d:"M22 12a10 10 0 0 1-10 10",stroke:r,strokeWidth:"2",strokeLinecap:"round",fill:"none"})]})]})},f=function(o){var i=o.children,a=o.type,l=void 0===a?"secondary":a,f=o.size,h=void 0===f?"md":f,x=o.disabled,g=void 0!==x&&x,v=o.loading,m=void 0!==v&&v,y=o.iconOnly,b=o.focused,w=void 0!==b&&b,C=o.onClick,k=o.htmlType,S=void 0===k?"button":k,j=o.className,F=void 0===j?"":j,z=o.style,E=o.icon,L=o.iconPosition,A=void 0===L?"left":L,D=t(o,["children","type","size","disabled","loading","iconOnly","focused","onClick","htmlType","className","style","icon","iconPosition"]),M=s().primaryColor,B=n.useState(!1),O=B[0],W=B[1],H=n.useState(!1),R=H[0],I=H[1],N=c[l]||"secondary",T=p[d[h]||"md"],P=null!=y?y:!!E&&null==i,_="link-color"===N||"link-gray"===N||"destructive-link"===N,X=g||m,q=w,Y=M,V=function(){if(g)return"primary"===N||"secondary"===N||"destructive-primary"===N||"destructive-secondary"===N?{bg:"var(--color-bg-disabled, #f5f5f4)",color:"var(--color-fg-disabled, #a9a29d)",iconColor:"var(--color-fg-disabled, #a9a29d)",border:"1px solid var(--color-border-disabled_subtle, #e7e5e4)",boxShadow:"none"}:{bg:"transparent",color:"var(--color-fg-disabled, #a9a29d)",iconColor:"var(--color-fg-disabled, #a9a29d)",border:"none",boxShadow:"none"};var e=O||R;return"primary"===N?{bg:e?"var(--color-bg-brand-solid_hover, #ec470a)":Y||"var(--color-bg-brand-solid, #fb6011)",color:"var(--color-text-white, #ffffff)",iconColor:"var(--color-brand-300, #feb073)",border:"none",boxShadow:"var(--shadow-xs-skeuomorphic, 0 1px 2px 0 rgba(10,13,18,.05))"}:"secondary"===N?{bg:e?"var(--color-bg-primary_hover, #fafaf9)":"var(--color-bg-primary, #ffffff)",color:e?"var(--color-text-secondary_hover, #292524)":"var(--color-text-secondary, #44403c)",iconColor:e?"var(--color-fg-quaternary_hover, #79716b)":"var(--color-fg-quaternary, #a9a29d)",border:"none",boxShadow:"var(--shadow-xs-skeuomorphic)"}:"tertiary"===N?{bg:e?"var(--color-bg-primary_hover, #fafaf9)":"transparent",color:e?"var(--color-text-tertiary_hover, #44403c)":"var(--color-text-tertiary, #57534e)",iconColor:e?"var(--color-fg-quaternary_hover, #79716b)":"var(--color-fg-quaternary, #a9a29d)",border:"none",boxShadow:"none"}:"link-color"===N?{bg:"transparent",color:e?"var(--color-text-brand-secondary_hover, #c4330a)":"var(--color-text-brand-secondary, #ec470a)",iconColor:"var(--color-fg-brand-secondary_alt, #fb6011)",border:"none",boxShadow:"none",textDecoration:e?"underline":"none"}:"link-gray"===N?{bg:"transparent",color:e?"var(--color-text-tertiary_hover, #44403c)":"var(--color-text-tertiary, #57534e)",iconColor:"var(--color-fg-quaternary, #a9a29d)",border:"none",boxShadow:"none",textDecoration:e?"underline":"none"}:"destructive-primary"===N?{bg:e?"var(--color-error-600)":"var(--color-error-500)",color:"var(--color-text-white)",iconColor:e?"var(--color-error-200)":"var(--color-error-300)",border:"none",boxShadow:"var(--shadow-xs-skeuomorphic)"}:"destructive-secondary"===N?{bg:e?"var(--color-bg-error-primary)":"var(--color-bg-primary)",color:"var(--color-text-error-primary)",iconColor:"var(--color-fg-error-secondary)",border:"none",boxShadow:"inset 0 0 0 1px var(--color-border-error_subtle), inset 0 -2px 0 0 rgba(10,13,18,0.05), 0 1px 2px 0 rgba(10,13,18,0.05)"}:"destructive-tertiary"===N?{bg:e?"var(--color-bg-error-primary)":"transparent",color:"var(--color-text-error-primary)",iconColor:"var(--color-fg-error-secondary)",border:"none",boxShadow:"none"}:{bg:"transparent",color:e?"var(--color-text-error-primary_hover)":"var(--color-text-error-primary)",iconColor:"var(--color-fg-error-secondary)",border:"none",boxShadow:"none",textDecoration:e?"underline":"none"}}(),K=function(){if(q)return"destructive-primary"===N||"destructive-secondary"===N||"destructive-tertiary"===N||"destructive-link"===N?"destructive-primary"===N||"destructive-secondary"===N?"var(--focus-ring-error-shadow-xs-skeuomorphic)":"var(--focus-ring-error)":"primary"===N||"secondary"===N?"var(--focus-ring-shadow-xs-skeuomorphic, 0 0 0 2px #fff, 0 0 0 4px #fb6011)":"var(--focus-ring, 0 0 0 2px #fff, 0 0 0 4px #fb6011)"}(),U=r({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:T.gap,fontFamily:'var(--font-family-body, "DM Sans", system-ui, sans-serif)',fontWeight:600,fontSize:T.fontSize,lineHeight:"".concat(T.lineHeight,"px"),cursor:X?"not-allowed":"pointer",outline:"none",transition:"background-color .15s ease, color .15s ease, box-shadow .15s ease",userSelect:"none",WebkitTapHighlightColor:"transparent",whiteSpace:"nowrap",backgroundColor:V.bg,color:V.color,border:V.border,boxShadow:null!=K?K:V.boxShadow,textDecoration:V.textDecoration},z);_?(U.borderRadius="4px",U.overflow="hidden",P?(U.width=T.height,U.height=T.height,U.padding=0):(U.height=T.height,U.paddingLeft=T.paddingX,U.paddingRight=T.paddingX)):(U.borderRadius="var(--radius-md, 8px)",P?(U.width=T.height,U.height=T.height,U.padding=0):(U.height=T.height,U.paddingLeft=T.paddingX,U.paddingRight=T.paddingX));var G=function(){return m?e.jsx(u,{size:T.iconSize,color:V.iconColor}):E?e.jsx("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:T.iconSize,height:T.iconSize,color:V.iconColor,flexShrink:0},children:E}):null},J=m||E&&"left"===A,Q=!m&&E&&"right"===A;return e.jsxs("button",r({type:S,className:["aha-button","aha-button--".concat(N),"aha-button--".concat(d[h]||"md"),P&&"aha-button--icon-only",X&&"aha-button--disabled",m&&"aha-button--loading",q&&"aha-button--focused",F].filter(Boolean).join(" "),disabled:X,onClick:function(e){X?e.preventDefault():null==C||C(e)},onMouseEnter:function(){return!X&&W(!0)},onMouseLeave:function(){W(!1),I(!1)},onMouseDown:function(){return!X&&I(!0)},onMouseUp:function(){return I(!1)},style:U},D,{children:[J&&G(),!P&&i,Q&&G(),P&&!E&&!m&&i]}))};f.displayName="Button";var h=n.forwardRef(function(o,i){var a=o.size,l=void 0===a?"medium":a,d=o.disabled,c=void 0!==d&&d,p=o.error,u=void 0!==p&&p,f=o.readOnly,h=void 0!==f&&f,x=o.prefix,g=o.suffix,v=o.allowClear,m=void 0!==v&&v,y=o.onClear,b=o.className,w=void 0===b?"":b,C=o.style,k=o.type,S=void 0===k?"text":k,j=o.placeholder,F=o.value,z=o.defaultValue,E=o.onChange,L=o.onFocus,A=o.onBlur,D=o.onPressEnter,M=t(o,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter"]),B=s().primaryColor,O=void 0===B?"#FB6011":B,W=n.useRef(null),H=n.useState(z||F||""),R=H[0],I=H[1],N=n.useState(!1),T=N[0],P=N[1];n.useEffect(function(){"function"==typeof i?i(W.current):i&&(i.current=W.current)},[i]);var _=void 0!==F,X=_?F:R,q=function(e){var n;e.stopPropagation(),_||I("");null==E||E({target:{value:""},currentTarget:{value:""}}),null==y||y(),null===(n=W.current)||void 0===n||n.focus()},Y=m&&X&&!c,V={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"}},K=g||Y?"40px":"12px",U=r({width:"100%",boxSizing:"border-box",fontFamily:"DM Sans, sans-serif",borderRadius:"8px",border:"1px solid ".concat(u?"#F04438":T?O:"#D7D3D0"),backgroundColor:c||h?"#FAFAF9":"#FFFFFF",color:c?"#98A2B3":"#1C1917",fontSize:"16px",fontWeight:400,lineHeight:"24px",paddingLeft:x?"40px":"12px",paddingRight:K,paddingTop:V[l].paddingTop,paddingBottom:V[l].paddingBottom,transition:"all 0.2s",outline:"none",WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"},C);return e.jsxs(e.Fragment,{children:[e.jsx("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.jsxs("div",{className:"aha-input-wrapper ".concat(w),style:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%"},children:[x&&e.jsx("span",{style:{position:"absolute",left:"12px",display:"flex",alignItems:"center",color:c?"#98A2B3":"#78716C",zIndex:1,pointerEvents:"none"},children:x}),e.jsx("input",r({ref:W,type:S,value:X,placeholder:j,disabled:c,readOnly:h,onChange:function(e){_||I(e.target.value),null==E||E(e)},onFocus:function(e){P(!0),null==L||L(e)},onBlur:function(e){P(!1),null==A||A(e)},onKeyDown:function(e){var n;"Enter"===e.key&&D&&D(e),null===(n=M.onKeyDown)||void 0===n||n.call(M,e)},style:U,autoComplete:M.autoComplete||"off",autoCorrect:M.autoCorrect||"off",autoCapitalize:M.autoCapitalize||"off",spellCheck:M.spellCheck||!1},M)),(g||Y)&&e.jsxs("span",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px",color:c?"#98A2B3":"#78716C",zIndex:1},children:[Y&&e.jsx(function(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:q,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),g&&e.jsx("span",{style:{pointerEvents:"none"},children:g})]})]})]})});h.displayName="Input";var x=function(t){var a,l=t.value,d=t.defaultValue,c=t.options,p=void 0===c?[]:c,u=t.mode,f=t.disabled,h=void 0!==f&&f,x=t.error,g=void 0!==x&&x,v=t.placeholder,m=void 0===v?"Please select":v,y=t.size,b=void 0===y?"medium":y,w=t.showSearch,C=void 0!==w&&w,k=t.filterOption,S=void 0===k||k,j=t.allowClear,F=void 0!==j&&j,z=t.onChange,E=t.onSelect,L=t.onDeselect,A=t.onSearch,D=t.onFocus,M=t.onBlur,B=t.onDropdownVisibleChange,O=t.className,W=void 0===O?"":O,H=t.style,R=t.dropdownClassName,I=void 0===R?"":R,N=t.dropdownStyle,T=t.defaultOpen,P=void 0!==T&&T,_=t.open,X=t.maxTagCount,q=t.tagRender,Y=t.optionRender,V=s().primaryColor,K=void 0===V?"#FB6011":V,U=n.useState(void 0!==d?d:u?[]:void 0),G=U[0],J=U[1],Q=n.useState(P),Z=Q[0],$=Q[1],ee=n.useState(""),ne=ee[0],oe=ee[1],re=n.useState(-1),te=re[0],ie=re[1],ae=n.useRef(null),le=n.useRef(null),se=n.useRef(null),de=n.useState(null),ce=de[0],pe=de[1],ue=void 0!==l,fe=void 0!==_,he=ue?l:G,xe=fe?_:Z,ge="multiple"===u||"tags"===u,ve=n.useCallback(function(){if(!he)return[];var e=Array.isArray(he)?he:[he];return p.filter(function(n){return e.includes(n.value)})},[he,p]),me=n.useCallback(function(){return C&&ne?!1===S?p:"function"==typeof S?p.filter(function(e){return S(ne,e)}):p.filter(function(e){var n=String(e.label||"").toLowerCase(),o=ne.toLowerCase();return n.includes(o)}):p},[p,ne,C,S]),ye=n.useMemo(function(){return me()},[me]);n.useEffect(function(){if(xe&&ae.current){var e=function(){var e,n;if(ae.current){var o=ae.current.getBoundingClientRect(),r=null!==(n=null===(e=se.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:Math.min(256,Math.max(40,40*ye.length)),t=window.innerHeight-o.bottom,i=o.top,a=t<r+4&&i>t,l=a?o.top+window.scrollY-r-4:o.bottom+window.scrollY+4;pe({top:l,left:o.left+window.scrollX,width:o.width,placement:a?"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)}}pe(null)},[xe,ye.length]),n.useEffect(function(){var e=function(e){var n=e.target;ae.current&&!ae.current.contains(n)&&se.current&&!se.current.contains(n)&&(fe||$(!1),null==B||B(!1),oe(""))};if(xe)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0)}},[xe,fe,B]),n.useEffect(function(){if(xe){var e=function(e){var n;if("ArrowDown"===e.key)e.preventDefault(),ie(function(e){return e<ye.length-1?e+1:e});else if("ArrowUp"===e.key)e.preventDefault(),ie(function(e){return e>0?e-1:0});else if("Enter"===e.key&&te>=0){e.preventDefault();var o=ye[te];o&&!o.disabled&&be(o)}else"Escape"===e.key&&(e.preventDefault(),fe||$(!1),null==B||B(!1),null===(n=ae.current)||void 0===n||n.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[xe,ye,te,fe,B]),n.useEffect(function(){if(te>=0&&se.current){var e=se.current.querySelectorAll(".aha-select-option")[te];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[te]);var be=n.useCallback(function(e){var n;if(!e.disabled)if(ge){var o,r=Array.isArray(he)?he:[];r.includes(e.value)?(o=r.filter(function(n){return n!==e.value}),null==L||L(e.value,e)):(o=i(i([],r,!0),[e.value],!1),null==E||E(e.value,e)),ue||J(o);var t=p.filter(function(e){return o.includes(e.value)});null==z||z(o,t)}else ue||J(e.value),null==z||z(e.value,e),null==E||E(e.value,e),fe||$(!1),null==B||B(!1),oe(""),null===(n=ae.current)||void 0===n||n.focus()},[ge,he,ue,fe,p,z,E,L,B]),we=n.useCallback(function(e,n){if(e.stopPropagation(),ge&&Array.isArray(he)){var o=he.filter(function(e){return e!==n}),r=p.find(function(e){return e.value===n});ue||J(o),null==z||z(o,ve()),null==L||L(n,r)}},[ge,he,ue,p,z,L,ve]),Ce=function(e){e.stopPropagation();var n=ge?[]:void 0;ue||J(n),null==z||z(n,[]),oe("")},ke={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"}},Se=n.useMemo(function(){return ve()},[ve]),je=n.useMemo(function(){return F&&he&&!h},[F,he,h]),Fe=n.useMemo(function(){return ge?Array.isArray(he)&&he.length>0:null!=he&&""!==he},[ge,he]),ze=n.useMemo(function(){if(!ge||!Array.isArray(he)||0===he.length)return null;var o="responsive"===X?Se.slice(0,2):X?Se.slice(0,X):Se,r=X&&Se.length>o.length?Se.length-o.length:0;return e.jsxs("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px",flex:1,minWidth:0},children:[o.map(function(o){var r={label:o.label,value:o.value,closable:!h,onClose:function(){return we({},o.value)}};return q?e.jsx(n.Fragment,{children:q(r)},o.value):e.jsxs("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:[e.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o.label}),!h&&e.jsx("span",{onClick:function(e){return we(e,o.value)},style:{cursor:"pointer",display:"flex",alignItems:"center",color:"#78716C",marginLeft:"4px"},children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]},o.value)}),r>0&&e.jsxs("span",{style:{fontSize:"12px",lineHeight:"18px",color:"#78716C",fontFamily:"DM Sans, sans-serif"},children:["+",r]})]})},[ge,he,Se,X,h,q]);return e.jsxs(e.Fragment,{children:[e.jsx("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.jsxs("div",{ref:ae,className:"aha-select ".concat(W),style:r({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(g?"#F04438":xe?K:"#D7D3D0"),backgroundColor:h?"#FAFAF9":"#FFFFFF",cursor:h?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:ke[b].paddingTop,paddingBottom:ke[b].paddingBottom,fontSize:ke[b].fontSize,lineHeight:ke[b].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},H),onClick:function(){if(!h){var e=!xe;fe||$(e),null==B||B(e),e&&C?setTimeout(function(){var e;null===(e=le.current)||void 0===e||e.focus()},0):oe("")}},onFocus:function(e){null==D||D(e)},onBlur:function(e){null==M||M(e)},onTouchStart:function(e){h||(e.currentTarget.style.opacity="0.8")},onTouchEnd:function(e){e.currentTarget.style.opacity="1"},tabIndex:h?-1:0,children:[e.jsx("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0,gap:"8px"},children:ge?ze||(m?e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400},children:m}):e.jsx("span",{style:{flex:1,minHeight:"24px"}})):C&&xe?e.jsx("input",{ref:le,type:"text",value:ne,onChange:function(e){var n=e.target.value;oe(n),null==A||A(n),ie(-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:h?"#98A2B3":"#1C1917",fontFamily:"DM Sans, sans-serif",minWidth:0,WebkitAppearance:"none",appearance:"none"},placeholder:Fe?void 0:m,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:Fe?h?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:Fe?(null===(a=Se[0])||void 0===a?void 0:a.label)||he:m||" "})}),e.jsxs("div",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[je&&e.jsx(function(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:Ce,style:{cursor:"pointer",flexShrink:0,color:"#78716C"},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{}),e.jsx(function(n){var o=n.isOpen;return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out",flexShrink:0},children:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#78716C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},{isOpen:xe})]})]}),xe&&ce&&o.createPortal(e.jsx("div",{ref:se,className:"aha-select-dropdown ".concat(I),style:r({position:"absolute",top:"".concat(ce.top,"px"),left:"".concat(ce.left,"px"),width:"".concat(ce.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"===ce.placement?"translateY(8px)":"translateY(-8px)",animation:"dropdownFadeIn 0.2s ease-out forwards",transformOrigin:"top"===ce.placement?"bottom center":"top center",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},N),children:0===ye.length?e.jsx("div",{style:{padding:"8px 16px",textAlign:"center",color:"#78716C",fontSize:"14px",fontFamily:"DM Sans, sans-serif"},children:"No data"}):ye.map(function(n,o){var r=ge?Array.isArray(he)&&he.includes(n.value):he===n.value,t=o===te;return Y?e.jsx("div",{className:"aha-select-option ".concat(n.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(r?"bg-[#FAFAF9]":""),onClick:function(){return!n.disabled&&be(n)},style:{cursor:n.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:Y(n,{selected:r,focused:t,disabled:n.disabled||!1})},n.value):e.jsxs("div",{className:"aha-select-option ".concat(n.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(r?"bg-[#FAFAF9]":""),onClick:function(){return be(n)},style:{padding:"8px 16px",cursor:n.disabled?"not-allowed":"pointer",color:n.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:[e.jsx("span",{children:n.label}),r&&e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t?"hidden":"",children:e.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:K,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},n.value)})}),document.body)]})};x.displayName="Select";var g=function(n){var o=n.className,r=n.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,style:r,children:e.jsx("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"})})},v=function(n){var o=n.className,r=n.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,style:r,children:e.jsx("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"})})};exports.default=function(o){var t=o.current,i=o.defaultCurrent,a=void 0===i?1:i,l=o.total,d=void 0===l?0:l,c=o.pageSize,p=o.defaultPageSize,u=void 0===p?10:p,m=o.showSizeChanger,y=void 0!==m&&m,b=o.pageSizeOptions,w=void 0===b?["10","20","50","100"]:b,C=o.showQuickJumper,k=void 0!==C&&C,S=o.showTotal,j=o.onChange,F=o.onShowSizeChange,z=o.simple,E=void 0!==z&&z,L=o.disabled,A=void 0!==L&&L,D=o.hideOnSinglePage,M=void 0!==D&&D,B=o.className,O=void 0===B?"":B,W=o.style,H=o.size,R=void 0===H?"default":H,I=o.responsive,N=void 0!==I&&I;o.showLessItems;var T=o.itemRender,P=s().primaryColor,_=void 0===P?"#FB6011":P,X=n.useState(a),q=X[0],Y=X[1],V=n.useState(u),K=V[0],U=V[1],G=n.useState(""),J=G[0],Q=G[1],Z=null!=t?t:q,$=null!=c?c:K,ee=n.useMemo(function(){return Math.ceil(d/$)},[d,$]);n.useEffect(function(){void 0!==t&&Y(t)},[t]),n.useEffect(function(){void 0!==c&&U(c)},[c]);var ne=function(e){e<1||e>ee||e===Z||A||(void 0===t&&Y(e),null==j||j(e,$))},oe=function(){var e=parseInt(J,10);e>=1&&e<=ee&&(ne(e),Q(""))};if(M&&ee<=1)return null;if(E)return e.jsxs("div",{className:"aha-pagination aha-pagination-simple ".concat(O),style:W,children:[e.jsx(f,{onClick:function(){return ne(Z-1)},disabled:A||1===Z,type:"default",size:"default"===R?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(g,{})}),e.jsxs("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[Z," / ",ee]}),e.jsx(f,{onClick:function(){return ne(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===R?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(v,{})})]});var re=(Z-1)*$+1,te=Math.min(Z*$,d);return e.jsxs("div",{className:"aha-pagination w-full ".concat(O),style:r({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:N?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},W),children:[S&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:S(d,[re,te])}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[d>0&&e.jsx(e.Fragment,{children:T?T(Z-1,"prev",e.jsx(f,{onClick:function(){return ne(Z-1)},disabled:A||1===Z,type:"default",size:"default"===R?"medium":"small",style:{height:"small"===R?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(g,{})})):e.jsx(f,{onClick:function(){return ne(Z-1)},disabled:A||1===Z,type:"default",size:"default"===R?"medium":"small",style:{height:"small"===R?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(g,{})})}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(ee<=7)return Array.from({length:ee},function(e,n){return n+1});var e=[];if(Z<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(ee)}else if(Z>=ee-3){e.push(1),e.push("jump-prev");for(n=ee-4;n<=ee;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=Z-1;n<=Z+1;n++)e.push(n);e.push("jump-next"),e.push(ee)}return e}().map(function(n){return function(n){if("number"==typeof n){var o=n===Z,r=e.jsx(f,{onClick:function(){return ne(n)},disabled:A,type:o?"primary":"default",size:"default"===R?"medium":"small",style:{minWidth:"small"===R?"32px":"36px",height:"small"===R?"32px":"36px",padding:"0 12px",margin:0,fontWeight:o?500:400,border:o?"1px solid ".concat(_):void 0,boxShadow:"none",borderRadius:"8px"},children:n},n);return T?T(n,"page",r):r}if("jump-prev"===n)return r=e.jsx(f,{onClick:function(){return ne(Math.max(1,Z-5))},disabled:A,type:"default",size:"default"===R?"medium":"small",style:{minWidth:"small"===R?"32px":"36px",height:"small"===R?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),T?T(Z-5,"jump-prev",r):r;if("jump-next"===n)return r=e.jsx(f,{onClick:function(){return ne(Math.min(ee,Z+5))},disabled:A,type:"default",size:"default"===R?"medium":"small",style:{minWidth:"small"===R?"32px":"36px",height:"small"===R?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),T?T(Z+5,"jump-next",r):r;return null}(n)})}),d>0&&e.jsx(e.Fragment,{children:T?T(Z+1,"next",e.jsx(f,{onClick:function(){return ne(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===R?"medium":"small",style:{height:"small"===R?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(v,{})})):e.jsx(f,{onClick:function(){return ne(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===R?"medium":"small",style:{height:"small"===R?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(v,{})})}),y&&e.jsx(x,{value:$,options:w.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return n=Number(e),o=Math.ceil(d/n),r=Z>o?o:Z,void 0===c&&U(n),void 0===t&&Y(r),null==F||F(r,n),void(null==j||j(r,n));var n,o,r},disabled:A,size:"small"===R?"small":"medium",style:{minWidth:"small"===R?80:96}}),k&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"DM Sans, sans-serif"},children:[e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"Go to"}),e.jsx(h,{type:"number",min:1,value:J,onChange:function(e){return Q(e.target.value)},onPressEnter:oe,disabled:A,size:"small"===R?"small":"medium",style:{width:56,minWidth:56}}),e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"page"}),"object"==typeof k&&k.goButton?e.jsx(f,{onClick:oe,disabled:A,type:"default",size:"default"===R?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:k.goButton}):e.jsx(f,{onClick:oe,disabled:A,type:"default",size:"default"===R?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"OK"})]})]})]})};
2
2
  //# sourceMappingURL=Pagination.js.map