PageSourceSearch

https://www.agent-native.com/assets/SharePrimitives-BafNSAHi.js

js agent-native.com collected 2026-09-29 06:24:11 UTC 2,869 bytes, 1 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:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`938281d0-19b2-42c7-9e12-f7ce16d23190`,e._sentryDebugIdIdentifier=`sentry-dbid-938281d0-19b2-42c7-9e12-f7ce16d23190`)}catch{}})();import{a as e,t}from"./react-ByUEk2Rj.js";import{t as n}from"./jsx-runtime-CqOB2UpS.js";import{B as r,R as i,z as a}from"./docs-seo-dGKzbnVZ.js";import{g as o}from"./utils-BY32DKlt.js";import{t as s}from"./IconChevronDown-DpCHhVDf.js";import{t as c}from"./components-BBPG8RnS.js";var l=e(t(),1),u=n(),d=(0,l.forwardRef)(function({label:e=`Share`,"aria-label":t,title:n,...r},i){return(0,u.jsx)(c,{type:`button`,emphasis:`outline`,size:`compact`,elementRef:i,"aria-label":t??(typeof e==`string`?e:`Share`),title:n??(typeof e==`string`?e:void 0),...r,children:e})});d.displayName=`ShareTrigger`;function f(e,t){return typeof e==`string`?e:t}function p({value:e,label:t,description:n,disabled:r=!1,className:i,copyLabel:a=`Copy`,copiedLabel:s=`Copied`,onCopy:d}){let[p,m]=(0,l.useState)(!1),h=(0,l.useRef)(null);(0,l.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]);let g=async()=>{r||await d(e)!==!1&&(m(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>m(!1),1400))};return(0,u.jsxs)(`div`,{className:o(`flex items-center justify-between gap-3`,i),children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[t?(0,u.jsx)(`div`,{className:`text-sm font-medium`,children:t}):null,n?(0,u.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:n}):null]}),(0,u.jsx)(c,{type:`button`,emphasis:`outline`,size:`compact`,disabled:r,"aria-label":p?f(s,`Copied`):f(a,`Copy`),onPress:()=>void g(),className:`h-9 shrink-0`,children:p?s:a})]})}function m({children:e,label:t,fallbackLabel:n=`Share details`,defaultOpen:c=!1,open:f,onOpenChange:p,className:m,contentClassName:h}){let[g,_]=(0,l.useState)(c),v=f??g,y=typeof t==`string`?t:n;return(0,u.jsxs)(i,{open:v,onOpenChange:e=>{f===void 0&&_(e),p?.(e)},className:o(`overflow-hidden rounded-md border border-border`,m),children:[(0,u.jsx)(r,{asChild:!0,children:(0,u.jsx)(d,{label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`min-w-0 truncate`,children:t}),(0,u.jsx)(s,{"aria-hidden":`true`,className:o(`size-4 shrink-0 text-muted-foreground transition-transform`,v&&`rotate-180`)})]}),emphasis:`ghost`,size:`default`,"aria-label":y,title:y,"aria-expanded":v,className:`flex min-h-10 w-full items-center justify-between gap-3 px-3 py-2 text-left text-sm font-medium hover:bg-muted/50 focus-visible:ring-inset`})}),(0,u.jsx)(a,{className:o(`border-t border-border px-3 py-3`,h),children:e})]})}function h({label:e=`Share with agents`,...t}){return(0,u.jsx)(m,{...t,label:e,fallbackLabel:`Share with agents`})}export{p as n,d as r,h 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.