1import{c,j as e,p as n,M as a,F as r}from"./index-DH6psoju.js";import{P as f,a as u,b as y}from"./popover-CR4JbWB0.js";import{C as j}from"./dollar-sign-BPOKnbF9.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const b=c("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const C=c("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);function P({address:s,className:l,style:i,icon:p,hideIcon:d=!1,children:m,inheritStyles:x=!1,iconSize:g="h-4 w-4"}){const t=encodeURIComponent(s),h=async o=>{o.stopPropagation();try{await navigator.clipboard.writeText(s),r.success("Address copied")}catch{r.error("Could not copy address")}};return e.jsxs(f,{children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button",style:i,className:n("inline-flex items-center gap-1 text-left transition-colors",!x&&"text-muted-foreground hover:text-primary","underline-offset-2 hover:underline",l),onClick:o=>o.stopPropagation(),children:m??e.jsxs(e.Fragment,{children:[!d&&(p??e.jsx(a,{className:n("flex-shrink-0",g)})),e.jsx("span",{className:"truncate",children:s})]})})}),e.jsx(y,{className:"w-44 p-2",align:"start",onClick:o=>o.stopPropagation(),children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("a",{href:`https://maps.apple.com/?q=${t}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2 text-sm rounded-md hover:bg-accent transition-colors",onClick:o=>o.stopPropagation(),children:[e.jsx(C,{className:"h-4 w-4"}),"Apple Maps"]}),e.jsxs("a",{href:`https://maps.google.com/?q=${t}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2 text-sm rounded-md hover:bg-accent transition-colors",onClick:o=>o.stopPropagation(),children:[e.jsx(a,{className:"h-4 w-4"}),"Google Maps"]}),e.jsxs("button",{type:"button",onClick:h,className:"flex items-center gap-2 px-3 py-2 text-sm rounded-md hover:bg-accent transition-colors w-full text-left focus:outline-none",children:[e.jsx(j,{className:"h-4 w-4"}),"Copy address"]})]})})]})}export{P as A,b as C};
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.