aha-components 1.8.3 → 1.8.5

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.
Files changed (85) hide show
  1. package/dist/Avatar.esm.js +1 -1
  2. package/dist/Avatar.esm.js.map +1 -1
  3. package/dist/Avatar.js +1 -1
  4. package/dist/Avatar.js.map +1 -1
  5. package/dist/Badge.esm.js +1 -1
  6. package/dist/Badge.esm.js.map +1 -1
  7. package/dist/Badge.js +1 -1
  8. package/dist/Badge.js.map +1 -1
  9. package/dist/Button.esm.js +1 -1
  10. package/dist/Button.esm.js.map +1 -1
  11. package/dist/Button.js +1 -1
  12. package/dist/Button.js.map +1 -1
  13. package/dist/Checkbox.esm.js +1 -1
  14. package/dist/Checkbox.esm.js.map +1 -1
  15. package/dist/Checkbox.js +1 -1
  16. package/dist/Checkbox.js.map +1 -1
  17. package/dist/DatePicker.esm.js.map +1 -1
  18. package/dist/DatePicker.js.map +1 -1
  19. package/dist/Drawer.esm.js.map +1 -1
  20. package/dist/Drawer.js.map +1 -1
  21. package/dist/Form.esm.js.map +1 -1
  22. package/dist/Form.js.map +1 -1
  23. package/dist/Input.esm.js +1 -1
  24. package/dist/Input.esm.js.map +1 -1
  25. package/dist/Input.js +1 -1
  26. package/dist/Input.js.map +1 -1
  27. package/dist/Loading.esm.js +1 -1
  28. package/dist/Loading.esm.js.map +1 -1
  29. package/dist/Loading.js +1 -1
  30. package/dist/Loading.js.map +1 -1
  31. package/dist/MenuList.esm.js.map +1 -1
  32. package/dist/MenuList.js.map +1 -1
  33. package/dist/Pagination.esm.js +1 -1
  34. package/dist/Pagination.esm.js.map +1 -1
  35. package/dist/Pagination.js +1 -1
  36. package/dist/Pagination.js.map +1 -1
  37. package/dist/Popover.esm.js +1 -1
  38. package/dist/Popover.esm.js.map +1 -1
  39. package/dist/Popover.js +1 -1
  40. package/dist/Popover.js.map +1 -1
  41. package/dist/Progress.esm.js.map +1 -1
  42. package/dist/Progress.js.map +1 -1
  43. package/dist/Radio.esm.js +1 -1
  44. package/dist/Radio.esm.js.map +1 -1
  45. package/dist/Radio.js +1 -1
  46. package/dist/Radio.js.map +1 -1
  47. package/dist/Select.esm.js.map +1 -1
  48. package/dist/Select.js.map +1 -1
  49. package/dist/Switch.esm.js.map +1 -1
  50. package/dist/Switch.js.map +1 -1
  51. package/dist/Tab.esm.js.map +1 -1
  52. package/dist/Tab.js.map +1 -1
  53. package/dist/Table.esm.js +1 -1
  54. package/dist/Table.esm.js.map +1 -1
  55. package/dist/Table.js +1 -1
  56. package/dist/Table.js.map +1 -1
  57. package/dist/Tag.esm.js.map +1 -1
  58. package/dist/Tag.js.map +1 -1
  59. package/dist/Textarea.esm.js +1 -1
  60. package/dist/Textarea.esm.js.map +1 -1
  61. package/dist/Textarea.js +1 -1
  62. package/dist/Textarea.js.map +1 -1
  63. package/dist/Toast.esm.js.map +1 -1
  64. package/dist/Toast.js.map +1 -1
  65. package/dist/Tooltip.esm.js.map +1 -1
  66. package/dist/Tooltip.js.map +1 -1
  67. package/dist/components/Alert/icon.d.ts +5 -5
  68. package/dist/components/Badge/index.d.ts +2 -1
  69. package/dist/components/Button/index.d.ts +2 -2
  70. package/dist/components/Table/index.d.ts +1 -1
  71. package/dist/components/Toast/icon.d.ts +5 -5
  72. package/dist/components/shared/badgeColors.d.ts +25 -0
  73. package/dist/components/shared/buttonStyles.d.ts +18 -0
  74. package/dist/components/shared/colorUtils.d.ts +6 -0
  75. package/dist/components/shared/controlStyles.d.ts +27 -0
  76. package/dist/components/shared/fieldStyles.d.ts +37 -0
  77. package/dist/index.css +3848 -0
  78. package/dist/index.d.ts +29 -5
  79. package/dist/index.esm.css +3848 -0
  80. package/dist/index.esm.js +1 -1
  81. package/dist/index.esm.js.map +1 -1
  82. package/dist/index.js +1 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/tokens.d.ts +14 -14
  85. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),r=require("react-dom"),n=function(){return n=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e},n.apply(this,arguments)};function t(e,o){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(r[n[t]]=e[n[t]])}return r}function i(e,o,r){if(r||2===arguments.length)for(var n,t=0,i=o.length;t<i;t++)!n&&t in o||(n||(n=Array.prototype.slice.call(o,0,t)),n[t]=o[t]);return e.concat(n||Array.prototype.slice.call(o))}"function"==typeof SuppressedError&&SuppressedError;var a={primaryColor:"#FB6011"},l=o.createContext(a),d=function(){var e=o.useContext(l);return e||a},s={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(o){var r=o.size,n=o.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:r,height:r,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:n,strokeWidth:"2",opacity:"0.25"}),e.jsx("path",{d:"M22 12a10 10 0 0 1-10 10",stroke:n,strokeWidth:"2",strokeLinecap:"round",fill:"none"})]})]})},f=function(r){var i=r.children,a=r.type,l=void 0===a?"secondary":a,f=r.size,x=void 0===f?"md":f,h=r.disabled,g=void 0!==h&&h,v=r.loading,m=void 0!==v&&v,b=r.iconOnly,y=r.focused,w=void 0!==y&&y,S=r.onClick,j=r.htmlType,k=void 0===j?"button":j,C=r.className,z=void 0===C?"":C,F=r.style,L=r.icon,E=r.iconPosition,A=void 0===E?"left":E,M=t(r,["children","type","size","disabled","loading","iconOnly","focused","onClick","htmlType","className","style","icon","iconPosition"]),O=d().primaryColor,B=o.useState(!1),W=B[0],R=B[1],H=o.useState(!1),T=H[0],D=H[1],I=c[l]||"secondary",N=p[s[x]||"md"],P=null!=b?b:!!L&&null==i,_="link-color"===I||"link-gray"===I||"destructive-link"===I,q=g||m,X=w,Y=O,V=function(){if(g)return"primary"===I||"secondary"===I||"destructive-primary"===I||"destructive-secondary"===I?{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=W||T;return"primary"===I?{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"===I?{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"===I?{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"===I?{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"===I?{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"===I?{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"===I?{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"===I?{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(X)return"destructive-primary"===I||"destructive-secondary"===I||"destructive-tertiary"===I||"destructive-link"===I?"destructive-primary"===I||"destructive-secondary"===I?"var(--focus-ring-error-shadow-xs-skeuomorphic)":"var(--focus-ring-error)":"primary"===I||"secondary"===I?"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)"}(),G=n({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:N.gap,fontFamily:'var(--font-family-body, "DM Sans", system-ui, sans-serif)',fontWeight:600,fontSize:N.fontSize,lineHeight:"".concat(N.lineHeight,"px"),cursor:q?"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},F);_?(G.borderRadius="4px",G.overflow="hidden",P?(G.width=N.height,G.height=N.height,G.padding=0):(G.height=N.height,G.paddingLeft=N.paddingX,G.paddingRight=N.paddingX)):(G.borderRadius="var(--radius-md, 8px)",P?(G.width=N.height,G.height=N.height,G.padding=0):(G.height=N.height,G.paddingLeft=N.paddingX,G.paddingRight=N.paddingX));var U=function(){return m?e.jsx(u,{size:N.iconSize,color:V.iconColor}):L?e.jsx("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:N.iconSize,height:N.iconSize,color:V.iconColor,flexShrink:0},children:L}):null},J=m||L&&"left"===A,Q=!m&&L&&"right"===A;return e.jsxs("button",n({type:k,className:["aha-button","aha-button--".concat(I),"aha-button--".concat(s[x]||"md"),P&&"aha-button--icon-only",q&&"aha-button--disabled",m&&"aha-button--loading",X&&"aha-button--focused",z].filter(Boolean).join(" "),disabled:q,onClick:function(e){q?e.preventDefault():null==S||S(e)},onMouseEnter:function(){return!q&&R(!0)},onMouseLeave:function(){R(!1),D(!1)},onMouseDown:function(){return!q&&D(!0)},onMouseUp:function(){return D(!1)},style:G},M,{children:[J&&U(),!P&&i,Q&&U(),P&&!L&&!m&&i]}))};f.displayName="Button";var x="var(--shadow-xs)",h={small:{pt:"5px",pb:"5px"},mediumSmall:{pt:"7px",pb:"7px"},medium:{pt:"9px",pb:"9px"},large:{pt:"11px",pb:"11px"}};o.forwardRef(function(r,i){var a=r.size,l=void 0===a?"mediumSmall":a,d=r.error,s=void 0!==d&&d,c=r.disabled,p=void 0!==c&&c,u=r.readOnly,f=void 0!==u&&u,g=r.prefix,v=r.suffix,m=r.leadingText,b=r.trailingText,y=r.leadingAddon,w=r.trailingAddon,S=r.className,j=void 0===S?"":S,k=r.style,C=r.onFocus,z=r.onBlur,F=r.onKeyDown,L=r.onPressEnter,E=r.value,A=r.defaultValue,M=r.onChange,O=r.placeholder,B=r.type,W=void 0===B?"text":B,R=r.label,H=r.required,T=r.hintText,D=t(r,["size","error","disabled","readOnly","prefix","suffix","leadingText","trailingText","leadingAddon","trailingAddon","className","style","onFocus","onBlur","onKeyDown","onPressEnter","value","defaultValue","onChange","placeholder","type","label","required","hintText"]),I=o.useRef(null),N=o.useState(!1),P=N[0],_=N[1],q=o.useState(null!=A?A:""),X=q[0],Y=q[1];o.useEffect(function(){"function"==typeof i?i(I.current):i&&(i.current=I.current)},[i]);var V=void 0!==E,K=V?E:X,G=p?{border:"1px solid var(--color-border-disabled)",boxShadow:x,outline:"none"}:s&&P?{border:"1px solid var(--color-border-error)",boxShadow:x,outline:"2px solid var(--color-border-error)",outlineOffset:"-2px"}:s?{border:"1px solid var(--color-border-error_subtle)",boxShadow:x,outline:"none"}:P?{border:"1px solid var(--color-border-brand)",boxShadow:x,outline:"2px solid var(--color-border-brand)",outlineOffset:"-2px"}:{border:"1px solid var(--color-border-primary)",boxShadow:x,outline:"none"},U=G.border,J=G.boxShadow,Q=G.outline,Z=G.outlineOffset,$=h[l],ee=$.pt,oe=$.pb,re=p?"var(--color-border-disabled)":"var(--color-border-primary)",ne=!!g,te=!!v,ie={position:"absolute",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:p?"var(--color-fg-disabled)":"var(--color-fg-quaternary)",zIndex:1,pointerEvents:"none"},ae={display:"flex",alignItems:"center",paddingTop:ee,paddingBottom:oe,paddingLeft:"14px",paddingRight:"12px",color:"var(--color-text-tertiary)",fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-md)",lineHeight:"var(--line-height-text-md)",whiteSpace:"nowrap",flexShrink:0,backgroundColor:p?"var(--color-bg-disabled_subtle)":"transparent"},le=e.jsxs("div",{className:"aha-input-group ".concat(j),style:n({display:"flex",alignItems:"stretch",width:"100%",border:U,boxShadow:J,outline:Q,outlineOffset:Z,borderRadius:"var(--radius-md)",backgroundColor:p||f?"var(--color-bg-disabled_subtle)":"var(--color-bg-primary)",overflow:"hidden",boxSizing:"border-box",transition:"border-color 0.15s ease, box-shadow 0.15s ease"},k),children:[void 0!==m&&e.jsx("div",{style:n(n({},ae),{borderRight:"1px solid ".concat(re)}),children:m}),void 0!==y&&e.jsx("div",{style:{display:"flex",alignItems:"stretch",flexShrink:0,borderRight:"1px solid ".concat(re)},children:y}),e.jsxs("div",{style:{flex:1,position:"relative",display:"flex",alignItems:"stretch",minWidth:0},children:[ne&&e.jsx("span",{style:n(n({},ie),{left:"14px"}),children:g}),e.jsx("input",n({ref:I,type:W,value:K,placeholder:O,disabled:p,readOnly:f,onChange:function(e){V||Y(e.target.value),null==M||M(e)},onFocus:function(e){_(!0),null==C||C(e)},onBlur:function(e){_(!1),null==z||z(e)},onKeyDown:function(e){"Enter"===e.key&&L&&L(e),null==F||F(e)},style:{flex:1,border:"none",outline:"none",width:"100%",boxSizing:"border-box",fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-md)",fontWeight:400,lineHeight:"var(--line-height-text-md)",backgroundColor:"transparent",color:p?"var(--color-text-disabled)":"var(--color-text-primary)",paddingTop:ee,paddingBottom:oe,paddingLeft:ne?"40px":"14px",paddingRight:te?"40px":"14px"},autoComplete:D.autoComplete||"off"},D)),te&&e.jsx("span",{style:n(n({},ie),{right:"14px"}),children:v})]}),void 0!==b&&e.jsx("div",{style:n(n({},ae),{paddingLeft:"12px",paddingRight:"14px",borderLeft:"1px solid ".concat(re)}),children:b}),void 0!==w&&e.jsx("div",{style:{display:"flex",alignItems:"stretch",flexShrink:0,borderLeft:"1px solid ".concat(re)},children:w})]});if(!R&&!T)return le;var de={margin:0,fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-sm)",fontWeight:400,lineHeight:"20px",color:s?"var(--color-error-600)":"var(--color-text-tertiary)"};return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%"},children:[R&&e.jsxs("label",{style:{fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-sm)",fontWeight:500,lineHeight:"20px",color:"var(--color-text-secondary)"},children:[R,H&&e.jsx("span",{style:{color:"var(--color-error-600)",marginLeft:"2px"},children:"*"})]}),le,T&&e.jsx("p",{style:de,children:T})]})}).displayName="InputGroup";var g={small:{height:"36px",paddingTop:"5px",paddingBottom:"5px"},mediumSmall:{height:"40px",paddingTop:"7px",paddingBottom:"7px"},medium:{height:"44px",paddingTop:"9px",paddingBottom:"9px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px"}},v="var(--shadow-xs)",m=function(o){var r=o.onClick;return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:r,style:{cursor:"pointer",flexShrink:0},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},b=o.forwardRef(function(r,i){var a=r.size,l=void 0===a?"mediumSmall":a,d=r.disabled,s=void 0!==d&&d,c=r.error,p=void 0!==c&&c,u=r.readOnly,f=void 0!==u&&u,x=r.prefix,h=r.suffix,b=r.allowClear,y=void 0!==b&&b,w=r.onClear,S=r.className,j=void 0===S?"":S,k=r.style,C=r.type,z=void 0===C?"text":C,F=r.placeholder,L=r.value,E=r.defaultValue,A=r.onChange,M=r.onFocus,O=r.onBlur,B=r.onPressEnter,W=r.label,R=r.required,H=r.hintText,T=t(r,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter","label","required","hintText"]),D=o.useRef(null),I=o.useState(E||L||""),N=I[0],P=I[1],_=o.useState(!1),q=_[0],X=_[1];o.useEffect(function(){"function"==typeof i?i(D.current):i&&(i.current=D.current)},[i]);var Y=void 0!==L,V=Y?L:N,K=y&&V&&!s,G=s?{border:"1px solid var(--color-border-disabled)",boxShadow:v,outline:"none"}:p&&q?{border:"1px solid var(--color-border-error)",boxShadow:v,outline:"2px solid var(--color-border-error)",outlineOffset:"-2px"}:p?{border:"1px solid var(--color-border-error_subtle)",boxShadow:v,outline:"none"}:q?{border:"1px solid var(--color-border-brand)",boxShadow:v,outline:"2px solid var(--color-border-brand)",outlineOffset:"-2px"}:{border:"1px solid var(--color-border-primary)",boxShadow:v,outline:"none"},U=G.border,J=G.boxShadow,Q=G.outline,Z=G.outlineOffset,$=g[l],ee=$.height,oe=$.paddingTop,re=$.paddingBottom,ne=n({width:"100%",height:ee,boxSizing:"border-box",fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-md)",fontWeight:400,lineHeight:"var(--line-height-text-md)",borderRadius:"var(--radius-md)",border:U,boxShadow:J,backgroundColor:s||f?"var(--color-bg-disabled_subtle)":"var(--color-bg-primary)",color:s?"var(--color-text-disabled)":"var(--color-text-primary)",paddingTop:oe,paddingBottom:re,paddingLeft:x?"40px":"14px",paddingRight:h||K?"40px":"14px",transition:"border-color 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease",outline:Q,outlineOffset:Z,WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"},k),te={position:"absolute",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:s?"var(--color-fg-disabled)":"var(--color-fg-quaternary)",zIndex:1},ie=e.jsxs(e.Fragment,{children:[e.jsx("style",{children:'\n .aha-input-wrapper input::placeholder {\n color: var(--color-text-placeholder);\n font-size: var(--font-size-text-md);\n font-weight: 400;\n opacity: 1;\n }\n .aha-input-wrapper input::-webkit-input-placeholder { color: var(--color-text-placeholder); }\n .aha-input-wrapper input::-moz-placeholder { color: var(--color-text-placeholder); }\n .aha-input-wrapper input:-ms-input-placeholder { color: var(--color-text-placeholder); }\n .aha-input-wrapper input {\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n touch-action: manipulation;\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"] { -moz-appearance: textfield; }\n '}),e.jsxs("div",{className:"aha-input-wrapper ".concat(j),style:{position:"relative",display:"block",width:"100%"},children:[x&&e.jsx("span",{style:n(n({},te),{left:"14px",pointerEvents:"none"}),children:x}),e.jsx("input",n({ref:D,type:z,value:V,placeholder:F,disabled:s,readOnly:f,onChange:function(e){Y||P(e.target.value),null==A||A(e)},onFocus:function(e){X(!0),null==M||M(e)},onBlur:function(e){X(!1),null==O||O(e)},onKeyDown:function(e){var o;"Enter"===e.key&&B&&B(e),null===(o=T.onKeyDown)||void 0===o||o.call(T,e)},style:ne,autoComplete:T.autoComplete||"off",autoCorrect:T.autoCorrect||"off",autoCapitalize:T.autoCapitalize||"off",spellCheck:T.spellCheck||!1},T)),(h||K)&&e.jsxs("span",{style:n(n({},te),{right:"14px",gap:"var(--spacing-xs)"}),children:[K&&e.jsx(m,{onClick:function(e){var o;e.stopPropagation(),Y||P("");null==A||A({target:{value:""},currentTarget:{value:""}}),null==w||w(),null===(o=D.current)||void 0===o||o.focus()}}),h]})]})]});return W||H?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%"},children:[W&&e.jsxs("label",{style:{fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-sm)",fontWeight:500,lineHeight:"20px",color:"var(--color-text-secondary)"},children:[W,R&&e.jsx("span",{style:{color:"var(--color-error-600)",marginLeft:"2px"},children:"*"})]}),ie,H&&e.jsx("p",{style:{margin:0,fontFamily:"var(--font-family-body)",fontSize:"var(--font-size-text-sm)",fontWeight:400,lineHeight:"20px",color:p?"var(--color-error-600)":"var(--color-text-tertiary)"},children:H})]}):ie});b.displayName="Input";var y=function(t){var a,l=t.value,s=t.defaultValue,c=t.options,p=void 0===c?[]:c,u=t.mode,f=t.disabled,x=void 0!==f&&f,h=t.error,g=void 0!==h&&h,v=t.placeholder,m=void 0===v?"Please select":v,b=t.size,y=void 0===b?"medium":b,w=t.showSearch,S=void 0!==w&&w,j=t.filterOption,k=void 0===j||j,C=t.allowClear,z=void 0!==C&&C,F=t.onChange,L=t.onSelect,E=t.onDeselect,A=t.onSearch,M=t.onFocus,O=t.onBlur,B=t.onDropdownVisibleChange,W=t.className,R=void 0===W?"":W,H=t.style,T=t.dropdownClassName,D=void 0===T?"":T,I=t.dropdownStyle,N=t.defaultOpen,P=void 0!==N&&N,_=t.open,q=t.maxTagCount,X=t.tagRender,Y=t.optionRender,V=d().primaryColor,K=void 0===V?"#FB6011":V,G=o.useState(void 0!==s?s:u?[]:void 0),U=G[0],J=G[1],Q=o.useState(P),Z=Q[0],$=Q[1],ee=o.useState(""),oe=ee[0],re=ee[1],ne=o.useState(-1),te=ne[0],ie=ne[1],ae=o.useRef(null),le=o.useRef(null),de=o.useRef(null),se=o.useState(null),ce=se[0],pe=se[1],ue=void 0!==l,fe=void 0!==_,xe=ue?l:U,he=fe?_:Z,ge="multiple"===u||"tags"===u,ve=o.useCallback(function(){if(!xe)return[];var e=Array.isArray(xe)?xe:[xe];return p.filter(function(o){return e.includes(o.value)})},[xe,p]),me=o.useCallback(function(){return S&&oe?!1===k?p:"function"==typeof k?p.filter(function(e){return k(oe,e)}):p.filter(function(e){var o=String(e.label||"").toLowerCase(),r=oe.toLowerCase();return o.includes(r)}):p},[p,oe,S,k]),be=o.useMemo(function(){return me()},[me]);o.useEffect(function(){if(he&&ae.current){var e=function(){var e,o;if(ae.current){var r=ae.current.getBoundingClientRect(),n=null!==(o=null===(e=de.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==o?o:Math.min(256,Math.max(40,40*be.length)),t=window.innerHeight-r.bottom,i=r.top,a=t<n+4&&i>t,l=a?r.top+window.scrollY-n-4:r.bottom+window.scrollY+4;pe({top:l,left:r.left+window.scrollX,width:r.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)},[he,be.length]),o.useEffect(function(){var e=function(e){var o=e.target;ae.current&&!ae.current.contains(o)&&de.current&&!de.current.contains(o)&&(fe||$(!1),null==B||B(!1),re(""))};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,fe,B]),o.useEffect(function(){if(he){var e=function(e){var o;if("ArrowDown"===e.key)e.preventDefault(),ie(function(e){return e<be.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 r=be[te];r&&!r.disabled&&ye(r)}else"Escape"===e.key&&(e.preventDefault(),fe||$(!1),null==B||B(!1),null===(o=ae.current)||void 0===o||o.focus())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[he,be,te,fe,B]),o.useEffect(function(){if(te>=0&&de.current){var e=de.current.querySelectorAll(".aha-select-option")[te];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[te]);var ye=o.useCallback(function(e){var o;if(!e.disabled)if(ge){var r,n=Array.isArray(xe)?xe:[];n.includes(e.value)?(r=n.filter(function(o){return o!==e.value}),null==E||E(e.value,e)):(r=i(i([],n,!0),[e.value],!1),null==L||L(e.value,e)),ue||J(r);var t=p.filter(function(e){return r.includes(e.value)});null==F||F(r,t)}else ue||J(e.value),null==F||F(e.value,e),null==L||L(e.value,e),fe||$(!1),null==B||B(!1),re(""),null===(o=ae.current)||void 0===o||o.focus()},[ge,xe,ue,fe,p,F,L,E,B]),we=o.useCallback(function(e,o){if(e.stopPropagation(),ge&&Array.isArray(xe)){var r=xe.filter(function(e){return e!==o}),n=p.find(function(e){return e.value===o});ue||J(r),null==F||F(r,ve()),null==E||E(o,n)}},[ge,xe,ue,p,F,E,ve]),Se=function(e){e.stopPropagation();var o=ge?[]:void 0;ue||J(o),null==F||F(o,[]),re("")},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"}},ke=o.useMemo(function(){return ve()},[ve]),Ce=o.useMemo(function(){return z&&xe&&!x},[z,xe,x]),ze=o.useMemo(function(){return ge?Array.isArray(xe)&&xe.length>0:null!=xe&&""!==xe},[ge,xe]),Fe=o.useMemo(function(){if(!ge||!Array.isArray(xe)||0===xe.length)return null;var r="responsive"===q?ke.slice(0,2):q?ke.slice(0,q):ke,n=q&&ke.length>r.length?ke.length-r.length:0;return e.jsxs("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px",flex:1,minWidth:0},children:[r.map(function(r){var n={label:r.label,value:r.value,closable:!x,onClose:function(){return we({},r.value)}};return X?e.jsx(o.Fragment,{children:X(n)},r.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:r.label}),!x&&e.jsx("span",{onClick:function(e){return we(e,r.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"})})})]},r.value)}),n>0&&e.jsxs("span",{style:{fontSize:"12px",lineHeight:"18px",color:"#78716C",fontFamily:"DM Sans, sans-serif"},children:["+",n]})]})},[ge,xe,ke,q,x,X]);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(R),style:n({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?K:"#D7D3D0"),backgroundColor:x?"#FAFAF9":"#FFFFFF",cursor:x?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:je[y].paddingTop,paddingBottom:je[y].paddingBottom,fontSize:je[y].fontSize,lineHeight:je[y].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},H),onClick:function(){if(!x){var e=!he;fe||$(e),null==B||B(e),e&&S?setTimeout(function(){var e;null===(e=le.current)||void 0===e||e.focus()},0):re("")}},onFocus:function(e){null==M||M(e)},onBlur:function(e){null==O||O(e)},onTouchStart:function(e){x||(e.currentTarget.style.opacity="0.8")},onTouchEnd:function(e){e.currentTarget.style.opacity="1"},tabIndex:x?-1:0,children:[e.jsx("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0,gap:"8px"},children:ge?Fe||(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"}})):S&&he?e.jsx("input",{ref:le,type:"text",value:oe,onChange:function(e){var o=e.target.value;re(o),null==A||A(o),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:x?"#98A2B3":"#1C1917",fontFamily:"DM Sans, sans-serif",minWidth:0,WebkitAppearance:"none",appearance:"none"},placeholder:ze?void 0:m,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:ze?x?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:ze?(null===(a=ke[0])||void 0===a?void 0:a.label)||xe:m||" "})}),e.jsxs("div",{style:{position:"absolute",right:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[Ce&&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:Se,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(o){var r=o.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:r?"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&&ce&&r.createPortal(e.jsx("div",{ref:de,className:"aha-select-dropdown ".concat(D),style:n({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"},I),children:0===be.length?e.jsx("div",{style:{padding:"8px 16px",textAlign:"center",color:"#78716C",fontSize:"14px",fontFamily:"DM Sans, sans-serif"},children:"No data"}):be.map(function(o,r){var n=ge?Array.isArray(xe)&&xe.includes(o.value):xe===o.value,t=r===te;return Y?e.jsx("div",{className:"aha-select-option ".concat(o.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(n?"bg-[#FAFAF9]":""),onClick:function(){return!o.disabled&&ye(o)},style:{cursor:o.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:Y(o,{selected:n,focused:t,disabled:o.disabled||!1})},o.value):e.jsxs("div",{className:"aha-select-option ".concat(o.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(n?"bg-[#FAFAF9]":""),onClick:function(){return ye(o)},style:{padding:"8px 16px",cursor:o.disabled?"not-allowed":"pointer",color:o.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:o.label}),n&&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"})})]},o.value)})}),document.body)]})};y.displayName="Select";var w=function(o){var r=o.className,n=o.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,style:n,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"})})},S=function(o){var r=o.className,n=o.style;return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,style:n,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(r){var t=r.current,i=r.defaultCurrent,a=void 0===i?1:i,l=r.total,s=void 0===l?0:l,c=r.pageSize,p=r.defaultPageSize,u=void 0===p?10:p,x=r.showSizeChanger,h=void 0!==x&&x,g=r.pageSizeOptions,v=void 0===g?["10","20","50","100"]:g,m=r.showQuickJumper,j=void 0!==m&&m,k=r.showTotal,C=r.onChange,z=r.onShowSizeChange,F=r.simple,L=void 0!==F&&F,E=r.disabled,A=void 0!==E&&E,M=r.hideOnSinglePage,O=void 0!==M&&M,B=r.className,W=void 0===B?"":B,R=r.style,H=r.size,T=void 0===H?"default":H,D=r.responsive,I=void 0!==D&&D;r.showLessItems;var N=r.itemRender,P=d().primaryColor,_=void 0===P?"#FB6011":P,q=o.useState(a),X=q[0],Y=q[1],V=o.useState(u),K=V[0],G=V[1],U=o.useState(""),J=U[0],Q=U[1],Z=null!=t?t:X,$=null!=c?c:K,ee=o.useMemo(function(){return Math.ceil(s/$)},[s,$]);o.useEffect(function(){void 0!==t&&Y(t)},[t]),o.useEffect(function(){void 0!==c&&G(c)},[c]);var oe=function(e){e<1||e>ee||e===Z||A||(void 0===t&&Y(e),null==C||C(e,$))},re=function(){var e=parseInt(J,10);e>=1&&e<=ee&&(oe(e),Q(""))};if(O&&ee<=1)return null;if(L)return e.jsxs("div",{className:"aha-pagination aha-pagination-simple ".concat(W),style:R,children:[e.jsx(f,{onClick:function(){return oe(Z-1)},disabled:A||1===Z,type:"default",size:"default"===T?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(w,{})}),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 oe(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===T?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(S,{})})]});var ne=(Z-1)*$+1,te=Math.min(Z*$,s);return e.jsxs("div",{className:"aha-pagination w-full ".concat(W),style:n({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:I?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},R),children:[k&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:k(s,[ne,te])}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[s>0&&e.jsx(e.Fragment,{children:N?N(Z-1,"prev",e.jsx(f,{onClick:function(){return oe(Z-1)},disabled:A||1===Z,type:"default",size:"default"===T?"medium":"small",style:{height:"small"===T?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(w,{})})):e.jsx(f,{onClick:function(){return oe(Z-1)},disabled:A||1===Z,type:"default",size:"default"===T?"medium":"small",style:{height:"small"===T?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(w,{})})}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(ee<=7)return Array.from({length:ee},function(e,o){return o+1});var e=[];if(Z<=4){for(var o=1;o<=5;o++)e.push(o);e.push("jump-next"),e.push(ee)}else if(Z>=ee-3){e.push(1),e.push("jump-prev");for(o=ee-4;o<=ee;o++)e.push(o)}else{e.push(1),e.push("jump-prev");for(o=Z-1;o<=Z+1;o++)e.push(o);e.push("jump-next"),e.push(ee)}return e}().map(function(o){return function(o){if("number"==typeof o){var r=o===Z,n=e.jsx(f,{onClick:function(){return oe(o)},disabled:A,type:r?"primary":"default",size:"default"===T?"medium":"small",style:{minWidth:"small"===T?"32px":"36px",height:"small"===T?"32px":"36px",padding:"0 12px",margin:0,fontWeight:r?500:400,border:r?"1px solid ".concat(_):void 0,boxShadow:"none",borderRadius:"8px"},children:o},o);return N?N(o,"page",n):n}if("jump-prev"===o)return n=e.jsx(f,{onClick:function(){return oe(Math.max(1,Z-5))},disabled:A,type:"default",size:"default"===T?"medium":"small",style:{minWidth:"small"===T?"32px":"36px",height:"small"===T?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),N?N(Z-5,"jump-prev",n):n;if("jump-next"===o)return n=e.jsx(f,{onClick:function(){return oe(Math.min(ee,Z+5))},disabled:A,type:"default",size:"default"===T?"medium":"small",style:{minWidth:"small"===T?"32px":"36px",height:"small"===T?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),N?N(Z+5,"jump-next",n):n;return null}(o)})}),s>0&&e.jsx(e.Fragment,{children:N?N(Z+1,"next",e.jsx(f,{onClick:function(){return oe(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===T?"medium":"small",style:{height:"small"===T?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(S,{})})):e.jsx(f,{onClick:function(){return oe(Z+1)},disabled:A||Z===ee,type:"default",size:"default"===T?"medium":"small",style:{height:"small"===T?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(S,{})})}),h&&e.jsx(y,{value:$,options:v.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return o=Number(e),r=Math.ceil(s/o),n=Z>r?r:Z,void 0===c&&G(o),void 0===t&&Y(n),null==z||z(n,o),void(null==C||C(n,o));var o,r,n},disabled:A,size:"small"===T?"small":"medium",style:{minWidth:"small"===T?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(b,{type:"number",min:1,value:J,onChange:function(e){return Q(e.target.value)},onPressEnter:re,disabled:A,size:"small"===T?"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(f,{onClick:re,disabled:A,type:"default",size:"default"===T?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:j.goButton}):e.jsx(f,{onClick:re,disabled:A,type:"default",size:"default"===T?"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"),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 a={primaryColor:"#FB6011"},l=n.createContext(a),d=function(){var e=n.useContext(l);return e||a},s="#feb073",p="#fb6011",c="#ec470a",u="#c4330a",x="#fecdca",f="#fda29b",h="#f04438",g="#d92d20",m="#b42318",b="#1c1917",y="#44403c",v="#57534e",w="#79716b",S="#79716b",C="#ffffff",j="#d92d20",k="#d7d3d0",z="#fb6011",F="#f04438",L="#fda29b",E="#d7d3d0",A="#e7e5e4",D="#ffffff",M="#fafaf9",B="#f5f5f4",O="#fafaf9",R="#fef3f2",T="#a9a29d",W="#a9a29d",P="#f04438",H={display:'"DM Sans", system-ui, -apple-system, sans-serif',body:'"DM Sans", system-ui, -apple-system, sans-serif',base:'"DM Sans", system-ui, -apple-system, sans-serif'},I={xs:"12px",sm:"14px",base:"16px",md:"16px",lg:"18px",xl:"20px",displayXs:"24px",displaySm:"30px",displayMd:"36px",displayLg:"48px",displayXl:"60px",display2xl:"72px"},N={xs:"18px",sm:"20px",base:"24px",md:"24px",lg:"28px",xl:"30px",displayXs:"32px",displaySm:"38px",displayMd:"44px",displayLg:"60px",displayXl:"72px",display2xl:"90px"},X="8px",q="0px 1px 2px 0px #0a0d120d",Y="inset 0px 0px 0px 1px #0a0d122e, inset 0px -2px 0px 0px #0a0d120d, 0px 1px 2px 0px #0a0d120d",V={default:"0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(p),shadowXs:"0px 1px 2px 0px #0a0d120d, 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(p),shadowXsSkeuomorphic:"inset 0px 0px 0px 1px #0a0d122e, inset 0px -2px 0px 0px #0a0d120d, 0px 1px 2px 0px #0a0d120d, 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(p),shadowSm:"0px 1px 3px 0px #0a0d121a, 0px 1px 2px 0px #0a0d121a, 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(p),error:"0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(h),errorShadowXs:"0px 1px 2px 0px #0a0d120d, 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(h),errorShadowXsSkeuomorphic:"inset 0px 0px 0px 1px #0a0d122e, inset 0px -2px 0px 0px #0a0d120d, 0px 1px 2px 0px #0a0d120d, 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(h)},K=p;function Q(e){return!e||e.toLowerCase()===K.toLowerCase()}var _=c,G=p;function U(e){var n=e.hierarchy,t=e.disabled,o=e.interactive,i=e.brandColor||K,r=_,a=c,l=u;return t?"default"===n||"primary"===n||"secondary"===n||"destructive-primary"===n||"destructive-secondary"===n?{bg:B,color:W,iconColor:W,border:"1px solid ".concat(A),boxShadow:"none"}:{bg:"transparent",color:W,iconColor:W,border:"none",boxShadow:"none"}:"default"===n?{bg:o?M:D,color:o?a:y,iconColor:o?G:T,border:"1px solid ".concat(o?G:k),boxShadow:"none"}:"primary"===n?{bg:o?r:i,color:C,iconColor:s,border:"none",boxShadow:Y}:"secondary"===n?{bg:o?M:D,color:o?"#292524":y,iconColor:o?"#79716b":T,border:"none",boxShadow:Y}:"tertiary"===n?{bg:o?M:"transparent",color:o?"#44403c":v,iconColor:o?"#79716b":T,border:"none",boxShadow:"none"}:"link-color"===n?{bg:"transparent",color:o?l:a,iconColor:G,border:"none",boxShadow:"none",textDecoration:o?"underline":"none"}:"link-gray"===n?{bg:"transparent",color:o?"#44403c":v,iconColor:T,border:"none",boxShadow:"none",textDecoration:o?"underline":"none"}:"destructive-primary"===n?{bg:o?g:h,color:C,iconColor:o?x:f,border:"none",boxShadow:Y}:"destructive-secondary"===n?{bg:o?R:D,color:j,iconColor:P,border:"none",boxShadow:"inset 0 0 0 1px ".concat(L,", 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:o?R:"transparent",color:j,iconColor:P,border:"none",boxShadow:"none"}:{bg:"transparent",color:o?m:j,iconColor:P,border:"none",boxShadow:"none",textDecoration:o?"underline":"none"}}var J=H.body,Z=X,$={sm:"sm",md:"md",lg:"lg",xl:"xl",small:"sm",mediumSmall:"sm",medium:"md",large:"xl"},ee={default:"default",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"},ne={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}},te=function(n){var t=n.size,o=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:t,height:t,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:o,strokeWidth:"2",opacity:"0.25"}),e.jsx("path",{d:"M22 12a10 10 0 0 1-10 10",stroke:o,strokeWidth:"2",strokeLinecap:"round",fill:"none"})]})]})},oe=function(t){var r=t.children,a=t.type,l=void 0===a?"default":a,s=t.size,p=void 0===s?"md":s,c=t.disabled,u=void 0!==c&&c,x=t.loading,f=void 0!==x&&x,h=t.iconOnly,g=t.focused,m=void 0!==g&&g,b=t.onClick,y=t.htmlType,v=void 0===y?"button":y,w=t.className,S=void 0===w?"":w,C=t.style,j=t.icon,k=t.iconPosition,z=void 0===k?"left":k,F=i(t,["children","type","size","disabled","loading","iconOnly","focused","onClick","htmlType","className","style","icon","iconPosition"]),L=d().primaryColor,E=n.useState(!1),A=E[0],D=E[1],M=n.useState(!1),B=M[0],O=M[1],R=ee[l]||"default",T=ne[$[p]||"md"],W=null!=h?h:!!j&&null==r,P="link-color"===R||"link-gray"===R||"destructive-link"===R,H=u||f,I=m,N=L,X=U({hierarchy:R,disabled:u,interactive:A||B,brandColor:N}),q=function(e,n,t){if(n)return"destructive-primary"===e||"destructive-secondary"===e||"destructive-tertiary"===e||"destructive-link"===e?"destructive-primary"===e||"destructive-secondary"===e?V.errorShadowXsSkeuomorphic:V.error:"primary"===e||"secondary"===e?Q(t)?V.shadowXsSkeuomorphic:"".concat(Y,", 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ").concat(t):Q(t)?V.default:"0px 0px 0px 2px #ffffff, 0px 0px 0px 4px ".concat(t)}(R,I,N),K=o({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:T.gap,fontFamily:J,fontWeight:600,fontSize:T.fontSize,lineHeight:"".concat(T.lineHeight,"px"),cursor:H?"not-allowed":"pointer",outline:"none",transition:"background-color .15s ease, color .15s ease, box-shadow .15s ease",userSelect:"none",WebkitTapHighlightColor:"transparent",whiteSpace:"nowrap",backgroundColor:X.bg,color:X.color,border:X.border,boxShadow:null!=q?q:X.boxShadow,textDecoration:X.textDecoration},C);P?(K.borderRadius="4px",K.overflow="hidden",W?(K.width=T.height,K.height=T.height,K.padding=0):(K.height=T.height,K.paddingLeft=T.paddingX,K.paddingRight=T.paddingX)):(K.borderRadius=Z,W?(K.width=T.height,K.height=T.height,K.padding=0):(K.height=T.height,K.paddingLeft=T.paddingX,K.paddingRight=T.paddingX));var _=function(){return f?e.jsx(te,{size:T.iconSize,color:X.iconColor}):j?e.jsx("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:T.iconSize,height:T.iconSize,color:X.iconColor,flexShrink:0},children:j}):null},G=f||j&&"left"===z,oe=!f&&j&&"right"===z;return e.jsxs("button",o({type:v,className:["aha-button","aha-button--".concat(R),"aha-button--".concat($[p]||"md"),W&&"aha-button--icon-only",H&&"aha-button--disabled",f&&"aha-button--loading",I&&"aha-button--focused",S].filter(Boolean).join(" "),disabled:H,onClick:function(e){H?e.preventDefault():null==b||b(e)},onMouseEnter:function(){return!H&&D(!0)},onMouseLeave:function(){D(!1),O(!1)},onMouseDown:function(){return!H&&O(!0)},onMouseUp:function(){return O(!1)},style:K},F,{children:[G&&_(),!W&&r,oe&&_(),W&&!j&&!f&&r]}))};oe.displayName="Button";var ie=H.body,re=I.md,ae=I.sm,le=N.md,de=N.sm,se=X,pe=q,ce={textPrimary:b,textSecondary:y,textTertiary:v,textDisabled:w,textPlaceholder:S,borderPrimary:k,borderDisabled:E,borderBrand:z,borderError:F,borderErrorSubtle:L,bgPrimary:D,bgDisabledSubtle:O,fgDisabled:W,fgQuaternary:T,error600:g};function ue(e){var n=e.disabled,t=void 0!==n&&n,o=e.error,i=void 0!==o&&o,r=e.focused,a=void 0!==r&&r,l=e.brandColor,d=ce,s=pe,p=l||d.borderBrand;return t?{border:"1px solid ".concat(d.borderDisabled),boxShadow:s,outline:"none"}:i&&a?{border:"1px solid ".concat(d.borderError),boxShadow:s,outline:"2px solid ".concat(d.borderError),outlineOffset:"-2px"}:i?{border:"1px solid ".concat(d.borderErrorSubtle),boxShadow:s,outline:"none"}:a?{border:"1px solid ".concat(p),boxShadow:s,outline:"2px solid ".concat(p),outlineOffset:"-2px"}:{border:"1px solid ".concat(d.borderPrimary),boxShadow:s,outline:"none"}}function xe(){return{fontFamily:ie,fontSize:ae,fontWeight:500,lineHeight:de,color:ce.textSecondary}}function fe(e){return void 0===e&&(e=!1),{margin:0,fontFamily:ie,fontSize:ae,fontWeight:400,lineHeight:de,color:e?ce.error600:ce.textTertiary}}var he={small:{pt:"5px",pb:"5px"},mediumSmall:{pt:"7px",pb:"7px"},medium:{pt:"9px",pb:"9px"},large:{pt:"11px",pb:"11px"}};n.forwardRef(function(t,r){var a=t.size,l=void 0===a?"mediumSmall":a,s=t.error,p=void 0!==s&&s,c=t.disabled,u=void 0!==c&&c,x=t.readOnly,f=void 0!==x&&x,h=t.prefix,g=t.suffix,m=t.leadingText,b=t.trailingText,y=t.leadingAddon,v=t.trailingAddon,w=t.className,S=void 0===w?"":w,C=t.style,j=t.onFocus,k=t.onBlur,z=t.onKeyDown,F=t.onPressEnter,L=t.value,E=t.defaultValue,A=t.onChange,D=t.placeholder,M=t.type,B=void 0===M?"text":M,O=t.label,R=t.required,T=t.hintText,W=i(t,["size","error","disabled","readOnly","prefix","suffix","leadingText","trailingText","leadingAddon","trailingAddon","className","style","onFocus","onBlur","onKeyDown","onPressEnter","value","defaultValue","onChange","placeholder","type","label","required","hintText"]),P=n.useRef(null),H=n.useState(!1),I=H[0],N=H[1],X=n.useState(null!=E?E:""),q=X[0],Y=X[1],V=d().primaryColor;n.useEffect(function(){"function"==typeof r?r(P.current):r&&(r.current=P.current)},[r]);var K=void 0!==L,Q=K?L:q,_=ue({disabled:u,error:p,focused:I,brandColor:V}),G=_.border,U=_.boxShadow,J=_.outline,Z=_.outlineOffset,$=he[l],ee=$.pt,ne=$.pb,te=u?ce.borderDisabled:ce.borderPrimary,oe=!!h,ae=!!g,de={position:"absolute",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:u?ce.fgDisabled:ce.fgQuaternary,zIndex:1,pointerEvents:"none"},pe={display:"flex",alignItems:"center",paddingTop:ee,paddingBottom:ne,paddingLeft:"14px",paddingRight:"12px",color:ce.textTertiary,fontFamily:ie,fontSize:re,lineHeight:le,whiteSpace:"nowrap",flexShrink:0,backgroundColor:u?ce.bgDisabledSubtle:"transparent"},ge=e.jsxs("div",{className:"aha-input-group ".concat(S),style:o({display:"flex",alignItems:"stretch",width:"100%",border:G,boxShadow:U,outline:J,outlineOffset:Z,borderRadius:se,backgroundColor:u||f?ce.bgDisabledSubtle:ce.bgPrimary,overflow:"hidden",boxSizing:"border-box",transition:"border-color 0.15s ease, box-shadow 0.15s ease"},C),children:[void 0!==m&&e.jsx("div",{style:o(o({},pe),{borderRight:"1px solid ".concat(te)}),children:m}),void 0!==y&&e.jsx("div",{style:{display:"flex",alignItems:"stretch",flexShrink:0,borderRight:"1px solid ".concat(te)},children:y}),e.jsxs("div",{style:{flex:1,position:"relative",display:"flex",alignItems:"stretch",minWidth:0},children:[oe&&e.jsx("span",{style:o(o({},de),{left:"14px"}),children:h}),e.jsx("input",o({ref:P,type:B,value:Q,placeholder:D,disabled:u,readOnly:f,onChange:function(e){K||Y(e.target.value),null==A||A(e)},onFocus:function(e){N(!0),null==j||j(e)},onBlur:function(e){N(!1),null==k||k(e)},onKeyDown:function(e){"Enter"===e.key&&F&&F(e),null==z||z(e)},style:{flex:1,border:"none",outline:"none",width:"100%",boxSizing:"border-box",fontFamily:ie,fontSize:re,fontWeight:400,lineHeight:le,backgroundColor:"transparent",color:u?ce.textDisabled:ce.textPrimary,paddingTop:ee,paddingBottom:ne,paddingLeft:oe?"40px":"14px",paddingRight:ae?"40px":"14px"},autoComplete:W.autoComplete||"off"},W)),ae&&e.jsx("span",{style:o(o({},de),{right:"14px"}),children:g})]}),void 0!==b&&e.jsx("div",{style:o(o({},pe),{paddingLeft:"12px",paddingRight:"14px",borderLeft:"1px solid ".concat(te)}),children:b}),void 0!==v&&e.jsx("div",{style:{display:"flex",alignItems:"stretch",flexShrink:0,borderLeft:"1px solid ".concat(te)},children:v})]});return O||T?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%"},children:[O&&e.jsxs("label",{style:xe(),children:[O,R&&e.jsx("span",{style:{color:ce.error600,marginLeft:"2px"},children:"*"})]}),ge,T&&e.jsx("p",{style:fe(p),children:T})]}):ge}).displayName="InputGroup";var ge={small:{height:"36px",paddingTop:"5px",paddingBottom:"5px"},mediumSmall:{height:"40px",paddingTop:"7px",paddingBottom:"7px"},medium:{height:"44px",paddingTop:"9px",paddingBottom:"9px"},large:{height:"48px",paddingTop:"11px",paddingBottom:"11px"}},me=function(n){var t=n.onClick;return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:t,style:{cursor:"pointer",flexShrink:0},children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},be=n.forwardRef(function(t,r){var a=t.size,l=void 0===a?"mediumSmall":a,s=t.disabled,p=void 0!==s&&s,c=t.error,u=void 0!==c&&c,x=t.readOnly,f=void 0!==x&&x,h=t.prefix,g=t.suffix,m=t.allowClear,b=void 0!==m&&m,y=t.onClear,v=t.className,w=void 0===v?"":v,S=t.style,C=t.type,j=void 0===C?"text":C,k=t.placeholder,z=t.value,F=t.defaultValue,L=t.onChange,E=t.onFocus,A=t.onBlur,D=t.onPressEnter,M=t.label,B=t.required,O=t.hintText,R=i(t,["size","disabled","error","readOnly","prefix","suffix","allowClear","onClear","className","style","type","placeholder","value","defaultValue","onChange","onFocus","onBlur","onPressEnter","label","required","hintText"]),T=n.useRef(null),W=n.useState(F||z||""),P=W[0],H=W[1],I=n.useState(!1),N=I[0],X=I[1],q=d().primaryColor;n.useEffect(function(){"function"==typeof r?r(T.current):r&&(r.current=T.current)},[r]);var Y,V,K,Q=void 0!==z,_=Q?z:P,G=b&&_&&!p,U=ue({disabled:p,error:u,focused:N,brandColor:q}),J=ge[l],Z=J.height,$=J.paddingTop,ee=J.paddingBottom,ne=h?"40px":"14px",te=g||G?"40px":"14px",oe=o(o(o({width:"100%",height:Z,boxSizing:"border-box",fontFamily:ie,fontSize:re,fontWeight:400,lineHeight:le,borderRadius:se},U),{backgroundColor:p||f?ce.bgDisabledSubtle:ce.bgPrimary,color:p?ce.textDisabled:ce.textPrimary,paddingTop:$,paddingBottom:ee,paddingLeft:ne,paddingRight:te,transition:"border-color 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease",WebkitAppearance:"none",MozAppearance:"textfield",appearance:"none"}),S),ae=(void 0===(V='\n .aha-input-wrapper input {\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n touch-action: manipulation;\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"] { -moz-appearance: textfield; }\n ')&&(V=""),void 0===K&&(K=ce.textPlaceholder),"\n ".concat(Y=".aha-input-wrapper input","::placeholder {\n color: ").concat(K,";\n font-size: ").concat(re,";\n font-weight: 400;\n opacity: 1;\n }\n ").concat(Y,"::-webkit-input-placeholder { color: ").concat(K,"; }\n ").concat(Y,"::-moz-placeholder { color: ").concat(K,"; }\n ").concat(Y,":-ms-input-placeholder { color: ").concat(K,"; }\n ").concat(V,"\n ")),de={position:"absolute",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:p?ce.fgDisabled:ce.fgQuaternary,zIndex:1},pe=e.jsxs(e.Fragment,{children:[e.jsx("style",{children:ae}),e.jsxs("div",{className:"aha-input-wrapper ".concat(w),style:{position:"relative",display:"block",width:"100%"},children:[h&&e.jsx("span",{style:o(o({},de),{left:"14px",pointerEvents:"none"}),children:h}),e.jsx("input",o({ref:T,type:j,value:_,placeholder:k,disabled:p,readOnly:f,onChange:function(e){Q||H(e.target.value),null==L||L(e)},onFocus:function(e){X(!0),null==E||E(e)},onBlur:function(e){X(!1),null==A||A(e)},onKeyDown:function(e){var n;"Enter"===e.key&&D&&D(e),null===(n=R.onKeyDown)||void 0===n||n.call(R,e)},style:oe,autoComplete:R.autoComplete||"off",autoCorrect:R.autoCorrect||"off",autoCapitalize:R.autoCapitalize||"off",spellCheck:R.spellCheck||!1},R)),(g||G)&&e.jsxs("span",{style:o(o({},de),{right:"14px",gap:"4px"}),children:[G&&e.jsx(me,{onClick:function(e){var n;e.stopPropagation(),Q||H("");null==L||L({target:{value:""},currentTarget:{value:""}}),null==y||y(),null===(n=T.current)||void 0===n||n.focus()}}),g]})]})]});return M||O?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%"},children:[M&&e.jsxs("label",{style:xe(),children:[M,B&&e.jsx("span",{style:{color:ce.error600,marginLeft:"2px"},children:"*"})]}),pe,O&&e.jsx("p",{style:fe(u),children:O})]}):pe});be.displayName="Input";var ye=function(i){var a,l=i.value,s=i.defaultValue,p=i.options,c=void 0===p?[]:p,u=i.mode,x=i.disabled,f=void 0!==x&&x,h=i.error,g=void 0!==h&&h,m=i.placeholder,b=void 0===m?"Please select":m,y=i.size,v=void 0===y?"medium":y,w=i.showSearch,S=void 0!==w&&w,C=i.filterOption,j=void 0===C||C,k=i.allowClear,z=void 0!==k&&k,F=i.onChange,L=i.onSelect,E=i.onDeselect,A=i.onSearch,D=i.onFocus,M=i.onBlur,B=i.onDropdownVisibleChange,O=i.className,R=void 0===O?"":O,T=i.style,W=i.dropdownClassName,P=void 0===W?"":W,H=i.dropdownStyle,I=i.defaultOpen,N=void 0!==I&&I,X=i.open,q=i.maxTagCount,Y=i.tagRender,V=i.optionRender,K=d().primaryColor,Q=void 0===K?"#FB6011":K,_=n.useState(void 0!==s?s:u?[]:void 0),G=_[0],U=_[1],J=n.useState(N),Z=J[0],$=J[1],ee=n.useState(""),ne=ee[0],te=ee[1],oe=n.useState(-1),ie=oe[0],re=oe[1],ae=n.useRef(null),le=n.useRef(null),de=n.useRef(null),se=n.useState(null),pe=se[0],ce=se[1],ue=void 0!==l,xe=void 0!==X,fe=ue?l:G,he=xe?X:Z,ge="multiple"===u||"tags"===u,me=n.useCallback(function(){if(!fe)return[];var e=Array.isArray(fe)?fe:[fe];return c.filter(function(n){return e.includes(n.value)})},[fe,c]),be=n.useCallback(function(){return S&&ne?!1===j?c:"function"==typeof j?c.filter(function(e){return j(ne,e)}):c.filter(function(e){var n=String(e.label||"").toLowerCase(),t=ne.toLowerCase();return n.includes(t)}):c},[c,ne,S,j]),ye=n.useMemo(function(){return be()},[be]);n.useEffect(function(){if(he&&ae.current){var e=function(){var e,n;if(ae.current){var t=ae.current.getBoundingClientRect(),o=null!==(n=null===(e=de.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,a=i<o+4&&r>i,l=a?t.top+window.scrollY-o-4:t.bottom+window.scrollY+4;ce({top:l,left:t.left+window.scrollX,width:t.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)}}ce(null)},[he,ye.length]),n.useEffect(function(){var e=function(e){var n=e.target;ae.current&&!ae.current.contains(n)&&de.current&&!de.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&&ve(t)}else"Escape"===e.key&&(e.preventDefault(),xe||$(!1),null==B||B(!1),null===(n=ae.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&&de.current){var e=de.current.querySelectorAll(".aha-select-option")[ie];e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}},[ie]);var ve=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==E||E(e.value,e)):(t=r(r([],o,!0),[e.value],!1),null==L||L(e.value,e)),ue||U(t);var i=c.filter(function(e){return t.includes(e.value)});null==F||F(t,i)}else ue||U(e.value),null==F||F(e.value,e),null==L||L(e.value,e),xe||$(!1),null==B||B(!1),te(""),null===(n=ae.current)||void 0===n||n.focus()},[ge,fe,ue,xe,c,F,L,E,B]),we=n.useCallback(function(e,n){if(e.stopPropagation(),ge&&Array.isArray(fe)){var t=fe.filter(function(e){return e!==n}),o=c.find(function(e){return e.value===n});ue||U(t),null==F||F(t,me()),null==E||E(n,o)}},[ge,fe,ue,c,F,E,me]),Se=function(e){e.stopPropagation();var n=ge?[]:void 0;ue||U(n),null==F||F(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 z&&fe&&!f},[z,fe,f]),ze=n.useMemo(function(){return ge?Array.isArray(fe)&&fe.length>0:null!=fe&&""!==fe},[ge,fe]),Fe=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:ae,className:"aha-select ".concat(R),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?Q:"#D7D3D0"),backgroundColor:f?"#FAFAF9":"#FFFFFF",cursor:f?"not-allowed":"pointer",transition:"all 0.2s",paddingLeft:"12px",paddingRight:"36px",paddingTop:Ce[v].paddingTop,paddingBottom:Ce[v].paddingBottom,fontSize:Ce[v].fontSize,lineHeight:Ce[v].lineHeight,fontWeight:400,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation",userSelect:"none"},T),onClick:function(){if(!f){var e=!he;xe||$(e),null==B||B(e),e&&S?setTimeout(function(){var e;null===(e=le.current)||void 0===e||e.focus()},0):te("")}},onFocus:function(e){null==D||D(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?Fe||(b?e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400},children:b}):e.jsx("span",{style:{flex:1,minHeight:"24px"}})):S&&he?e.jsx("input",{ref:le,type:"text",value:ne,onChange:function(e){var n=e.target.value;te(n),null==A||A(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:ze?void 0:b,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}):e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:ze?f?"#98A2B3":"#1C1917":"#79716B",fontSize:"16px",lineHeight:"24px",fontWeight:400,minHeight:"24px",display:"inline-block"},children:ze?(null===(a=je[0])||void 0===a?void 0:a.label)||fe:b||" "})}),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:Se,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:de,className:"aha-select-dropdown ".concat(P),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"},H),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 V?e.jsx("div",{className:"aha-select-option ".concat(n.disabled?"":"hover:bg-[#FAFAF9]"," ").concat(o?"bg-[#FAFAF9]":""),onClick:function(){return!n.disabled&&ve(n)},style:{cursor:n.disabled?"not-allowed":"pointer",transition:"background-color 0.2s"},children:V(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 ve(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:Q,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},n.value)})}),document.body)]})};ye.displayName="Select";var ve=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"})})},we=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,a=void 0===r?1:r,l=t.total,s=void 0===l?0:l,p=t.pageSize,c=t.defaultPageSize,u=void 0===c?10:c,x=t.showSizeChanger,f=void 0!==x&&x,h=t.pageSizeOptions,g=void 0===h?["10","20","50","100"]:h,m=t.showQuickJumper,b=void 0!==m&&m,y=t.showTotal,v=t.onChange,w=t.onShowSizeChange,S=t.simple,C=void 0!==S&&S,j=t.disabled,k=void 0!==j&&j,z=t.hideOnSinglePage,F=void 0!==z&&z,L=t.className,E=void 0===L?"":L,A=t.style,D=t.size,M=void 0===D?"default":D,B=t.responsive,O=void 0!==B&&B;t.showLessItems;var R=t.itemRender,T=d().primaryColor,W=void 0===T?"#FB6011":T,P=n.useState(a),H=P[0],I=P[1],N=n.useState(u),X=N[0],q=N[1],Y=n.useState(""),V=Y[0],K=Y[1],Q=null!=i?i:H,_=null!=p?p:X,G=n.useMemo(function(){return Math.ceil(s/_)},[s,_]);n.useEffect(function(){void 0!==i&&I(i)},[i]),n.useEffect(function(){void 0!==p&&q(p)},[p]);var U=function(e){e<1||e>G||e===Q||k||(void 0===i&&I(e),null==v||v(e,_))},J=function(){var e=parseInt(V,10);e>=1&&e<=G&&(U(e),K(""))};if(F&&G<=1)return null;if(C)return e.jsxs("div",{className:"aha-pagination aha-pagination-simple ".concat(E),style:A,children:[e.jsx(oe,{onClick:function(){return U(Q-1)},disabled:k||1===Q,type:"default",size:"default"===M?"medium":"small",style:{marginRight:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(ve,{})}),e.jsxs("span",{style:{margin:"0 8px",fontSize:"14px",lineHeight:"20px",color:"#475467",fontFamily:"DM Sans, sans-serif"},children:[Q," / ",G]}),e.jsx(oe,{onClick:function(){return U(Q+1)},disabled:k||Q===G,type:"default",size:"default"===M?"medium":"small",style:{marginLeft:"8px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(we,{})})]});var Z=(Q-1)*_+1,$=Math.min(Q*_,s);return e.jsxs("div",{className:"aha-pagination w-full ".concat(E),style:o({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:O?"wrap":"nowrap",fontFamily:"DM Sans, sans-serif"},A),children:[y&&e.jsx("div",{className:"justify-start text-Text-text-secondary text-sm font-medium font-['DM_Sans'] leading-5",children:y(s,[Z,$])}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[s>0&&e.jsx(e.Fragment,{children:R?R(Q-1,"prev",e.jsx(oe,{onClick:function(){return U(Q-1)},disabled:k||1===Q,type:"default",size:"default"===M?"medium":"small",style:{height:"small"===M?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(ve,{})})):e.jsx(oe,{onClick:function(){return U(Q-1)},disabled:k||1===Q,type:"default",size:"default"===M?"medium":"small",style:{height:"small"===M?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(ve,{})})}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:function(){if(G<=7)return Array.from({length:G},function(e,n){return n+1});var e=[];if(Q<=4){for(var n=1;n<=5;n++)e.push(n);e.push("jump-next"),e.push(G)}else if(Q>=G-3){e.push(1),e.push("jump-prev");for(n=G-4;n<=G;n++)e.push(n)}else{e.push(1),e.push("jump-prev");for(n=Q-1;n<=Q+1;n++)e.push(n);e.push("jump-next"),e.push(G)}return e}().map(function(n){return function(n){if("number"==typeof n){var t=n===Q,o=e.jsx(oe,{onClick:function(){return U(n)},disabled:k,type:t?"primary":"default",size:"default"===M?"medium":"small",style:{minWidth:"small"===M?"32px":"36px",height:"small"===M?"32px":"36px",padding:"0 12px",margin:0,fontWeight:t?500:400,border:t?"1px solid ".concat(W):void 0,boxShadow:"none",borderRadius:"8px"},children:n},n);return R?R(n,"page",o):o}if("jump-prev"===n)return o=e.jsx(oe,{onClick:function(){return U(Math.max(1,Q-5))},disabled:k,type:"default",size:"default"===M?"medium":"small",style:{minWidth:"small"===M?"32px":"36px",height:"small"===M?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-prev"),R?R(Q-5,"jump-prev",o):o;if("jump-next"===n)return o=e.jsx(oe,{onClick:function(){return U(Math.min(G,Q+5))},disabled:k,type:"default",size:"default"===M?"medium":"small",style:{minWidth:"small"===M?"32px":"36px",height:"small"===M?"32px":"36px",padding:"0 12px",margin:0,border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"•••"},"jump-next"),R?R(Q+5,"jump-next",o):o;return null}(n)})}),s>0&&e.jsx(e.Fragment,{children:R?R(Q+1,"next",e.jsx(oe,{onClick:function(){return U(Q+1)},disabled:k||Q===G,type:"default",size:"default"===M?"medium":"small",style:{height:"small"===M?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(we,{})})):e.jsx(oe,{onClick:function(){return U(Q+1)},disabled:k||Q===G,type:"default",size:"default"===M?"medium":"small",style:{height:"small"===M?"32px":"36px",padding:"0 12px",gap:"4px",border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:e.jsx(we,{})})}),f&&e.jsx(ye,{value:_,options:g.map(function(e){return{label:"".concat(e," / page"),value:Number(e)}}),onChange:function(e){return n=Number(e),t=Math.ceil(s/n),o=Q>t?t:Q,void 0===p&&q(n),void 0===i&&I(o),null==w||w(o,n),void(null==v||v(o,n));var n,t,o},disabled:k,size:"small"===M?"small":"medium",style:{minWidth:"small"===M?80:96}}),b&&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(be,{type:"number",min:1,value:V,onChange:function(e){return K(e.target.value)},onPressEnter:J,disabled:k,size:"small"===M?"small":"medium",style:{width:56,minWidth:56}}),e.jsx("span",{style:{fontSize:"14px",lineHeight:"20px",color:"#475467"},children:"page"}),"object"==typeof b&&b.goButton?e.jsx(oe,{onClick:J,disabled:k,type:"default",size:"default"===M?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:b.goButton}):e.jsx(oe,{onClick:J,disabled:k,type:"default",size:"default"===M?"medium":"small",style:{border:"1px solid #EAECF0",boxShadow:"none",borderRadius:"8px"},children:"OK"})]})]})]})};
2
2
  //# sourceMappingURL=Pagination.js.map