aha-components 1.5.6 → 1.5.8

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=function(){return t=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},t.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i={primaryColor:"#FB6011"},o=n.createContext(i),r=function(){var e=n.useContext(o);return e||i},a={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"}},l=function(n){var t=n.size,i=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:i,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"24",opacity:"0.3"}),e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"16"})]})]})},s=function(i){var o,s=i.children,d=i.type,p=void 0===d?"default":d,u=i.size,x=void 0===u?"medium":u,c=i.disabled,h=void 0!==c&&c,f=i.loading,g=void 0!==f&&f,m=i.onClick,b=i.htmlType,y=void 0===b?"button":b,v=i.className,j=void 0===v?"":v,F=i.style,C=i.icon,S=i.iconPosition,w=void 0===S?"left":S,k=function(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}(i,["children","type","size","disabled","loading","onClick","htmlType","className","style","icon","iconPosition"]),E=r().primaryColor,z=void 0===E?"#FB6011":E,M=n.useState(!1),A=M[0],D=M[1],R=n.useState(!1),L=R[0],O=R[1],H=a[x],N=h||g,B=function(){if(g){var n="primary"===p?"#FFFFFF":"#101828",t=parseInt(H.iconSize.replace("px",""));return e.jsx(l,{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},W=(o=t({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:N?"not-allowed":"pointer",outline:"none",transition:"all 0.2s",userSelect:"none",WebkitTapHighlightColor:"transparent"},F),"primary"===p?(o.color="#FFFFFF",o.backgroundColor=z,h?(o.opacity=.4,o.cursor="not-allowed"):g?o.backgroundColor=z:L?o.backgroundColor="#EC470A":A&&(o.backgroundColor="#FD843A")):h?(o.backgroundColor="#FAFAF9",o.color="#D6D3D1",o.border="1px solid #E7E5E4"):g?(o.backgroundColor="#FFFFFF",o.color="#101828",o.border="1px solid #E7E5E4",o.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):L?(o.backgroundColor="#F5F5F4",o.color="#101828",o.border="1px solid #D7D3D0",o.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"):A?(o.backgroundColor="#FAFAF9",o.color="#101828",o.border="1px solid #D7D3D0",o.boxShadow="0px 2px 4px 0px rgba(12, 10, 9, 0.08)"):(o.backgroundColor="#FFFFFF",o.color="#101828",o.border="1px solid #E7E5E4",o.boxShadow="0px 1px 2px 0px rgba(12, 10, 9, 0.05)"),o);return e.jsxs("button",t({type:y,className:"aha-button aha-button--".concat(p," aha-button--").concat(x," ").concat(N?"aha-button--disabled":""," ").concat(g?"aha-button--loading":""," ").concat(j),disabled:N,onClick:function(e){N?e.preventDefault():null==m||m(e)},onMouseEnter:function(){return!N&&D(!0)},onMouseLeave:function(){D(!1),O(!1)},onMouseDown:function(){return!N&&O(!0)},onMouseUp:function(){return O(!1)},style:W},k,{children:[g&&B(),!g&&"left"===w&&B(),s&&e.jsx("span",{style:{display:"inline-block"},children:s}),!g&&"right"===w&&B()]}))};s.displayName="Button";var d=function(n){var t=n.className,i=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:i,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"})})},p=function(n){var t=n.className,i=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:i,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(i){var o=i.current,a=i.defaultCurrent,l=void 0===a?1:a,u=i.total,x=void 0===u?0:u,c=i.pageSize,h=i.defaultPageSize,f=void 0===h?10:h,g=i.showSizeChanger,m=void 0!==g&&g,b=i.pageSizeOptions,y=void 0===b?["10","20","50","100"]:b,v=i.showQuickJumper,j=void 0!==v&&v,F=i.showTotal,C=i.onChange,S=i.onShowSizeChange,w=i.simple,k=void 0!==w&&w,E=i.disabled,z=void 0!==E&&E,M=i.hideOnSinglePage,A=void 0!==M&&M,D=i.className,R=void 0===D?"":D,L=i.style,O=i.size,H=void 0===O?"default":O,N=i.responsive,B=void 0!==N&&N;i.showLessItems;var W=i.itemRender,I=r().primaryColor,P=void 0===I?"#FB6011":I,T=n.useState(l),_=T[0],q=T[1],J=n.useState(f),K=J[0],Q=J[1],U=n.useState(""),G=U[0],V=U[1],X=null!=o?o:_,Y=null!=c?c:K,Z=n.useMemo(function(){return Math.ceil(x/Y)},[x,Y]);n.useEffect(function(){void 0!==o&&q(o)},[o]),n.useEffect(function(){void 0!==c&&Q(c)},[c]);var $=function(e){e<1||e>Z||e===X||z||(void 0===o&&q(e),null==C||C(e,Y))},ee=function(){var e=parseInt(G,10);e>=1&&e<=Z&&($(e),V(""))};if(A&&Z<=1)return null;if(k)return e.jsxs("div",{className:"aha-pagination aha-pagination-simple ".concat(R),style:L,children:[e.jsx(s,{onClick:function(){return $(X-1)},disabled:z||1===X,type:"default",size:"default"===H?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(d,{})}),e.jsxs("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[X," / ",Z]}),e.jsx(s,{onClick:function(){return $(X+1)},disabled:z||X===Z,type:"default",size:"default"===H?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(p,{})})]});var ne=(X-1)*Y+1,te=Math.min(X*Y,x);return e.jsxs("div",{className:"aha-pagination w-full ".concat(R),style:t({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:B?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},L),children:[F&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:F(x,[ne,te])}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[x>0&&e.jsx(e.Fragment,{children:W?W(X-1,"prev",e.jsx(s,{onClick:function(){return $(X-1)},disabled:z||1===X,type:"default",size:"default"===H?"medium":"small",style:{height:"small"===H?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(d,{})})):e.jsx(s,{onClick:function(){return $(X-1)},disabled:z||1===X,type:"default",size:"default"===H?"medium":"small",style:{height:"small"===H?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(d,{})})}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(Z<=7)return Array.from({length:Z},function(e,n){return n+1});var e=[];if(X<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(Z)}else if(X>=Z-3){e.push(1),e.push("jump-prev");for(n=Z-4;n<=Z;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=X-1;n<=X+1;n++)e.push(n);e.push("jump-next"),e.push(Z)}return e}().map(function(n,t){return function(n){if("number"==typeof n){var t=n===X,i=e.jsx(s,{onClick:function(){return $(n)},disabled:z,type:"default",size:"default"===H?"medium":"small",style:{minWidth:"small"===H?"32px":"36px",height:"small"===H?"32px":"36px",padding:"0 12px",margin:0,fontWeight:t?500:400,border:"none",background:t?"#FAFAF9":"white",backgroundColor:t?"#FAFAF9":"white",color:t?P:"#79716B",boxShadow:"none",borderRadius:"8px"},children:n},n);return W?W(n,"page",i):i}if("jump-prev"===n)return i=e.jsx(s,{onClick:function(){return $(Math.max(1,X-5))},disabled:z,type:"default",size:"default"===H?"medium":"small",style:{minWidth:"small"===H?"32px":"36px",height:"small"===H?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),W?W(X-5,"jump-prev",i):i;if("jump-next"===n)return i=e.jsx(s,{onClick:function(){return $(Math.min(Z,X+5))},disabled:z,type:"default",size:"default"===H?"medium":"small",style:{minWidth:"small"===H?"32px":"36px",height:"small"===H?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),W?W(X+5,"jump-next",i):i;return null}(n)})}),x>0&&e.jsx(e.Fragment,{children:W?W(X+1,"next",e.jsx(s,{onClick:function(){return $(X+1)},disabled:z||X===Z,type:"default",size:"default"===H?"medium":"small",style:{height:"small"===H?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(p,{})})):e.jsx(s,{onClick:function(){return $(X+1)},disabled:z||X===Z,type:"default",size:"default"===H?"medium":"small",style:{height:"small"===H?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(p,{})})}),m&&e.jsx("select",{value:Y,onChange:function(e){return n=Number(e.target.value),t=Math.ceil(x/n),i=X>t?t:X,void 0===c&&Q(n),void 0===o&&q(i),null==S||S(i,n),void(null==C||C(i,n));var n,t,i},disabled:z,style:{padding:"small"===H?"6px 12px":"8px 12px",border:"1px solid #EAECF0",borderRadius:"8px",fontSize:"small"===H?"12px":"14px",lineHeight:"small"===H?"18px":"20px",color:"#101828",fontFamily:"DM Sans, sans-serif",cursor:z?"not-allowed":"pointer",backgroundColor:"white",outline:"none",transition:"all 0.2s"},onMouseEnter:function(e){z||(e.currentTarget.style.borderColor=P)},onMouseLeave:function(e){e.currentTarget.style.borderColor="#EAECF0"},children:y.map(function(n){return e.jsxs("option",{value:n,children:[n," 条/页"]},n)})}),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:"跳至"}),e.jsx("input",{type:"number",min:"1",value:G,onChange:function(e){return V(e.target.value)},onKeyPress:function(e){return"Enter"===e.key&&ee()},disabled:z,style:{width:"56px",height:"small"===H?"28px":"36px",padding:"0 8px",border:"1px solid #EAECF0",borderRadius:"8px",fontSize:"14px",lineHeight:"20px",color:"#101828",fontFamily:"DM Sans, sans-serif",outline:"none",transition:"all 0.2s"},onFocus:function(e){e.currentTarget.style.borderColor=P},onBlur:function(e){e.currentTarget.style.borderColor="#EAECF0"}}),e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"页"}),"object"==typeof j&&j.goButton?e.jsx(s,{onClick:ee,disabled:z,type:"default",size:"default"===H?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:j.goButton}):e.jsx(s,{onClick:ee,disabled:z,type:"default",size:"default"===H?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"确定"})]})]})]})};
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,C=t.style,j=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],B=D[1],M=n.useState(!1),R=M[0],W=M[1],H=d[x],I=h||m,N=function(){if(m){var n="primary"===u?"#FFFFFF":"#101828",t=parseInt(H.iconSize.replace("px",""));return e.jsx(p,{size:t,color:n})}return j?e.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:H.iconSize,height:H.iconSize,flexShrink:0},children:j}):null},O=(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"},C),"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&&B(!0)},onMouseLeave:function(){B(!1),W(!1)},onMouseDown:function(){return!I&&W(!0)},onMouseUp:function(){return W(!1)},style:O},z,{children:[m&&N(),!m&&"left"===S&&N(),l&&e.jsx("span",{style:{display:"inline-block"},children:l}),!m&&"right"===S&&N()]}))};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,C=t.type,j=void 0===C?"text":C,k=t.placeholder,S=t.value,z=t.defaultValue,E=t.onChange,A=t.onFocus,D=t.onBlur,L=t.onPressEnter,B=i(t,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter"]),M=s().primaryColor,R=void 0===M?"#FB6011":M,W=n.useRef(null),H=n.useState(z||S||""),I=H[0],N=H[1],O=n.useState(!1),T=O[0],P=O[1];n.useEffect(function(){"function"==typeof r?r(W.current):r&&(r.current=W.current)},[r]);var V=void 0!==S,q=V?S:I,Y=function(e){var n;e.stopPropagation(),V||N("");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:j,value:q,placeholder:k,disabled:p,readOnly:f,onChange:function(e){V||N(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=B.onKeyDown)||void 0===n||n.call(B,e)},style:G,autoComplete:B.autoComplete||"off",autoCorrect:B.autoCorrect||"off",autoCapitalize:B.autoCapitalize||"off",spellCheck:B.spellCheck||!1},B)),(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:Y,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,C=i.filterOption,j=void 0===C||C,k=i.allowClear,S=void 0!==k&&k,z=i.onChange,E=i.onSelect,A=i.onDeselect,D=i.onSearch,L=i.onFocus,B=i.onBlur,M=i.onDropdownVisibleChange,R=i.className,W=void 0===R?"":R,H=i.style,I=i.dropdownClassName,N=void 0===I?"":I,O=i.dropdownStyle,T=i.defaultOpen,P=void 0!==T&&T,V=i.open,q=i.maxTagCount,Y=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!==V,fe=ce?a:J,he=xe?V: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===j?u:"function"==typeof j?u.filter(function(e){return j(ne,e)}):u.filter(function(e){var n=String(e.label||"").toLowerCase(),t=ne.toLowerCase();return n.includes(t)}):u},[u,ne,F,j]),ye=n.useMemo(function(){return ve()},[ve]);n.useEffect(function(){if(he&&le.current){var e=function(){if(le.current){var e=le.current.getBoundingClientRect();ue({top:e.bottom+window.scrollY+4,left:e.left+window.scrollX,width:e.width})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}ue(null)},[he]),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==M||M(!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,M]),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==M||M(!1),null===(n=le.current)||void 0===n||n.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[he,ye,ie,xe,M]),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==M||M(!1),te(""),null===(n=le.current)||void 0===n||n.focus()},[ge,fe,ce,xe,u,z,E,A,M]),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("")},Ce={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"}},je=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?je.slice(0,2):q?je.slice(0,q):je,o=q&&je.length>t.length?je.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 Y?e.jsx(n.Fragment,{children:Y(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,je,q,f,Y]);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:Ce[b].paddingTop,paddingBottom:Ce[b].paddingBottom,fontSize:Ce[b].fontSize,lineHeight:Ce[b].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},H),onClick:function(){if(!f){var e=!he;xe||$(e),null==M||M(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==B||B(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=je[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(N),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:"translateY(-8px)",animation:"dropdownFadeIn 0.2s ease-out forwards",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},O),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,C=void 0!==F&&F,j=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,B=void 0!==L&&L,M=t.className,R=void 0===M?"":M,W=t.style,H=t.size,I=void 0===H?"default":H,N=t.responsive,O=void 0!==N&&N;t.showLessItems;var T=t.itemRender,P=s().primaryColor,V=void 0===P?"#FB6011":P,q=n.useState(l),Y=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:Y,$=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(B&&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:O?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},W),children:[j&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:j(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,t){return function(n){if("number"==typeof n){var t=n===Z,o=e.jsx(u,{onClick:function(){return ne(n)},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,fontWeight:t?500:400,border:"none",background:t?"#FAFAF9":"white",backgroundColor:t?"#FAFAF9":"white",color:t?V:"#79716B",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}}),C&&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 C&&C.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:C.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"})]})]})]})};
2
2
  //# sourceMappingURL=Pagination.js.map