import{s as d}from"./chunk-LvLJmgfZ.js";import{t as h}from"./react-Bj1aDYRI.js";import{t as p}from"./compiler-runtime-B3qBwwSJ.js";import{t as c}from"./cn-DYvqRARy.js";import{t as k}from"./jsx-runtime-Blw4afVn.js";import{t as g}from"./button-DDGiD1NW.js";import{t as v}from"./createLucideIcon-w-Qo9n0R.js";var w=v("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),y=p(),N=d(h(),1),i=d(k(),1),u=(0,N.memo)(b=>{let o=(0,y.c)(10),{isVisible:f,onScrollToBottom:m,className:n}=b;if(!f)return null;let r;o[0]===n?r=o[1]:(r=c("absolute bottom-2 right-6 z-10 animate-in fade-in-0 zoom-in-95 duration-200",n),o[0]=n,o[1]=r);let t,s,e;o[2]===Symbol.for("react.memo_cache_sentinel")?(t=c("h-8 w-8 p-0 rounded-full","bg-background/90 backdrop-blur-sm","border border-border/50","shadow-md shadow-black/10","hover:bg-background hover:shadow-black/15","transition-all duration-200","focus:outline-hidden focus:ring-2 focus:ring-primary/50"),s=(0,i.jsx)(w,{className:"h-4 w-4"}),e=(0,i.jsx)("span",{className:"sr-only",children:"Scroll to bottom"}),o[2]=t,o[3]=s,o[4]=e):(t=o[2],s=o[3],e=o[4]);let a;o[5]===m?a=o[6]:(a=(0,i.jsxs)(g,{variant:"secondary",size:"sm",onClick:m,className:t,children:[s,e]}),o[5]=m,o[6]=a);let l;return o[7]!==r||o[8]!==a?(l=(0,i.jsx)("div",{className:r,children:a}),o[7]=r,o[8]=a,o[9]=l):l=o[9],l});u.displayName="ScrollToBottomButton";var j=u;export{j as t};
