文档归位:雪猫 README 门面 + 公告/制作文档/发布工具并入仓库根
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
天天的鸟蛋蛋 committed 2026-11-12 06:29:38 +08:00
1 parent b9655a5ab1
commit e292824161
122 files changed
+90002 -69

No files matched your search

@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Crbd1Tvi.js","assets/features-animation-BkV7kg8P.js","assets/gestures-BHfQC-M8.js","assets/react-vendor-jWT2yUdV.js","assets/qface-BZLvZXJ8.js","assets/index-DiaaLdUu.js","assets/react-hot-toast-cGcFZPSt.js","assets/react-router-dom-C6k78GT4.js","assets/index-CBRelCj8.css"])))=>i.map(i=>d[i]);
import{a7 as $e,a8 as Z,a6 as ve,b1 as he,ac as Te,v as xe,x as ge,b2 as Pe,n as _,aJ as ye,aT as Oe,B as Ce,D,X as we,E as De,w as Ee,aC as Re,aD as Ae,aE as _e,aF as je,A as Ie,b3 as Y}from"./index-DiaaLdUu.js";import{r as l,j as d}from"./react-vendor-jWT2yUdV.js";import{d as Ne,p as q,a as He,c as G,t as Le,g as Se}from"./chunk-WQVQ7P2I-BJd1EiqP.js";import{$ as ee}from"./useHover-DC1o5-bm.js";import{$ as ke}from"./useFocusable-DA5Croun.js";import{m as Fe}from"./chunk-UX7UMZL5-CMHjUaC_.js";const Ve=1500,Q=500;let P={},Me=0,A=!1,x=null,y=null;function ze(e={}){let{delay:o=Ve,closeDelay:n=Q}=e,{isOpen:a,open:u,close:f}=Ne(e),r=l.useMemo(()=>`${++Me}`,[]),t=l.useRef(null),b=l.useRef(f),m=()=>{P[r]=p},h=()=>{for(let i in P)i!==r&&(P[i](!0),delete P[i])},T=()=>{t.current&&clearTimeout(t.current),t.current=null,h(),m(),A=!0,u(),x&&(clearTimeout(x),x=null),y&&(clearTimeout(y),y=null)},p=i=>{i||n<=0?(t.current&&clearTimeout(t.current),t.current=null,b.current()):t.current||(t.current=setTimeout(()=>{t.current=null,b.current()},n)),x&&(clearTimeout(x),x=null),A&&(y&&clearTimeout(y),y=setTimeout(()=>{delete P[r],y=null,A=!1},Math.max(Q,n)))},s=()=>{h(),m(),!a&&!x&&!A?x=setTimeout(()=>{x=null,A=!0,T()},o):a||T()};return l.useEffect(()=>{b.current=f},[f]),l.useEffect(()=>()=>{t.current&&clearTimeout(t.current),P[r]&&delete P[r]},[r]),{isOpen:a,open:i=>{!i&&o>0&&!t.current?s():T()},close:p}}function Be(e,o){let n=$e(e,{labelable:!0}),{hoverProps:a}=ee({onHoverStart:()=>o==null?void 0:o.open(!0),onHoverEnd:()=>o==null?void 0:o.close()});return{tooltipProps:Z(n,a,{role:"tooltip"})}}function Ke(e,o,n){let{isDisabled:a,trigger:u}=e,f=ve(),r=l.useRef(!1),t=l.useRef(!1),b=()=>{(r.current||t.current)&&o.open(t.current)},m=c=>{!r.current&&!t.current&&o.close(c)};l.useEffect(()=>{let c=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),o.close(!0))};if(o.isOpen)return document.addEventListener("keydown",c,!0),()=>{document.removeEventListener("keydown",c,!0)}},[n,o]);let h=()=>{u!=="focus"&&(he()==="pointer"?r.current=!0:r.current=!1,b())},T=()=>{u!=="focus"&&(t.current=!1,r.current=!1,m())},p=()=>{t.current=!1,r.current=!1,m(!0)},s=()=>{Te()&&(t.current=!0,b())},i=()=>{t.current=!1,r.current=!1,m(!0)},{hoverProps:O}=ee({isDisabled:a,onHoverStart:h,onHoverEnd:T}),{focusableProps:C}=ke({isDisabled:a,onFocus:s,onBlur:i},n);return{triggerProps:{"aria-describedby":o.isOpen?f:void 0,...Z(C,O,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:f}}}function Ue(e){var o,n;const a=xe(),[u,f]=ge(e,q.variantKeys),{ref:r,as:t,isOpen:b,content:m,children:h,defaultOpen:T,onOpenChange:p,isDisabled:s,trigger:i,shouldFlip:O=!0,containerPadding:C=12,placement:c="top",delay:w=0,closeDelay:k=500,showArrow:$=!1,offset:M=7,crossOffset:oe=0,isDismissable:re,shouldCloseOnBlur:le=!0,portalContainer:se,isKeyboardDismissDisabled:ne=!1,updatePositionDeps:z=[],shouldCloseOnInteractOutside:ae,className:ie,onClose:B,motionProps:ce,classNames:E,...F}=u,de=t||"div",V=(n=(o=e==null?void 0:e.disableAnimation)!=null?o:a==null?void 0:a.disableAnimation)!=null?n:!1,R=ze({delay:w,closeDelay:k,isDisabled:s,defaultOpen:T,isOpen:b,onOpenChange:g=>{p==null||p(g),g||B==null||B()}}),j=l.useRef(null),I=l.useRef(null),N=l.useId(),v=R.isOpen&&!s;l.useImperativeHandle(r,()=>Pe(I));const{triggerProps:K,tooltipProps:ue}=Ke({isDisabled:s,trigger:i},R,j),{tooltipProps:U}=Be({isOpen:v,..._(u,ue)},R),{overlayProps:W,placement:H,updatePosition:fe}=He({isOpen:v,targetRef:j,placement:Le(c),overlayRef:I,offset:$?M+3:M,crossOffset:oe,shouldFlip:O,containerPadding:C});ye(()=>{z.length&&fe()},z);const{overlayProps:J}=Oe({isOpen:v,onClose:R.close,isDismissable:re,shouldCloseOnBlur:le,isKeyboardDismissDisabled:ne,shouldCloseOnInteractOutside:ae},I),L=l.useMemo(()=>{var g,S,X;return q({...f,disableAnimation:V,radius:(g=e==null?void 0:e.radius)!=null?g:"md",size:(S=e==null?void 0:e.size)!=null?S:"md",shadow:(X=e==null?void 0:e.shadow)!=null?X:"sm"})},[Ce(f),V,e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),pe=l.useCallback((g={},S=null)=>({..._(K,g),ref:Fe(S,j),"aria-describedby":v?N:void 0}),[K,v,N,R]),be=l.useCallback(()=>({ref:I,"data-slot":"base","data-open":D(v),"data-arrow":D($),"data-disabled":D(s),"data-placement":G(H||"top",c),..._(U,J,F),style:_(W.style,F.style,u.style),className:L.base({class:E==null?void 0:E.base}),id:N}),[L,v,$,s,H,c,U,J,F,W,u,N]),me=l.useCallback(()=>({"data-slot":"content","data-open":D(v),"data-arrow":D($),"data-disabled":D(s),"data-placement":G(H||"top",c),className:L.content({class:we(E==null?void 0:E.content,ie)})}),[L,v,$,s,H,c,E]);return{Component:de,content:m,children:h,isOpen:v,triggerRef:j,showArrow:$,portalContainer:se,placement:c,disableAnimation:V,isDisabled:s,motionProps:ce,getTooltipContentProps:me,getTriggerProps:pe,getTooltipProps:be}}var We=()=>Ae(()=>import("./index-Crbd1Tvi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>e.default),te=De((e,o)=>{const{Component:n,children:a,content:u,isOpen:f,portalContainer:r,Line truncated