PageSourceSearch

https://counterscale.bedrock-engineer.workers.dev/assets/button-DM0j4EBi.js

js counterscale.bedrock-engineer.workers.dev collected 2026-10-03 08:06:51 UTC 3,382 bytes, 1 lines download raw bytes

1import{r as s,j as v}from"./index-Djyvt97q.js";import{c as R,a as E}from"./utils-B01XIlQe.js";function b(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function C(...n){return t=>{let e=!1;const o=n.map(r=>{const i=b(r,t);return!e&&typeof i=="function"&&(e=!0),i});if(e)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():b(n[r],null)}}}}function D(...n){return s.useCallback(C(...n),n)}var V=s.forwardRef((n,t)=>{const{children:e,...o}=n,r=s.Children.toArray(e),i=r.find(O);if(i){const l=i.props.children,u=r.map(m=>m===i?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:m);return v.jsx(p,{...o,ref:t,children:s.isValidElement(l)?s.cloneElement(l,void 0,u):null})}return v.jsx(p,{...o,ref:t,children:e})});V.displayName="Slot";var p=s.forwardRef((n,t)=>{const{children:e,...o}=n;if(s.isValidElement(e)){const r=k(e);return s.cloneElement(e,{...S(o,e.props),ref:t?C(t,r):r})}return s.Children.count(e)>1?s.Children.only(null):null});p.displayName="SlotClone";var w=({children:n})=>v.jsx(v.Fragment,{children:n});function O(n){return s.isValidElement(n)&&n.type===w}function S(n,t){const e={...t};for(const o in t){const r=n[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?e[o]=(...u)=>{i(...u),r(...u)}:r&&(e[o]=r):o==="style"?e[o]={...r,...i}:o==="className"&&(e[o]=[r,i].filter(Boolean).join(" "))}return{...n,...e}}function k(n){let t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,e=t&&"isReactWarning"in t&&t.isReactWarning;return e?n.ref:(t=Object.getOwnPropertyDescriptor(n,"ref")?.get,e=t&&"isReactWarning"in t&&t.isReactWarning,e?n.props.ref:n.props.ref||n.ref)}const h=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,x=R,P=(n,t)=>e=>{var o;if(t?.variants==null)return x(n,e?.class,e?.className);const{variants:r,defaultVariants:i}=t,l=Object.keys(r).map(a=>{const c=e?.[a],f=i?.[a];if(c===null)return null;const d=h(c)||h(f);return r[a][d]}),u=e&&Object.entries(e).reduce((a,c)=>{let[f,d]=c;return d===void 0||(a[f]=d),a},{}),m=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((a,c)=>{let{class:f,className:d,...j}=c;return Object.entries(j).every(N=>{let[g,y]=N;return Array.isArray(y)?y.includes({...i,...u}[g]):{...i,...u}[g]===y})?[...a,f,d]:a},[]);return x(n,l,m,e?.class,e?.className)},W=P("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),A=s.forwardRef(({className:n,variant:t,size:e,asChild:o=!1,...r},i)=>{const l=o?V:"button";return v.jsx(l,{className:E(W({variant:t,size:e,className:n})),ref:i,...r})});A.displayName="Button";export{A as B,V as S,D as u};

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.