1import{$ as e,J as t}from"./components-DaDH3s2k.js";import{t as n}from"./jsx-runtime-DwfYXGE3.js";import{i as r,n as i,u as a}from"./analytics-DLn12qC-.js";var o=e(t());function s(e,t){if(!(!e||!t))try{let n=new URL(e);if(t===`cta_install_shopify`&&n.origin===`https://apps.shopify.com`&&/^\/retail-cloud-connect\/?$/.test(n.pathname)&&!/review/i.test(n.hash)||t===`cta_book_demo`&&n.origin===`https://calendly.com`&&n.pathname.startsWith(`/nimstrata/`))return t}catch{}}var c=n();function l({buttonLocation:e,eventName:t,onClick:n,rel:l,target:u=`_blank`,...d}){let[f,p]=(0,o.useState)(d.href),m=s(d.href,t);(0,o.useEffect)(()=>{p(m&&d.href?a(d.href):d.href)},[m,d.href]);let h=t=>{if(n?.(t),!t.defaultPrevented){if(m&&d.href&&(t.currentTarget.href=a(d.href)),m===`cta_install_shopify`){r(e);return}m===`cta_book_demo`&&i(e)}},g=u===`_blank`?l??`noopener noreferrer`:l;return(0,c.jsx)(`a`,{...d,href:f,target:u,rel:g,onClick:h})}export{s as n,l 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.