PageSourceSearch

https://agimon.ai/assets/Button-DDY4fULr.js

js agimon.ai collected 2026-10-05 02:53:38 UTC 4,652 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-Bh1tDfsg.js";import{t}from"./react-CES6V0Ih.js";import{n,r,t as i}from"./utils-Da5fnBUf.js";var a=e(t(),1),o=r(),s=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,c=n,l=(e,t)=>n=>{if(t?.variants==null)return c(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=s(t)||s(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return c(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},u=l(`ring-offset-background relative inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-80`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border-input bg-background border hover:bg-accent hover:text-accent-foreground`,outlineDestructive:`hover:bg-destructive/20 border-destructive bg-background text-destructive border`,outlineDark:`border-mono-2xlight bg-background-dark text-mono-2xlight border hover:bg-background-dark/80 hover:text-mono-3xlight`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,selected:`bg-primary/20 text-text hover:bg-primary/10`,ghost:`bg-transparent hover:bg-accent hover:text-accent-foreground`,dark:`bg-background-dark text-mono-2xlight hover:bg-background-dark/80 hover:text-mono-3xlight`,link:`text-primary underline-offset-4 hover:underline`,cta:`from-cta-from to-cta-to text-cta-text bg-linear-to-br hover:from-cta-from/90 hover:to-cta-to/90`,"cta-text":`bg-background from-cta-from to-cta-to inline-block bg-linear-to-tl bg-clip-text font-bold text-transparent hover:bg-accent hover:from-cta-from hover:to-cta-to`,rainbow:`animate-rainbow from-success via-info via-error via-accent to-success relative rounded-md border-0 bg-linear-to-r bg-[length:400%_400%] p-0.5`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,xlg:`h-16 rounded-md px-8`,icon:`h-10 w-10`,iconSm:`h-8 w-8`}},defaultVariants:{variant:`default`,size:`default`}});function d(e){return(0,o.jsxs)(`svg`,{className:i(`h-4 w-4 animate-spin`,e),fill:`none`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,o.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,o.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`})]})}function f(e){return a.isValidElement(e)&&e.type===a.Fragment}function p(e){let t=a.Children.only(e);if(f(t)){let e=a.Children.toArray(t.props.children);if(e.length===1&&a.isValidElement(e[0]))return e[0]}return t}var m=a.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,isLoading:s,disabled:c,children:l,...f},m)=>{let h=c||s,g=e=>{let t=e=>[s?(0,o.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:d()},`loading`):null,(0,o.jsx)(`span`,{className:i(s&&`opacity-0`,`inline-flex gap-1 items-center justify-center w-full`),children:e},`content`)];if(r){let n=p(l);return a.cloneElement(n,{className:i(e,n.props.className),ref:m,"aria-busy":s,"aria-disabled":h||void 0,"data-disabled":h?``:void 0,...f},t(n.props.children))}return(0,o.jsx)(`button`,{className:e,ref:m,disabled:h,"aria-busy":s,...f,children:t(l)})};return t===`cta-text`?(0,o.jsx)(`div`,{className:i(`from-cta-from to-cta-to text-primary-foreground inline-flex rounded-md bg-linear-to-br p-0.5 hover:from-cta-from/90 hover:to-cta-to/90`),children:(0,o.jsx)(`div`,{className:i(`bg-background inline-flex flex-1 rounded-sm`),children:g(i(u({variant:t,size:n,className:e}),`cursor-pointer`))})}):t===`rainbow`?(0,o.jsx)(`div`,{className:i(`animate-rainbow from-success via-info via-error via-accent to-success relative inline-flex overflow-hidden rounded-lg border-0 bg-linear-to-r bg-[length:400%_400%] p-0.5`,{sm:`h-9`,lg:`h-11`,xlg
1:`h-16`,icon:`h-10 w-10`,iconSm:`h-8 w-8`,default:`h-10`}[n||`default`],e),children:g(i(`bg-background-dark text-mono-2xlight cursor-pointer inline-flex h-full w-full items-center justify-center gap-2 rounded-xl border-none px-4 font-medium transition-colors outline-none`))}):g(i(u({variant:t,size:n,className:e})))});m.displayName=`Button`;export{l as n,m as t};

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.