PageSourceSearch

https://fizen.io/assets/button-CIkiOrI1.js

js fizen.io collected 2026-10-03 22:44:12 UTC 1,642 bytes, 1 lines download raw bytes

1import{u as p,r as t}from"./chunk-4N6VE7H7-CuSen5_J.js";import{c as u,m as b,d as j}from"./factory-0ubWXTo4.js";import{c as C}from"./stack-d98Ndiiv.js";import{S as N}from"./spinner-H3a5xqXJ.js";const o=u("span");o.displayName="Span";const x=u("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});x.displayName="AbsoluteCenter";const S=c=>c?"":void 0,f=p.forwardRef(function(l,i){const{spinner:s=t.jsx(N,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:e="start",children:n,text:a,visible:d=!0,...r}=l;return d?a?t.jsxs(o,{ref:i,display:"contents",...r,children:[e==="start"&&s,a,e==="end"&&s]}):s?t.jsxs(o,{ref:i,display:"contents",...r,children:[t.jsx(x,{display:"inline-flex",children:s}),t.jsx(o,{visibility:"hidden",display:"contents",children:n})]}):t.jsx(o,{ref:i,display:"contents",...r,children:n}):n});f.displayName="Loader";const{useRecipeResult:v,usePropsContext:R}=C({key:"button"}),g=p.forwardRef(function(l,i){const s=R(),e=p.useMemo(()=>b(s,l),[s,l]),n=v(e),{loading:a,loadingText:d,children:r,spinner:h,spinnerPlacement:y,...m}=n.props;return t.jsx(u.button,{type:"button",ref:i,...m,"data-loading":S(a),disabled:a||m.disabled,className:j(n.className,e.className),css:[n.styles,e.css],children:!e.asChild&&a?t.jsx(f,{spinner:h,text:d,spinnerPlacement:y,children:r}):r})});g.displayName="Button";export{g as B,o as S};

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.