PageSourceSearch

https://cy325-napcat.hf.space/webui/assets/chunk-OPTZHMJX-xX9Mkd_C.js

js cy325-napcat.hf.space collected 2026-10-04 16:47:17 UTC 4,222 bytes, 1 lines download raw bytes

1import{t as N,f as V,g as F,h as R,w as H,i as z,j as O,l as S,m as w,n as W,o as q,p as G,q as K,v as U,x as J,y as Q,z as X,B as P,D as Y}from"./index-DwG8CNol.js";import{j as s,r as M}from"./react-vendor-jWT2yUdV.js";var I=N({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...V],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground
1/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),Z="flex mx-1 text-current self-center",ee=a=>s.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...a,children:[s.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),s.jsx("path",{d:"M15 3h6v6"}),s.jsx("path",{d:"M10 14L21 3"})]});const ne="/webui/assets/logo-C2MGgWT2.png";function ae(a,t){let{elementType:n="a",onPress:o,onPressStart:i,onPressEnd:l,onClick:r,role:u,isDisabled:c,...f}=a,b={};n!=="a"&&(b={role:"link",tabIndex:c?void 0:0});let p=F()||R();r&&typeof r=="function"&&u!=="button"&&H("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","useLink");const x=e=>{p&&(r==null||r(e)),o==null||o(e)};let{focusableProps:g}=z(a,t),{pressProps:d,isPressed:h}=O({onPress:x,onPressStart:i,onPressEnd:l,isDisabled:c,ref:t}),k=S(f,{labelable:!0,isLink:n==="a"}),$=w(g,d),v=W(),y=q(a);return{isPressed:h,linkProps:w(k,y,{...$,...b,"aria-disabled":c||void 0,"aria-current":a["aria-current"],onClick:e=>{var m;(m=d.onClick)==null||m.call(d,e),!p&&r&&r(e),!v.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&G(e.currentTarget,e)&&a.href&&(e.preventDefault(),v.open(e.currentTarget,e,a.href,a.routerOptions))}})}}function re(a){var t,n,o,i;const l=K(),[r,u]=U(a,I.variantKeys),{ref:c,as:f,children:b,anchorIcon:p,isExternal:x=!1,showAnchorIcon:g=!1,autoFocus:d=!1,className:h,onPress:k,onPressStart:$,onPressEnd:v,onClick:y,...e}=r,m=f||"a",C=J(c),L=(n=(t=a==null?void 0:a.disableAnimation)!=null?t:l==null?void 0:l.disableAnimation)!=null?n:!1,{linkProps:j}=ae({...e,onPress:k,onPressStart:$,onPressEnd:v,onClick:y,isDisabled:a.isDisabled,elementType:`${f}`},C),{isFocused:D,isFocusVisible:A,focusProps:B}=Q({autoFocus:d});x&&(e.rel=(o=e.rel)!=null?o:"noopener noreferrer",e.target=(i=e.target)!=null?i:"_blank");const T=M.useMemo(()=>I({...u,disableAnimation:L,className:h}),[X(u),L,h]),E=M.useCallback(()=>({ref:C,className:T,"data-focus":P(D),"data-disabled":P(a.isDisabled),"data-focus-visible":P(A),...w(B,j,e)}),[T,D,A,B,j,e]);return{Component:m,children:b,anchorIcon:p,showAnchorIcon:g,getLinkProps:E}}var _=Y((a,t)=>{const{Component:n,children:o,showAnchorIcon:i,anchorIcon:l=s.jsx(ee,{className:Z}),getLinkProps:r}=re({ref:t,...a});return s.jsx(n,{...r(),children:s.jsxs(s.Fragment,{children:[o,i&&l]})})});_.displayName="HeroUI.Link";var oe=_;export{oe as a,ne as l};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.