PageSourceSearch

https://www.veed.io/frontend-assets/dashboard-frontend/dashboard-static/button-DmK2WZxn.js

js veed.io collected 2026-09-24 08:24:45 UTC 5,051 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7a58fa93a7a0f4bfe4323bd10ecc06c7f61b8211`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6ac0172b-0787-4065-a2f0-f44515370851`,e._sentryDebugIdIdentifier=`sentry-dbid-6ac0172b-0787-4065-a2f0-f44515370851`)}catch{}})();import{s as e}from"./rolldown-runtime-BhwcDRyc.js";import{n as t,t as n}from"./jsx-runtime-CAwAWffi.js";import{t as r}from"./utils-5okETexV.js";import{t as i}from"./dist-T42PAS4I.js";import{t as a}from"./spinner-C44-z2ZQ.js";var o=e(t(),1);function s(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function c(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():s(e[t],null)}}}}function l(...e){return o.useCallback(c(...e),e)}var u=n();function d(e){let t=p(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e,a=o.Children.toArray(r),s=a.find(_);if(s){let e=s.props.children,r=a.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,u.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var f=d(`Slot`);function p(e){let t=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=y(n),i=v(r,n.props);return n.type!==o.Fragment&&(i.ref=t?c(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m=Symbol(`radix.slottable`);function h(e){let t=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=m,t}var g=h(`Slottable`);function _(e){return o.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===m}function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b=i(`relative flex items-center justify-center gap-2 whitespace-nowrap rounded-full font-medium text-sm ring-offset-background-base transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border-brand focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:pointer-events-none`,{variants:{variant:{primary:`bg-action-brand text-text-on-brand hover:bg-action-brand-hover active:bg-action-brand-hover`,secondary:`bg-action-subtle text-text-default hover:bg-action-subtle-hover active:bg-action-subtle-hover`,"secondary-on-base":`bg-action-subtle-on-base text-text-default hover:bg-action-subtle-on-base-hover active:bg-action-subtle-on-base-hover`,ghost:`bg-action-x-subtle text-text-default hover:bg-action-x-subtle-hover active:bg-action-x-subtle-hover`,"ghost-on-base":`bg-action-x-subtle text-text-default hover:bg-action-subtle-hover active:bg-action-subtle-hover`,emphasis:`bg-action-brand-subtle text-text-on-brand-subtle hover:bg-action-brand-subtle-hover active:bg-action-brand-subtle-hover`,destructive:`bg-action-destructive text-text-invert hover:bg-action-destructive-hover active:bg-action-destructive-hover`,transparent:`bg-action-transparent text-text-default hover:bg-action-transparent-hover active:bg-action-transparent-hover`,upgrade:`bg-action-upgrade text-text-on-upgrade hover:bg-action-upgrade-hover active:bg-action-upgrade-hover`},size:{default:`h-10 px-4 py-3`,sm:`h-8 px-3 py-2`,icon:`h-10 w-10 p-3`,"icon-sm":`h-8 w-8 p-2`,"icon-xs":`h-6 w-6 p-1`}},defaultVariants:{variant:`primary`,size:`default`}}),x=i(`absolute inset-0 flex items-center justify-center`,{variants:{variant:{primary:`text-text-on-brand`,secondary:`text-text-default`,"secondary-on-base":`text-text-default`,ghost:`text-text-default`,"ghost-on-base":`text-text-default`,emphasis:`text-text-on-brand`,destructive:`text-text-invert`,transparent:`text-text-default`,upgrade:`text-text-invert`}},defaultVariants:{variant:`primary`}}),S=o.forwardRef(({className:e,variant:t,size:n,children:i,disabled:o=!1,asChild:s=!1,loading:c=!1,legacyRounding:l=!1,...d},p)=>(0,u.jsxs)(s?f:`button`,{className:r(b({variant:t,size:n,className:e}),c&&`text-transparent`,l&&`rounded-lg`),ref:p,disabled:c||o,...d,children:[(0,u.jsx)(g,{children:i}),c?(0,u.jsx)(`div`,{className:r(x({variant:t})),children:(0,u.jsx)(a,{size:n==="default"||!n?`sm`:`xs`,className:`stroke-icon-brand text-inherit`})}):null]}));S.displayName=`Button`;export{l as a,c as i,f as n,d as r,S as t};
2//# sourceMappingURL=button-DmK2WZxn.js.map

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.