@ehfuse/overlay-scrollbar 1.7.11 → 1.7.12

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.
@@ -83,6 +83,8 @@ export interface ScrollTopFabConfig {
83
83
  threshold?: number;
84
84
  position?: "left" | "right";
85
85
  offset?: number;
86
+ background?: string;
87
+ color?: string;
86
88
  }
87
89
  export interface OverlayScrollbarRef {
88
90
  getScrollContainer: () => HTMLDivElement | null;
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayScrollbar.d.ts","sourceRoot":"","sources":["../src/OverlayScrollbar.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"OverlayScrollbar.d.ts","sourceRoot":"","sources":["../src/OverlayScrollbar.tsx"],"names":[],"mappings":"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"}
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{useRef as O,useEffect as A,useState as p,useCallback as h,useMemo as Ee,forwardRef as Gt,useImperativeHandle as Kt,useLayoutEffect as Vt,useId as Zt}from"react";var Yt=["editor","textarea","input","select","textfield","form-control","contenteditable","MuiInputBase-input","MuiSelect-select","MuiOutlinedInput-input","MuiFilledInput-input","MuiInput-input","MuiFormControl-root","MuiTextField-root","MuiSelect-root","MuiOutlinedInput-root","MuiFilledInput-root","MuiInput-root","MuiAutocomplete-input","MuiDatePicker-input","MuiSlider-thumb","MuiSlider-rail","MuiSlider-track","MuiSlider-mark","MuiSlider-markLabel","MuiSlider-root","MuiSlider-colorPrimary","MuiSlider-sizeMedium","MuiIconButton-root","MuiButton-root","MuiButtonBase-root","MuiTouchRipple-root","MuiCheckbox-root","MuiRadio-root","MuiSwitch-root","PrivateSwitchBase-root","ant-input","ant-input-affix-wrapper","ant-input-group-addon","ant-input-number","ant-input-number-handler","ant-select","ant-select-selector","ant-select-selection-search","ant-select-dropdown","ant-cascader","ant-cascader-input","ant-picker","ant-picker-input","ant-time-picker","ant-calendar-picker","ant-slider","ant-slider-track","ant-slider-handle","ant-switch","ant-checkbox","ant-checkbox-wrapper","ant-radio","ant-radio-wrapper","ant-rate","ant-upload","ant-upload-drag","ant-form-item","ant-form-item-control","ant-btn","ant-dropdown","ant-dropdown-trigger","ant-menu","ant-menu-item","ant-tooltip","ant-popover","ant-modal","ant-drawer","ant-tree-select","ant-auto-complete","ant-mentions","ant-transfer","ui-input","ui-textarea","ui-select","ui-select-trigger","ui-select-content","ui-select-item","ui-button","ui-checkbox","ui-radio-group","ui-switch","ui-slider","ui-range-slider","ui-calendar","ui-date-picker","ui-combobox","ui-command","ui-command-input","ui-popover","ui-dialog","ui-sheet","ui-dropdown-menu","ui-context-menu","ui-menubar","ui-navigation-menu","ui-form","ui-form-control","ui-form-item","ui-form-field","ui-label","radix-ui","radix-select","radix-dropdown","radix-dialog","radix-popover","radix-accordion","radix-tabs","radix-slider","radix-switch","radix-checkbox","radix-radio","ql-editor","ql-container","ql-toolbar","ql-picker","ql-picker-label","ql-picker-options","ql-formats","ql-snow","ql-bubble","quill","quilleditor","monaco-editor","monaco-editor-background","view-lines","decorationsOverviewRuler","monaco-scrollable-element","CodeMirror","CodeMirror-code","CodeMirror-lines","CodeMirror-scroll","CodeMirror-sizer","cm-editor","cm-focused","cm-content","tox-editor-container","tox-editor-header","tox-edit-area","tox-tinymce","mce-content-body","ck-editor","ck-content","ck-toolbar","ck-editor__editable","ck-widget","slate-editor","slate-content","DraftEditor-root","DraftEditor-editorContainer","public-DraftEditor-content","ehfuse-editor","ehfuse-editor-wrapper","ehfuse-editor-content","ehfuse-toolbar","ehfuse-toolbar-group","ehfuse-cursor","text-editor","rich-text-editor","wysiwyg","ace_editor","ace_content"],Ie=(M,L)=>{if(M instanceof HTMLElement&&M.isContentEditable||M.closest('[role="textbox"],[role="searchbox"]'))return!0;let S=M.tagName.toLowerCase();if(S==="input"){let d=(M.type||"text").toLowerCase();return!["button","submit","reset","image","hidden"].includes(d)}if(["textarea","select","button"].includes(S)||["svg","path","circle","rect","line","polygon","polyline"].includes(S)||M.getAttribute("contenteditable")==="true")return!0;if(L?.excludeSelectors){for(let d of L.excludeSelectors)if(M.matches(d))return!0}return Xt(M,L)},Xt=(M,L)=>{let S=[...Yt,...L?.excludeClasses||[]],d=M,z=0,$=5;for(;d&&z<=$;){if(S.some(k=>d.classList.contains(k)))return!0;if(d.classList.contains("MuiDialogContent-root"))break;d=d.parentElement,z++}return!1};import{useEffect as mt,useRef as re,useState as bt}from"react";var gt=({containerRef:M,config:L})=>{let S=L.enabled??!0,d=L.threshold??80,z=L.maxDistance??d*2,$=L.onRefresh,[k,D]=bt(0),[P,X]=bt(!1),F=re(0),fe=re(0),q=re(!1),J=re(!1),ne=re(!1),j=re(0),le=re(!1);return mt(()=>{le.current=P},[P]),mt(()=>{let b=M.current;if(!b||!(S&&typeof $=="function"))return;let Me=x=>{let C=x instanceof Element?x:null;for(;C&&C!==b;){if(C instanceof HTMLElement&&C.scrollHeight>C.clientHeight+1&&C.scrollTop>0)return!1;C=C.parentElement}return!0},$e=x=>{q.current=!1,J.current=!1,ne.current=!1,!le.current&&x.touches.length===1&&b.scrollTop===0&&Me(x.target)&&(q.current=!0,F.current=x.touches[0].clientY,fe.current=x.touches[0].clientX)},ee=x=>{if(!q.current||le.current||x.touches.length!==1)return;let C=x.touches[0].clientY-F.current,Pe=x.touches[0].clientX-fe.current;if(!J.current){if(C<=0||b.scrollTop>0){q.current=!1;return}if(C>8&&C>Math.abs(Pe))J.current=!0,ne.current=b.scrollTop<0;else return}!ne.current&&x.cancelable&&x.preventDefault();let pe=Math.min(Math.max(C,0)*.5,z);j.current=pe,D(pe)},G=()=>{if(!q.current||(q.current=!1,!J.current))return;J.current=!1,ne.current=!1;let x=j.current;j.current=0,x>=d&&!le.current?(X(!0),D(d),Promise.resolve().then(()=>$()).catch(()=>{}).finally(()=>{X(!1),D(0)})):D(0)};return b.addEventListener("touchstart",$e,{passive:!0}),b.addEventListener("touchmove",ee,{passive:!1}),b.addEventListener("touchend",G,{passive:!0}),b.addEventListener("touchcancel",G,{passive:!0}),()=>{b.removeEventListener("touchstart",$e),b.removeEventListener("touchmove",ee),b.removeEventListener("touchend",G),b.removeEventListener("touchcancel",G)}},[M,S,$,d,z]),{pullDistance:k,isRefreshing:P,pullProgress:Math.min(k/d,1),pullThreshold:d}};import{useEffect as qt,useState as jt}from"react";function vt(){let[M,L]=jt(()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(pointer: coarse)").matches);return qt(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let S=window.matchMedia("(pointer: coarse)"),d=z=>L(z.matches);return L(S.matches),typeof S.addEventListener=="function"?(S.addEventListener("change",d),()=>S.removeEventListener("change",d)):(S.addListener(d),()=>S.removeListener(d))},[]),M}import{jsx as H,jsxs as Ze}from"react/jsx-runtime";var Qt={},Jt={},eo={},to={},oo={},ro={},no=Gt(({className:M="",style:L={},containerStyle:S={},contentStyle:d={},children:z,onScroll:$,thumb:k=Qt,track:D=Jt,arrows:P=eo,dragScroll:X=to,autoHide:F=oo,pullToRefresh:fe=ro,showScrollbar:q=!0,showHorizontalScrollbar:J=!0,detectInnerScroll:ne=!1,scrollTopFab:j=!1},le)=>{let b=vt(),ie=b?!1:q,Me=b?!1:J,ee=`os-${Zt().replace(/[^a-zA-Z0-9_-]/g,"")}`,G=j!==!1&&j!=null,x=typeof j=="object"?j:{},C=x.threshold??200,Pe=x.position??"left",pe=x.offset??16,[We,xt]=p(!1),wt=O({});A(()=>{wt.current={children:z,onScroll:$,showScrollbar:ie,showHorizontalScrollbar:Me,thumb:k,track:D,arrows:P,dragScroll:X,autoHide:F}});let Oe=O(null),i=O(null),he=O(null),me=O(null),Tt=O(null),B=O(null),{pullDistance:Ae,isRefreshing:Se,pullProgress:ze}=gt({containerRef:i,config:fe}),Qe=fe.indicatorColor??"#1976d2",Et=Ae>0||Se,[Ce,w]=p(!1),[_,Je]=p(!1),[et,tt]=p(!1),[Fe,Mt]=p({y:0,scrollTop:0}),[be,ot]=p(0),[St,Ne]=p(0),[ae,rt]=p(!1),[nt,lt]=p(!1),[U,it]=p(!1),[Be,Ct]=p({x:0,scrollLeft:0}),[_e,at]=p(0),[Ue,st]=p(0),[Ht,ct]=p(!1),se=O(!1),[K,ut]=p(!1),[ge,Lt]=p({x:0,y:0,scrollTop:0,scrollLeft:0}),[lo,io]=p(null),[He,Le]=p(null),[ao,kt]=p(!1),[Dt,Rt]=p(0),ve=O(null),[dt,ft]=p(!1),ye=O(null),te=O(null),oe=O(null),T=Ee(()=>{let e=k.color??"#606060";return{width:k.width??8,minHeight:k.minHeight??50,radius:k.radius??(k.width??8)/2,color:e,opacity:k.opacity??.6,hoverColor:k.hoverColor??e,hoverOpacity:k.hoverOpacity??1}},[k]),n=Ee(()=>({width:D.width??16,color:D.color??"rgba(128, 128, 128, 0.1)",visible:D.visible??!0,alignment:D.alignment??"outside",radius:D.radius??T.radius??4,margin:D.margin??4,overflowX:D.overflowX??!0,overflowY:D.overflowY??!0}),[D,T.radius]),N=Ee(()=>{let e=P.color??"#808080";return{visible:P.visible??!1,step:P.step??50,color:e,opacity:P.opacity??.6,hoverColor:P.hoverColor??e,hoverOpacity:P.hoverOpacity??1}},[P]),xe=Ee(()=>({enabled:b?!1:X.enabled??!0,excludeClasses:X.excludeClasses??[],excludeSelectors:X.excludeSelectors??[]}),[X,b]),a=Ee(()=>({enabled:F.enabled??!0,delay:F.delay??1500,delayOnWheel:F.delayOnWheel??700,initialDelay:F.initialDelay??200}),[F]),[ce,It]=p(()=>(F.initialDelay??200)>0),g=T.width,$t=n.width,Ye=T.minHeight,Y=N.visible,ke=N.step,W=h(()=>{if(!i.current)return;let e=document.activeElement;e&&i.current.contains(e)&&e!==i.current||i.current.focus()},[]);Kt(le,()=>({getScrollContainer:()=>i.current,scrollTo:e=>{i.current&&i.current.scrollTo(e)},get scrollTop(){return i.current?.scrollTop||0},get scrollHeight(){return i.current?.scrollHeight||0},get clientHeight(){return i.current?.clientHeight||0}}),[]);let u=h(()=>{if(B.current){let t=B.current;if(document.contains(t)&&(t.scrollHeight>t.clientHeight+2||t.scrollWidth>t.clientWidth+2))return t;B.current=null}if(!i.current)return null;if(i.current.scrollHeight>i.current.clientHeight+2||i.current.scrollWidth>i.current.clientWidth+2)return B.current=i.current,i.current;if(!ne)return null;let e=i.current.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]');for(let t of e){let o=t;if(o!==i.current&&o.classList.contains("overlay-scrollbar-container"))continue;let r=o.parentElement,l=!1;for(;r&&r!==i.current;){if(r.classList.contains("overlay-scrollbar-container")&&r!==i.current){l=!0;break}r=r.parentElement}if(!l&&(o.scrollHeight>o.clientHeight+2||o.scrollWidth>o.clientWidth+2))return B.current=o,o}return null},[]),V=h(()=>u()!==null,[u]),v=h(()=>{ye.current&&(clearTimeout(ye.current),ye.current=null)},[]),De=h(()=>{te.current&&(clearTimeout(te.current),te.current=null)},[]),pt=h(()=>{oe.current&&(clearTimeout(oe.current),oe.current=null)},[]),Pt=h(()=>{De(),!(_||U||K||se.current)&&(v(),w(!1))},[v,De,_,U,K]),m=h(e=>{a.enabled&&(v(),ye.current=setTimeout(()=>{w(!1),ye.current=null},e))},[v,a.enabled]),c=h(()=>{let e=u()??i.current;if(!e){w(!1),rt(!1),ct(!1),v();return}!a.enabled&&!ce&&(w(!0),v());let t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop,l=e.clientWidth,s=e.scrollWidth,y=e.scrollLeft,E=o-t>0,f=s-l>0,ue=E||f;rt(E),ct(f),ue||(w(!1),v());let we=0,I=0;if(Oe.current){let Z=window.getComputedStyle(Oe.current),Q=parseFloat(Z.paddingTop)||0;I=parseFloat(Z.paddingBottom)||0,we=Q+I,Rt(I)}if(E){let Z=Y?g*2+n.margin*4:n.margin*2,Q=t-Z+we,Re=t/o,de=Math.max(Q*Re,Ye),ht=o-t,_t=Q-de,Ut=ht>0?r/ht*_t:0;ot(de),Ne(Ut)}else ot(0),Ne(0);let Te=s-l;if(Te>0){let Z=l/s,Q=Math.max(l*Z,50),Re=l-Q,de=Te>0?y/Te*Re:0;at(Q),st(de)}else at(0),st(0)},[u,v,Y,g,Ye,a.enabled,ce]),Wt=h(e=>{e.preventDefault(),e.stopPropagation();let t=u();t&&(Je(!0),Mt({y:e.clientY,scrollTop:t.scrollTop}),v(),w(!0),W())},[u,v,W]),Xe=h(e=>{if(!_)return;let t=u();if(!t)return;let o=t.clientHeight,l=t.scrollHeight-o,s=e.clientY-Fe.y,y=o-be,E=s/y*l,f=Math.max(0,Math.min(l,Fe.scrollTop+E));t.scrollTop=f,c()},[_,Fe,be,c,u]),qe=h(()=>{Je(!1),V()&&m(a.delay)},[V,m,a.delay]),Ot=h(e=>{if(!me.current)return;let o=me.current.getBoundingClientRect(),r=e.clientY-o.top,l=u();if(!l)return;let s=l.clientHeight,y=l.scrollHeight,f=r/s*(y-s);l.scrollTop=Math.max(0,Math.min(y-s,f)),c(),w(!0),m(a.delay),W()},[c,m,a.delay,u,W]),At=h(e=>{if(e.preventDefault(),e.stopPropagation(),!i.current)return;let t=Math.max(0,i.current.scrollTop-ke);i.current.scrollTop=t,c(),w(!0),m(a.delay),W()},[c,m,ke,a.delay,W]),zt=h(e=>{if(e.preventDefault(),e.stopPropagation(),!i.current||!he.current)return;let t=i.current,r=he.current.scrollHeight-t.clientHeight,l=Math.min(r,t.scrollTop+ke);t.scrollTop=l,c(),w(!0),m(a.delay),W()},[c,m,ke,a.delay,W]),Ft=h(e=>{e.preventDefault(),e.stopPropagation();let t=u();t&&(it(!0),Ct({x:e.clientX,scrollLeft:t.scrollLeft}),v(),w(!0),W())},[u,v,W]),je=h(e=>{if(!U)return;let t=u();if(!t)return;let o=t.clientWidth,l=t.scrollWidth-o,s=e.clientX-Be.x,y=o-_e,E=s/y*l,f=Math.max(0,Math.min(l,Be.scrollLeft+E));t.scrollLeft=f,c()},[U,Be,_e,c,u]),Ge=h(()=>{it(!1),V()&&m(a.delay)},[V,m,a.delay]),Nt=h(e=>{if(!me.current)return;let o=me.current.getBoundingClientRect(),r=e.clientX-o.left,l=u();if(!l)return;let s=l.clientWidth,y=l.scrollWidth,f=r/s*(y-s);l.scrollLeft=Math.max(0,Math.min(y-s,f)),c(),w(!0),m(a.delay),W()},[c,m,a.delay,u,W]),Bt=h(e=>{if(!xe.enabled||e.defaultPrevented)return;let t=e.target,o=i.current;if(!o||!o.contains(t)||Ie(t,xe)||e.button!==0)return;let r=u();r&&(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth||(e.preventDefault(),se.current=!0,Lt({x:e.clientX,y:e.clientY,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft||0}),v()))},[xe,Ie,u,v]),Ke=h(e=>{if(!se.current&&!K)return;let t=u();if(!t)return;let o=ge.x-e.clientX,r=ge.y-e.clientY;if(Math.abs(r)<5&&Math.abs(o)<5)return;se.current&&(se.current=!1,ut(!0)),w(!0);let l=Math.max(0,Math.min(t.scrollHeight-t.clientHeight,ge.scrollTop+r)),s=Math.max(0,Math.min(t.scrollWidth-t.clientWidth,ge.scrollLeft+o));t.scrollTop=l,t.scrollLeft=s,c()},[K,ge,u,c]),Ve=h(()=>{let e=K;se.current=!1,ut(!1),e&&V()&&m(a.delay)},[K,V,m,a.delay]);A(()=>{let e=s=>{if(c(),G){let E=s.target?.scrollTop??0;xt(E>C)}if(ce){$&&$(s);return}v(),w(!0),pt();let y=dt?a.delayOnWheel:a.delay;m(y),$&&$(s)},t=()=>{ft(!0),ve.current&&clearTimeout(ve.current),ve.current=setTimeout(()=>{ft(!1)},300),pt(),oe.current=setTimeout(()=>{w(!0),oe.current=null,m(a.delayOnWheel)},50)},o=[],r=u();r&&o.push(r);let l=i.current;return l&&!r&&(o.push(l),l.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]').forEach(y=>{let E=y;if(E!==l&&E.classList.contains("overlay-scrollbar-container"))return;let f=E.parentElement;for(;f&&f!==l;){if(f.classList.contains("overlay-scrollbar-container")&&f!==l)return;f=f.parentElement}o.push(E)})),o.forEach(s=>{s.addEventListener("scroll",e,{passive:!0}),s.addEventListener("wheel",t,{passive:!0})}),()=>{o.forEach(s=>{s.removeEventListener("scroll",e),s.removeEventListener("wheel",t)}),ve.current&&clearTimeout(ve.current),oe.current&&clearTimeout(oe.current)}},[u,c,$,v,m,a,dt,ce,G,C]),A(()=>{let e=o=>{let r=o.target;if(o.defaultPrevented||r instanceof Element&&Ie(r,xe))return;let l=u();if(!l)return;let{key:s}=o,{scrollTop:y,scrollHeight:E,clientHeight:f}=l,ue=E-f,we=50,I=null;switch(s){case"ArrowUp":o.preventDefault(),I=Math.max(0,y-we);break;case"ArrowDown":o.preventDefault(),I=Math.min(ue,y+we);break;case"PageUp":o.preventDefault(),I=Math.max(0,y-f);break;case"PageDown":o.preventDefault(),I=Math.min(ue,y+f);break;case"Home":o.preventDefault(),I=0;break;case"End":o.preventDefault(),I=ue;break;default:return}if(I!==null){let Te=I/ue,Z=Y?g*2+n.margin*4:n.margin*2,de=(f-Z-be)*Te;Ne(de),l.scrollTop=I,v(),w(!0),m(a.delay)}},t=i.current;if(t)return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[u,Y,g,n.margin,be,v,m,a.delay,xe]),A(()=>(document.addEventListener("mousemove",Ke),document.addEventListener("mouseup",Ve),()=>{document.removeEventListener("mousemove",Ke),document.removeEventListener("mouseup",Ve)}),[K,Ke,Ve]),A(()=>{if(_)return document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",qe),()=>{document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",qe)}},[_,Xe,qe]),A(()=>{if(U)return document.addEventListener("mousemove",je),document.addEventListener("mouseup",Ge),()=>{document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",Ge)}},[U,je,Ge]),A(()=>{c();let e=setTimeout(()=>{c()},100);return()=>clearTimeout(e)},[c]),Vt(()=>{kt(!0),c(),!a.enabled&&!ce&&V()&&w(!0)},[V,c,a.enabled,ce]),A(()=>{if(a.initialDelay>0){let e=setTimeout(()=>{It(!1)},a.initialDelay);return()=>clearTimeout(e)}},[a.initialDelay]),A(()=>{let e=new ResizeObserver(()=>{c()}),t=[];return i.current&&t.push(i.current),he.current&&t.push(he.current),B.current&&document.contains(B.current)&&t.push(B.current),t.forEach(o=>{e.observe(o)}),()=>e.disconnect()},[c]),A(()=>{if(!i.current)return;let e=new MutationObserver(()=>{B.current=null,c()});return e.observe(i.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>e.disconnect()},[c]);let R=Math.max($t,g);return A(()=>{let e="overlay-scrollbar-shared";if(document.getElementById(e))return;let t=document.createElement("style");t.id=e,t.textContent=`
1
+ import{useRef as O,useEffect as A,useState as p,useCallback as h,useMemo as Ee,forwardRef as Vt,useImperativeHandle as Zt,useLayoutEffect as Qt,useId as Jt}from"react";var qt=["editor","textarea","input","select","textfield","form-control","contenteditable","MuiInputBase-input","MuiSelect-select","MuiOutlinedInput-input","MuiFilledInput-input","MuiInput-input","MuiFormControl-root","MuiTextField-root","MuiSelect-root","MuiOutlinedInput-root","MuiFilledInput-root","MuiInput-root","MuiAutocomplete-input","MuiDatePicker-input","MuiSlider-thumb","MuiSlider-rail","MuiSlider-track","MuiSlider-mark","MuiSlider-markLabel","MuiSlider-root","MuiSlider-colorPrimary","MuiSlider-sizeMedium","MuiIconButton-root","MuiButton-root","MuiButtonBase-root","MuiTouchRipple-root","MuiCheckbox-root","MuiRadio-root","MuiSwitch-root","PrivateSwitchBase-root","ant-input","ant-input-affix-wrapper","ant-input-group-addon","ant-input-number","ant-input-number-handler","ant-select","ant-select-selector","ant-select-selection-search","ant-select-dropdown","ant-cascader","ant-cascader-input","ant-picker","ant-picker-input","ant-time-picker","ant-calendar-picker","ant-slider","ant-slider-track","ant-slider-handle","ant-switch","ant-checkbox","ant-checkbox-wrapper","ant-radio","ant-radio-wrapper","ant-rate","ant-upload","ant-upload-drag","ant-form-item","ant-form-item-control","ant-btn","ant-dropdown","ant-dropdown-trigger","ant-menu","ant-menu-item","ant-tooltip","ant-popover","ant-modal","ant-drawer","ant-tree-select","ant-auto-complete","ant-mentions","ant-transfer","ui-input","ui-textarea","ui-select","ui-select-trigger","ui-select-content","ui-select-item","ui-button","ui-checkbox","ui-radio-group","ui-switch","ui-slider","ui-range-slider","ui-calendar","ui-date-picker","ui-combobox","ui-command","ui-command-input","ui-popover","ui-dialog","ui-sheet","ui-dropdown-menu","ui-context-menu","ui-menubar","ui-navigation-menu","ui-form","ui-form-control","ui-form-item","ui-form-field","ui-label","radix-ui","radix-select","radix-dropdown","radix-dialog","radix-popover","radix-accordion","radix-tabs","radix-slider","radix-switch","radix-checkbox","radix-radio","ql-editor","ql-container","ql-toolbar","ql-picker","ql-picker-label","ql-picker-options","ql-formats","ql-snow","ql-bubble","quill","quilleditor","monaco-editor","monaco-editor-background","view-lines","decorationsOverviewRuler","monaco-scrollable-element","CodeMirror","CodeMirror-code","CodeMirror-lines","CodeMirror-scroll","CodeMirror-sizer","cm-editor","cm-focused","cm-content","tox-editor-container","tox-editor-header","tox-edit-area","tox-tinymce","mce-content-body","ck-editor","ck-content","ck-toolbar","ck-editor__editable","ck-widget","slate-editor","slate-content","DraftEditor-root","DraftEditor-editorContainer","public-DraftEditor-content","ehfuse-editor","ehfuse-editor-wrapper","ehfuse-editor-content","ehfuse-toolbar","ehfuse-toolbar-group","ehfuse-cursor","text-editor","rich-text-editor","wysiwyg","ace_editor","ace_content"],Ie=(M,L)=>{if(M instanceof HTMLElement&&M.isContentEditable||M.closest('[role="textbox"],[role="searchbox"]'))return!0;let S=M.tagName.toLowerCase();if(S==="input"){let d=(M.type||"text").toLowerCase();return!["button","submit","reset","image","hidden"].includes(d)}if(["textarea","select","button"].includes(S)||["svg","path","circle","rect","line","polygon","polyline"].includes(S)||M.getAttribute("contenteditable")==="true")return!0;if(L?.excludeSelectors){for(let d of L.excludeSelectors)if(M.matches(d))return!0}return jt(M,L)},jt=(M,L)=>{let S=[...qt,...L?.excludeClasses||[]],d=M,z=0,$=5;for(;d&&z<=$;){if(S.some(k=>d.classList.contains(k)))return!0;if(d.classList.contains("MuiDialogContent-root"))break;d=d.parentElement,z++}return!1};import{useEffect as mt,useRef as re,useState as bt}from"react";var gt=({containerRef:M,config:L})=>{let S=L.enabled??!0,d=L.threshold??80,z=L.maxDistance??d*2,$=L.onRefresh,[k,D]=bt(0),[P,X]=bt(!1),F=re(0),fe=re(0),q=re(!1),J=re(!1),ne=re(!1),j=re(0),le=re(!1);return mt(()=>{le.current=P},[P]),mt(()=>{let g=M.current;if(!g||!(S&&typeof $=="function"))return;let Me=m=>{let C=m instanceof Element?m:null;for(;C&&C!==g;){if(C instanceof HTMLElement&&C.scrollHeight>C.clientHeight+1&&C.scrollTop>0)return!1;C=C.parentElement}return!0},$e=m=>{q.current=!1,J.current=!1,ne.current=!1,!le.current&&m.touches.length===1&&g.scrollTop===0&&Me(m.target)&&(q.current=!0,F.current=m.touches[0].clientY,fe.current=m.touches[0].clientX)},ee=m=>{if(!q.current||le.current||m.touches.length!==1)return;let C=m.touches[0].clientY-F.current,Pe=m.touches[0].clientX-fe.current;if(!J.current){if(C<=0||g.scrollTop>0){q.current=!1;return}if(C>8&&C>Math.abs(Pe))J.current=!0,ne.current=g.scrollTop<0;else return}!ne.current&&m.cancelable&&m.preventDefault();let pe=Math.min(Math.max(C,0)*.5,z);j.current=pe,D(pe)},G=()=>{if(!q.current||(q.current=!1,!J.current))return;J.current=!1,ne.current=!1;let m=j.current;j.current=0,m>=d&&!le.current?(X(!0),D(d),Promise.resolve().then(()=>$()).catch(()=>{}).finally(()=>{X(!1),D(0)})):D(0)};return g.addEventListener("touchstart",$e,{passive:!0}),g.addEventListener("touchmove",ee,{passive:!1}),g.addEventListener("touchend",G,{passive:!0}),g.addEventListener("touchcancel",G,{passive:!0}),()=>{g.removeEventListener("touchstart",$e),g.removeEventListener("touchmove",ee),g.removeEventListener("touchend",G),g.removeEventListener("touchcancel",G)}},[M,S,$,d,z]),{pullDistance:k,isRefreshing:P,pullProgress:Math.min(k/d,1),pullThreshold:d}};import{useEffect as Gt,useState as Kt}from"react";function vt(){let[M,L]=Kt(()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(pointer: coarse)").matches);return Gt(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let S=window.matchMedia("(pointer: coarse)"),d=z=>L(z.matches);return L(S.matches),typeof S.addEventListener=="function"?(S.addEventListener("change",d),()=>S.removeEventListener("change",d)):(S.addListener(d),()=>S.removeListener(d))},[]),M}import{jsx as H,jsxs as Ze}from"react/jsx-runtime";var eo={},to={},oo={},ro={},no={},lo={},io=Vt(({className:M="",style:L={},containerStyle:S={},contentStyle:d={},children:z,onScroll:$,thumb:k=eo,track:D=to,arrows:P=oo,dragScroll:X=ro,autoHide:F=no,pullToRefresh:fe=lo,showScrollbar:q=!0,showHorizontalScrollbar:J=!0,detectInnerScroll:ne=!1,scrollTopFab:j=!1},le)=>{let g=vt(),ie=g?!1:q,Me=g?!1:J,ee=`os-${Jt().replace(/[^a-zA-Z0-9_-]/g,"")}`,G=j!==!1&&j!=null,m=typeof j=="object"?j:{},C=m.threshold??200,Pe=m.position??"right",pe=m.offset??16,xt=m.background??"#1976d2",wt=m.color??"#ffffff",[We,Tt]=p(!1),Et=O({});A(()=>{Et.current={children:z,onScroll:$,showScrollbar:ie,showHorizontalScrollbar:Me,thumb:k,track:D,arrows:P,dragScroll:X,autoHide:F}});let Oe=O(null),i=O(null),he=O(null),me=O(null),Mt=O(null),B=O(null),{pullDistance:Ae,isRefreshing:Se,pullProgress:ze}=gt({containerRef:i,config:fe}),Qe=fe.indicatorColor??"#1976d2",St=Ae>0||Se,[Ce,w]=p(!1),[_,Je]=p(!1),[et,tt]=p(!1),[Fe,Ct]=p({y:0,scrollTop:0}),[be,ot]=p(0),[Ht,Ne]=p(0),[ae,rt]=p(!1),[nt,lt]=p(!1),[U,it]=p(!1),[Be,Lt]=p({x:0,scrollLeft:0}),[_e,at]=p(0),[Ue,st]=p(0),[kt,ct]=p(!1),se=O(!1),[K,ut]=p(!1),[ge,Dt]=p({x:0,y:0,scrollTop:0,scrollLeft:0}),[ao,so]=p(null),[He,Le]=p(null),[co,Rt]=p(!1),[It,$t]=p(0),ve=O(null),[dt,ft]=p(!1),ye=O(null),te=O(null),oe=O(null),T=Ee(()=>{let e=k.color??"#606060";return{width:k.width??8,minHeight:k.minHeight??50,radius:k.radius??(k.width??8)/2,color:e,opacity:k.opacity??.6,hoverColor:k.hoverColor??e,hoverOpacity:k.hoverOpacity??1}},[k]),n=Ee(()=>({width:D.width??16,color:D.color??"rgba(128, 128, 128, 0.1)",visible:D.visible??!0,alignment:D.alignment??"outside",radius:D.radius??T.radius??4,margin:D.margin??4,overflowX:D.overflowX??!0,overflowY:D.overflowY??!0}),[D,T.radius]),N=Ee(()=>{let e=P.color??"#808080";return{visible:P.visible??!1,step:P.step??50,color:e,opacity:P.opacity??.6,hoverColor:P.hoverColor??e,hoverOpacity:P.hoverOpacity??1}},[P]),xe=Ee(()=>({enabled:g?!1:X.enabled??!0,excludeClasses:X.excludeClasses??[],excludeSelectors:X.excludeSelectors??[]}),[X,g]),a=Ee(()=>({enabled:F.enabled??!0,delay:F.delay??1500,delayOnWheel:F.delayOnWheel??700,initialDelay:F.initialDelay??200}),[F]),[ce,Pt]=p(()=>(F.initialDelay??200)>0),v=T.width,Wt=n.width,Ye=T.minHeight,Y=N.visible,ke=N.step,W=h(()=>{if(!i.current)return;let e=document.activeElement;e&&i.current.contains(e)&&e!==i.current||i.current.focus()},[]);Zt(le,()=>({getScrollContainer:()=>i.current,scrollTo:e=>{i.current&&i.current.scrollTo(e)},get scrollTop(){return i.current?.scrollTop||0},get scrollHeight(){return i.current?.scrollHeight||0},get clientHeight(){return i.current?.clientHeight||0}}),[]);let u=h(()=>{if(B.current){let t=B.current;if(document.contains(t)&&(t.scrollHeight>t.clientHeight+2||t.scrollWidth>t.clientWidth+2))return t;B.current=null}if(!i.current)return null;if(i.current.scrollHeight>i.current.clientHeight+2||i.current.scrollWidth>i.current.clientWidth+2)return B.current=i.current,i.current;if(!ne)return null;let e=i.current.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]');for(let t of e){let o=t;if(o!==i.current&&o.classList.contains("overlay-scrollbar-container"))continue;let r=o.parentElement,l=!1;for(;r&&r!==i.current;){if(r.classList.contains("overlay-scrollbar-container")&&r!==i.current){l=!0;break}r=r.parentElement}if(!l&&(o.scrollHeight>o.clientHeight+2||o.scrollWidth>o.clientWidth+2))return B.current=o,o}return null},[]),V=h(()=>u()!==null,[u]),y=h(()=>{ye.current&&(clearTimeout(ye.current),ye.current=null)},[]),De=h(()=>{te.current&&(clearTimeout(te.current),te.current=null)},[]),pt=h(()=>{oe.current&&(clearTimeout(oe.current),oe.current=null)},[]),Ot=h(()=>{De(),!(_||U||K||se.current)&&(y(),w(!1))},[y,De,_,U,K]),b=h(e=>{a.enabled&&(y(),ye.current=setTimeout(()=>{w(!1),ye.current=null},e))},[y,a.enabled]),c=h(()=>{let e=u()??i.current;if(!e){w(!1),rt(!1),ct(!1),y();return}!a.enabled&&!ce&&(w(!0),y());let t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop,l=e.clientWidth,s=e.scrollWidth,x=e.scrollLeft,E=o-t>0,f=s-l>0,ue=E||f;rt(E),ct(f),ue||(w(!1),y());let we=0,I=0;if(Oe.current){let Z=window.getComputedStyle(Oe.current),Q=parseFloat(Z.paddingTop)||0;I=parseFloat(Z.paddingBottom)||0,we=Q+I,$t(I)}if(E){let Z=Y?v*2+n.margin*4:n.margin*2,Q=t-Z+we,Re=t/o,de=Math.max(Q*Re,Ye),ht=o-t,Yt=Q-de,Xt=ht>0?r/ht*Yt:0;ot(de),Ne(Xt)}else ot(0),Ne(0);let Te=s-l;if(Te>0){let Z=l/s,Q=Math.max(l*Z,50),Re=l-Q,de=Te>0?x/Te*Re:0;at(Q),st(de)}else at(0),st(0)},[u,y,Y,v,Ye,a.enabled,ce]),At=h(e=>{e.preventDefault(),e.stopPropagation();let t=u();t&&(Je(!0),Ct({y:e.clientY,scrollTop:t.scrollTop}),y(),w(!0),W())},[u,y,W]),Xe=h(e=>{if(!_)return;let t=u();if(!t)return;let o=t.clientHeight,l=t.scrollHeight-o,s=e.clientY-Fe.y,x=o-be,E=s/x*l,f=Math.max(0,Math.min(l,Fe.scrollTop+E));t.scrollTop=f,c()},[_,Fe,be,c,u]),qe=h(()=>{Je(!1),V()&&b(a.delay)},[V,b,a.delay]),zt=h(e=>{if(!me.current)return;let o=me.current.getBoundingClientRect(),r=e.clientY-o.top,l=u();if(!l)return;let s=l.clientHeight,x=l.scrollHeight,f=r/s*(x-s);l.scrollTop=Math.max(0,Math.min(x-s,f)),c(),w(!0),b(a.delay),W()},[c,b,a.delay,u,W]),Ft=h(e=>{if(e.preventDefault(),e.stopPropagation(),!i.current)return;let t=Math.max(0,i.current.scrollTop-ke);i.current.scrollTop=t,c(),w(!0),b(a.delay),W()},[c,b,ke,a.delay,W]),Nt=h(e=>{if(e.preventDefault(),e.stopPropagation(),!i.current||!he.current)return;let t=i.current,r=he.current.scrollHeight-t.clientHeight,l=Math.min(r,t.scrollTop+ke);t.scrollTop=l,c(),w(!0),b(a.delay),W()},[c,b,ke,a.delay,W]),Bt=h(e=>{e.preventDefault(),e.stopPropagation();let t=u();t&&(it(!0),Lt({x:e.clientX,scrollLeft:t.scrollLeft}),y(),w(!0),W())},[u,y,W]),je=h(e=>{if(!U)return;let t=u();if(!t)return;let o=t.clientWidth,l=t.scrollWidth-o,s=e.clientX-Be.x,x=o-_e,E=s/x*l,f=Math.max(0,Math.min(l,Be.scrollLeft+E));t.scrollLeft=f,c()},[U,Be,_e,c,u]),Ge=h(()=>{it(!1),V()&&b(a.delay)},[V,b,a.delay]),_t=h(e=>{if(!me.current)return;let o=me.current.getBoundingClientRect(),r=e.clientX-o.left,l=u();if(!l)return;let s=l.clientWidth,x=l.scrollWidth,f=r/s*(x-s);l.scrollLeft=Math.max(0,Math.min(x-s,f)),c(),w(!0),b(a.delay),W()},[c,b,a.delay,u,W]),Ut=h(e=>{if(!xe.enabled||e.defaultPrevented)return;let t=e.target,o=i.current;if(!o||!o.contains(t)||Ie(t,xe)||e.button!==0)return;let r=u();r&&(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth||(e.preventDefault(),se.current=!0,Dt({x:e.clientX,y:e.clientY,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft||0}),y()))},[xe,Ie,u,y]),Ke=h(e=>{if(!se.current&&!K)return;let t=u();if(!t)return;let o=ge.x-e.clientX,r=ge.y-e.clientY;if(Math.abs(r)<5&&Math.abs(o)<5)return;se.current&&(se.current=!1,ut(!0)),w(!0);let l=Math.max(0,Math.min(t.scrollHeight-t.clientHeight,ge.scrollTop+r)),s=Math.max(0,Math.min(t.scrollWidth-t.clientWidth,ge.scrollLeft+o));t.scrollTop=l,t.scrollLeft=s,c()},[K,ge,u,c]),Ve=h(()=>{let e=K;se.current=!1,ut(!1),e&&V()&&b(a.delay)},[K,V,b,a.delay]);A(()=>{let e=s=>{if(c(),G){let E=s.target?.scrollTop??0;Tt(E>C)}if(ce){$&&$(s);return}y(),w(!0),pt();let x=dt?a.delayOnWheel:a.delay;b(x),$&&$(s)},t=()=>{ft(!0),ve.current&&clearTimeout(ve.current),ve.current=setTimeout(()=>{ft(!1)},300),pt(),oe.current=setTimeout(()=>{w(!0),oe.current=null,b(a.delayOnWheel)},50)},o=[],r=u();r&&o.push(r);let l=i.current;return l&&!r&&(o.push(l),l.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]').forEach(x=>{let E=x;if(E!==l&&E.classList.contains("overlay-scrollbar-container"))return;let f=E.parentElement;for(;f&&f!==l;){if(f.classList.contains("overlay-scrollbar-container")&&f!==l)return;f=f.parentElement}o.push(E)})),o.forEach(s=>{s.addEventListener("scroll",e,{passive:!0}),s.addEventListener("wheel",t,{passive:!0})}),()=>{o.forEach(s=>{s.removeEventListener("scroll",e),s.removeEventListener("wheel",t)}),ve.current&&clearTimeout(ve.current),oe.current&&clearTimeout(oe.current)}},[u,c,$,y,b,a,dt,ce,G,C]),A(()=>{let e=o=>{let r=o.target;if(o.defaultPrevented||r instanceof Element&&Ie(r,xe))return;let l=u();if(!l)return;let{key:s}=o,{scrollTop:x,scrollHeight:E,clientHeight:f}=l,ue=E-f,we=50,I=null;switch(s){case"ArrowUp":o.preventDefault(),I=Math.max(0,x-we);break;case"ArrowDown":o.preventDefault(),I=Math.min(ue,x+we);break;case"PageUp":o.preventDefault(),I=Math.max(0,x-f);break;case"PageDown":o.preventDefault(),I=Math.min(ue,x+f);break;case"Home":o.preventDefault(),I=0;break;case"End":o.preventDefault(),I=ue;break;default:return}if(I!==null){let Te=I/ue,Z=Y?v*2+n.margin*4:n.margin*2,de=(f-Z-be)*Te;Ne(de),l.scrollTop=I,y(),w(!0),b(a.delay)}},t=i.current;if(t)return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[u,Y,v,n.margin,be,y,b,a.delay,xe]),A(()=>(document.addEventListener("mousemove",Ke),document.addEventListener("mouseup",Ve),()=>{document.removeEventListener("mousemove",Ke),document.removeEventListener("mouseup",Ve)}),[K,Ke,Ve]),A(()=>{if(_)return document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",qe),()=>{document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",qe)}},[_,Xe,qe]),A(()=>{if(U)return document.addEventListener("mousemove",je),document.addEventListener("mouseup",Ge),()=>{document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",Ge)}},[U,je,Ge]),A(()=>{c();let e=setTimeout(()=>{c()},100);return()=>clearTimeout(e)},[c]),Qt(()=>{Rt(!0),c(),!a.enabled&&!ce&&V()&&w(!0)},[V,c,a.enabled,ce]),A(()=>{if(a.initialDelay>0){let e=setTimeout(()=>{Pt(!1)},a.initialDelay);return()=>clearTimeout(e)}},[a.initialDelay]),A(()=>{let e=new ResizeObserver(()=>{c()}),t=[];return i.current&&t.push(i.current),he.current&&t.push(he.current),B.current&&document.contains(B.current)&&t.push(B.current),t.forEach(o=>{e.observe(o)}),()=>e.disconnect()},[c]),A(()=>{if(!i.current)return;let e=new MutationObserver(()=>{B.current=null,c()});return e.observe(i.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>e.disconnect()},[c]);let R=Math.max(Wt,v);return A(()=>{let e="overlay-scrollbar-shared";if(document.getElementById(e))return;let t=document.createElement("style");t.id=e,t.textContent=`
2
2
  /* ehfuse-editor-content\uB294 \uC2A4\uD06C\uB864\uBC14 \uC720\uC9C0 */
3
3
  .overlay-scrollbar-container .ehfuse-editor-content {
4
4
  scrollbar-width: thin !important;
@@ -27,7 +27,7 @@ import{useRef as O,useEffect as A,useState as p,useCallback as h,useMemo as Ee,f
27
27
  from { transform: rotate(0deg); }
28
28
  to { transform: rotate(360deg); }
29
29
  }
30
- `,document.head.appendChild(t)},[]),A(()=>{let e=`overlay-scrollbar-instance-${ee}`,t=document.getElementById(e);t&&t.remove();let o=document.createElement("style");o.id=e;let r=`.${ee}`;return o.textContent=b?`
30
+ `,document.head.appendChild(t)},[]),A(()=>{let e=`overlay-scrollbar-instance-${ee}`,t=document.getElementById(e);t&&t.remove();let o=document.createElement("style");o.id=e;let r=`.${ee}`;return o.textContent=g?`
31
31
  ${r} {
32
32
  scrollbar-width: thin;
33
33
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
@@ -53,5 +53,5 @@ import{useRef as O,useEffect as A,useState as p,useCallback as h,useMemo as Ee,f
53
53
  height: 0 !important;
54
54
  }
55
55
  ${r}::-webkit-scrollbar-track { display: none !important; }
56
- ${r}::-webkit-scrollbar-thumb { display: none !important; }`,document.head.appendChild(o),()=>{document.getElementById(e)?.remove()}},[b,ee]),Ze("div",{ref:Oe,className:`overlay-scrollbar-wrapper ${M}`,onMouseLeave:Pt,style:{display:"flex",flexDirection:"column",position:"relative",minHeight:0,height:"100%",flex:"1 1 0%",overflow:"visible",...L},children:[Et&&H("div",{className:"overlay-scrollbar-pull-indicator",style:{position:"absolute",top:0,left:"50%",transform:`translate(-50%, ${Ae-56}px)`,transition:Se?"transform 0.15s ease-out":Ae===0?"transform 0.2s ease-out":"none",width:48,height:48,borderRadius:"50%",background:"#ffffff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1001,pointerEvents:"none",opacity:Se?1:Math.min(ze*1.5,1)},children:Se?H("svg",{width:"28",height:"28",viewBox:"0 0 24 24",style:{animation:"overlay-scrollbar-ptr-spin 0.8s linear infinite"},children:H("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:Qe,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"42",strokeDashoffset:"14"})}):H("svg",{width:"28",height:"28",viewBox:"0 0 24 24",style:{transform:`rotate(${ze*270}deg)`,opacity:ze>=1?1:.6},children:H("path",{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",fill:Qe})})}),H("div",{ref:i,className:`overlay-scrollbar-container ${ee}`,tabIndex:-1,onMouseDown:Bt,style:{display:"flex",width:"100%",flex:"1 1 auto",minHeight:0,overflow:"auto",outline:"none",userSelect:K?"none":"auto",...S},children:H("div",{ref:he,className:"overlay-scrollbar-content",style:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",boxSizing:"border-box",...d},children:z})}),ie&&ae&&(n.overflowY??!0)&&Ze("div",{ref:me,className:"overlay-scrollbar-track",onMouseEnter:()=>{v(),te.current=setTimeout(()=>{w(!0),te.current=null},100)},onMouseLeave:()=>{De(),_||m(a.delay)},style:{position:"absolute",top:0,right:0,width:`${R}px`,height:"100%",opacity:Ce?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[n.visible&&H("div",{className:"overlay-scrollbar-track-background",onClick:e=>{e.preventDefault(),e.stopPropagation(),Ot(e)},style:{position:"absolute",top:Y?`${T.width+n.margin*2}px`:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-T.width)/2}px`,width:`${T.width}px`,height:Y?`calc(100% - ${T.width*2+n.margin*4}px)`:`calc(100% - ${n.margin*2}px)`,backgroundColor:n.color,borderRadius:`${n.radius}px`,cursor:"pointer"}}),H("div",{ref:Tt,className:"overlay-scrollbar-thumb",onMouseDown:Wt,onMouseEnter:()=>tt(!0),onMouseLeave:()=>tt(!1),style:{position:"absolute",top:`${(Y?g+n.margin*2:n.margin)+St}px`,right:n.alignment==="outside"?"0px":`${(R-g)/2}px`,width:`${g}px`,height:`${Math.max(be,Ye)}px`,backgroundColor:et||_?T.hoverColor:T.color,opacity:et||_?T.hoverOpacity:T.opacity,borderRadius:`${T.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),ie&&ae&&Y&&H("div",{className:"overlay-scrollbar-up-arrow",onClick:At,onMouseEnter:()=>Le("up"),onMouseLeave:()=>Le(null),style:{position:"absolute",top:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-g)/2}px`,width:`${g}px`,height:`${g}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(g*.75,8)}px`,color:He==="up"?N.hoverColor:N.color,userSelect:"none",zIndex:1001,opacity:Ce?He==="up"?N.hoverOpacity:N.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25B2"}),ie&&ae&&Y&&H("div",{className:"overlay-scrollbar-down-arrow",onClick:zt,onMouseEnter:()=>Le("down"),onMouseLeave:()=>Le(null),style:{position:"absolute",bottom:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-g)/2}px`,width:`${g}px`,height:`${g}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(g*.75,8)}px`,color:He==="down"?N.hoverColor:N.color,userSelect:"none",zIndex:1001,opacity:Ce?He==="down"?N.hoverOpacity:N.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25BC"}),ie&&Me&&Ht&&(n.overflowX??!0)&&Ze("div",{className:"overlay-scrollbar-horizontal-track",onMouseEnter:()=>{v(),te.current=setTimeout(()=>{w(!0),te.current=null},100)},onMouseLeave:()=>{De(),U||m(a.delay)},style:{position:"absolute",bottom:`${Dt}px`,left:0,width:"100%",height:`${R}px`,opacity:Ce?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[n.visible&&H("div",{className:"overlay-scrollbar-horizontal-track-background",onClick:e=>{e.preventDefault(),e.stopPropagation(),Nt(e)},style:{position:"absolute",bottom:n.alignment==="outside"?"0px":`${(R-g)/2}px`,left:`${n.margin}px`,right:ae?n.alignment==="outside"?`${R-n.margin}px`:`${R}px`:`${n.margin}px`,height:`${g}px`,backgroundColor:n.color,borderRadius:`${n.radius}px`,cursor:"pointer"}}),H("div",{className:"overlay-scrollbar-horizontal-thumb",onMouseDown:Ft,onMouseEnter:()=>lt(!0),onMouseLeave:()=>lt(!1),style:{position:"absolute",bottom:n.alignment==="outside"?"0px":`${(R-g)/2}px`,left:`${n.margin+Ue}px`,right:ae?n.alignment==="outside"?`${R-n.margin}px`:`${R}px`:"auto",maxWidth:ae?n.alignment==="outside"?`calc(100% - ${n.margin+Ue+R-n.margin}px)`:`calc(100% - ${n.margin+Ue+R}px)`:"none",width:`${Math.max(_e,50)}px`,height:`${g}px`,backgroundColor:nt||U?T.hoverColor:T.color,opacity:nt||U?T.hoverOpacity:T.opacity,borderRadius:`${T.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),G&&H("button",{type:"button","aria-label":"\uB9E8 \uC704\uB85C",onClick:()=>i.current?.scrollTo({top:0,behavior:"smooth"}),style:{position:"absolute",[Pe]:pe,bottom:pe,zIndex:1200,width:40,height:40,padding:0,display:"flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"50%",backgroundColor:"#ffffff",color:"#334155",boxShadow:"0 2px 8px rgba(15, 23, 42, 0.24)",cursor:"pointer",opacity:We?1:0,transform:We?"translateY(0) scale(1)":"translateY(8px) scale(0.9)",pointerEvents:We?"auto":"none",transition:"opacity 0.2s ease, transform 0.2s ease"},children:H("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:H("polyline",{points:"18 15 12 9 6 15"})})})]})}),yt=no;export{yt as OverlayScrollbar,yt as default};
56
+ ${r}::-webkit-scrollbar-thumb { display: none !important; }`,document.head.appendChild(o),()=>{document.getElementById(e)?.remove()}},[g,ee]),Ze("div",{ref:Oe,className:`overlay-scrollbar-wrapper ${M}`,onMouseLeave:Ot,style:{display:"flex",flexDirection:"column",position:"relative",minHeight:0,height:"100%",flex:"1 1 0%",overflow:"visible",...L},children:[St&&H("div",{className:"overlay-scrollbar-pull-indicator",style:{position:"absolute",top:0,left:"50%",transform:`translate(-50%, ${Ae-56}px)`,transition:Se?"transform 0.15s ease-out":Ae===0?"transform 0.2s ease-out":"none",width:48,height:48,borderRadius:"50%",background:"#ffffff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1001,pointerEvents:"none",opacity:Se?1:Math.min(ze*1.5,1)},children:Se?H("svg",{width:"28",height:"28",viewBox:"0 0 24 24",style:{animation:"overlay-scrollbar-ptr-spin 0.8s linear infinite"},children:H("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:Qe,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"42",strokeDashoffset:"14"})}):H("svg",{width:"28",height:"28",viewBox:"0 0 24 24",style:{transform:`rotate(${ze*270}deg)`,opacity:ze>=1?1:.6},children:H("path",{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",fill:Qe})})}),H("div",{ref:i,className:`overlay-scrollbar-container ${ee}`,tabIndex:-1,onMouseDown:Ut,style:{display:"flex",width:"100%",flex:"1 1 auto",minHeight:0,overflow:"auto",outline:"none",userSelect:K?"none":"auto",...S},children:H("div",{ref:he,className:"overlay-scrollbar-content",style:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",boxSizing:"border-box",...d},children:z})}),ie&&ae&&(n.overflowY??!0)&&Ze("div",{ref:me,className:"overlay-scrollbar-track",onMouseEnter:()=>{y(),te.current=setTimeout(()=>{w(!0),te.current=null},100)},onMouseLeave:()=>{De(),_||b(a.delay)},style:{position:"absolute",top:0,right:0,width:`${R}px`,height:"100%",opacity:Ce?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[n.visible&&H("div",{className:"overlay-scrollbar-track-background",onClick:e=>{e.preventDefault(),e.stopPropagation(),zt(e)},style:{position:"absolute",top:Y?`${T.width+n.margin*2}px`:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-T.width)/2}px`,width:`${T.width}px`,height:Y?`calc(100% - ${T.width*2+n.margin*4}px)`:`calc(100% - ${n.margin*2}px)`,backgroundColor:n.color,borderRadius:`${n.radius}px`,cursor:"pointer"}}),H("div",{ref:Mt,className:"overlay-scrollbar-thumb",onMouseDown:At,onMouseEnter:()=>tt(!0),onMouseLeave:()=>tt(!1),style:{position:"absolute",top:`${(Y?v+n.margin*2:n.margin)+Ht}px`,right:n.alignment==="outside"?"0px":`${(R-v)/2}px`,width:`${v}px`,height:`${Math.max(be,Ye)}px`,backgroundColor:et||_?T.hoverColor:T.color,opacity:et||_?T.hoverOpacity:T.opacity,borderRadius:`${T.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),ie&&ae&&Y&&H("div",{className:"overlay-scrollbar-up-arrow",onClick:Ft,onMouseEnter:()=>Le("up"),onMouseLeave:()=>Le(null),style:{position:"absolute",top:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-v)/2}px`,width:`${v}px`,height:`${v}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(v*.75,8)}px`,color:He==="up"?N.hoverColor:N.color,userSelect:"none",zIndex:1001,opacity:Ce?He==="up"?N.hoverOpacity:N.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25B2"}),ie&&ae&&Y&&H("div",{className:"overlay-scrollbar-down-arrow",onClick:Nt,onMouseEnter:()=>Le("down"),onMouseLeave:()=>Le(null),style:{position:"absolute",bottom:`${n.margin}px`,right:n.alignment==="outside"?"0px":`${(R-v)/2}px`,width:`${v}px`,height:`${v}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(v*.75,8)}px`,color:He==="down"?N.hoverColor:N.color,userSelect:"none",zIndex:1001,opacity:Ce?He==="down"?N.hoverOpacity:N.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25BC"}),ie&&Me&&kt&&(n.overflowX??!0)&&Ze("div",{className:"overlay-scrollbar-horizontal-track",onMouseEnter:()=>{y(),te.current=setTimeout(()=>{w(!0),te.current=null},100)},onMouseLeave:()=>{De(),U||b(a.delay)},style:{position:"absolute",bottom:`${It}px`,left:0,width:"100%",height:`${R}px`,opacity:Ce?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[n.visible&&H("div",{className:"overlay-scrollbar-horizontal-track-background",onClick:e=>{e.preventDefault(),e.stopPropagation(),_t(e)},style:{position:"absolute",bottom:n.alignment==="outside"?"0px":`${(R-v)/2}px`,left:`${n.margin}px`,right:ae?n.alignment==="outside"?`${R-n.margin}px`:`${R}px`:`${n.margin}px`,height:`${v}px`,backgroundColor:n.color,borderRadius:`${n.radius}px`,cursor:"pointer"}}),H("div",{className:"overlay-scrollbar-horizontal-thumb",onMouseDown:Bt,onMouseEnter:()=>lt(!0),onMouseLeave:()=>lt(!1),style:{position:"absolute",bottom:n.alignment==="outside"?"0px":`${(R-v)/2}px`,left:`${n.margin+Ue}px`,right:ae?n.alignment==="outside"?`${R-n.margin}px`:`${R}px`:"auto",maxWidth:ae?n.alignment==="outside"?`calc(100% - ${n.margin+Ue+R-n.margin}px)`:`calc(100% - ${n.margin+Ue+R}px)`:"none",width:`${Math.max(_e,50)}px`,height:`${v}px`,backgroundColor:nt||U?T.hoverColor:T.color,opacity:nt||U?T.hoverOpacity:T.opacity,borderRadius:`${T.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),G&&H("button",{type:"button","aria-label":"\uB9E8 \uC704\uB85C",onClick:()=>i.current?.scrollTo({top:0,behavior:"smooth"}),style:{position:"absolute",[Pe]:pe,bottom:pe,zIndex:1200,width:40,height:40,padding:0,display:"flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"50%",backgroundColor:xt,color:wt,boxShadow:"0 3px 8px rgba(15, 23, 42, 0.28)",cursor:"pointer",opacity:We?1:0,transform:We?"translateY(0) scale(1)":"translateY(8px) scale(0.9)",pointerEvents:We?"auto":"none",transition:"opacity 0.2s ease, transform 0.2s ease"},children:H("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:H("polyline",{points:"18 15 12 9 6 15"})})})]})}),yt=io;export{yt as OverlayScrollbar,yt as default};
57
57
  //# sourceMappingURL=index.esm.js.map