1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[532],{1619:function(e,t,r){Promise.resolve().then(r.bind(r,2857))},2857:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r(7437),a=r(8185),s=r(5049),o=r(9733),i=r(7138),c=r(1663),l=r(2265);function d(){let e="/api/actions/transfer-sol",[t,r]=(0,l.useState)("");return(0,l.useEffect)(()=>(r(new URL(e,window.location.href).toString()),()=>{r(new URL(e,window.location.href).toString())}),[]),(0,n.jsxs)("section",{id:"action",className:"container space-y-12 bg-slate-50 py-8 dark:bg-transparent md:py-12 lg:py-24",children:[(0,n.jsxs)("div",{className:"mx-auto flex max-w-[58rem] flex-col items-center space-y-6 text-center",children:[(0,n.jsx)("h2",{className:"font-heading text-3xl leading-[1.1] sm:text-3xl md:text-6xl",children:"Transfer Native SOL"}),(0,n.jsx)("p",{className:"max-w-[85%] leading-normal text-muted-foreground sm:text-lg sm:leading-7",children:"The following example demonstrates how to transfer native SOL to using an Action."})]}),(0,n.jsx)(a.Zb,{className:"group-hover:border-primary size-[400px] rounded overflow-hidden text-center flex items-center justify-center w-min mx-auto",children:(0,n.jsx)(s.T,{url:e,color:"white",background:"black",size:400,className:"rounded-lg overflow-clip min-w-[400px]"})}),(0,n.jsx)("div",{className:"mx-auto text-center md:max-w-[58rem]",children:(0,n.jsxs)("p",{className:"leading-normal text-muted-foreground sm:text-lg sm:leading-7",children:["View the"," ",(0,n.jsx)(o.z,{variant:"link",asChild:!0,children:(0,n.jsx)(i.default,{href:"".concat(c.J.links.github,"/src/app").concat(e,"/route.ts"),target:"_blank",children:"source code for this sample Action"})})," ","on GitHub."]})}),(0,n.jsxs)(a.Zb,{className:"group-hover:border-primary",children:[(0,n.jsx)(a.Ol,{children:(0,n.jsx)(a.ll,{className:"space-y-3",children:"Action Endpoint"})}),(0,n.jsx)(a.aY,{className:"space-y-2",children:(0,n.jsx)("p",{className:"text-muted-foreground",children:(0,n.jsx)(i.default,{href:t,target:"_blank",className:"underline hover:text-primary",children:t})})})]})]})}},5049:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(7437),a=r(5388),s=r(1262),o=r(2265);function i(e){let{url:t,className:r,background:i="transparent",color:c,size:l=400}=e,d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=(0,a.E)({link:new URL(t,window.location.href)},"solana:");console.log("encodedUrl:",e.toString());let r=(0,s.Wg)(e,l,i,c);d.current&&!d.current.innerHTML&&r.append(d.current)},[t]),(0,n.jsx)("div",{ref:d,className:r})}},9733:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(7437),a=r(2265),s=r(1538),o=r(2218),i=r(9354);let c=(0,o.j)("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 underline !text-base !px-0"},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"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,size:o,asChild:l=!1,...d}=e,u=l?s.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(c({variant:a,size:o,className:r})),ref:t,...d})});l.displayName="Button"},8185:function(e,t,r){"use strict";r.d(t,{Ol:function(){return i},Zb:function(){return o},aY:function(){return l},ll:function(){return c}});var n=r(7437),a=r(2265),s=r(9354);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("!rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});
1o.displayName="Card";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});i.displayName="CardHeader";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});c.displayName="CardTitle",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})}).displayName="CardDescription";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});l.displayName="CardContent",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})}).displayName="CardFooter"},1663:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n={name:"Solana Actions and Blinks",description:"",url:"https://",ogImage:"https://tx.shadcn.com/og.jpg",links:{twitter:"https://twitter.com/nickfrosty",github:"https://github.com/solana-developers/solana-actions/tree/main/examples/next-js",docs:"https://solana.com/docs/advanced/actions"}}},9354:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(4839),a=r(6164);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))}}},function(e){e.O(0,[231,605,497,971,23,744],function(){return e(e.s=1619)}),_N_E=e.O()}]);
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.