PageSourceSearch

https://www.benchmarkminerals.com/_nuxt/BUcYM2cK.js

js benchmarkminerals.com collected 2026-09-24 08:45:05 UTC 3,077 bytes, 1 lines download raw bytes

1import{d as R,c as k,e as b,f as s,q as V,g as x,ab as D,h as n,o as w,j as y,v as W,t as L,k as $,n as N,r as U}from"#entry";import{_ as j}from"./nfD8S0Gd.js";import{_ as A}from"./DGU_sUJE.js";import{_ as M}from"./CjQ5foZP.js";import{u as S}from"./BBQto8qf.js";import{g as q}from"./LkJnDOPc.js";import"./gA5-mC8G.js";import"./Cpz3W-vy.js";import"./Yi14uwl3.js";const z={class:"relative h6 text-grey-900"},H=R({__name:"ButtonLink",props:{fields:{}},setup(r){const p=U(null),h=S(),F=()=>p.value?.open(),B=l=>{if(m.value){if(!t.value||!h.rudderAnalytics)return;const e=q(t.value),i=new URL(t.value).pathname.split("/").pop(),d=D(t.value);h.trackDownloads({file_id:e,file_name:i||t.value,file_type:d});return}if(c.value||o.value){l.preventDefault(),F();return}if(_.value&&t.value){l.preventDefault();const e=t.value.split("#")[1],i=document.getElementById(e||"");i&&(i.scrollIntoView({behavior:"smooth",block:"start"}),window.history.pushState(null,"",t.value))}},a=r,t=n(()=>{if(o.value||c.value)return"#";const l=a.fields.link,e=l?.cached_url,i=l?.anchor;if(!e)return;if(l?.linktype==="email"&&e&&!e.startsWith("http")||e&&g(e)&&!e.startsWith("http"))return`mailto:${e}`;const d=e.startsWith("http")?e:`/${e}`;return i?`${d}#${i}`:d}),v=n(()=>a.fields.link?.linktype==="email"||a.fields.link?.cached_url&&g(a.fields.link?.cached_url)),f=n(()=>t.value&&t.value.startsWith("http")&&!t.value.startsWith("https://www.benchmarkminerals.com")||a.fields.link?.target==="_blank"),E=n(()=>f.value&&t.value&&(t.value.includes("yout")||t.value.includes("vimeo"))),m=n(()=>!E.value&&!v.value&&t.value&&C(t.value)),_=n(()=>!f.value&&!v.value&&t.value&&t.value.includes("#")),c=n(()=>a.fields.flourish_embed&&a.fields.flourish_embed.length>0),o=n(()=>a.fields.hubspot_form&&a.fields.hubspot_form.length>0),u=n(()=>a.fields.modal&&a.fields.modal.length>0),I=n(()=>(a.fields.hubspot_form||[]).map(l=>({...l,with_transition:!0}))),C=l=>/\/[^/?#]+\.[^/?#]+(?=([?#]|$))/i.test(l),g=l=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l);return(l,e)=>r.fields.label?(w(),k(V,{key:0,href:s(t),target:s(m)||s(f)?"_blank":void 0,class:"inline-flex items-center paragraph-base font-semibold min-w-[100px] gap-1 group relative pt-1",onClick:e[0]||(e[0]=i=>(s(c)||s(o)||s(_)||s(u)||s(m))&&B(i))},{default:b(()=>[y("span",z,[W(L(r.fields.label)+" ",1),e[1]||(e[1]=y("span",{class:"absolute left-0 bottom-[-4px] w-full h-[1px] bg-yellow-600 scale-x-0 origin-left transition-transform duration-300 group-hover:scale-x-100"},null,-1))]),$(j,{name:"custom/chevron-right",class:"text-yellow-600 transition-transform duration-300 group-hover:translate-x-1 flex-shrink-0"}),s(c)||s(o)||s(u)?(w(),k(A,{key:0,ref_key:"modalRef",ref:p,width:s(o)||s(u)?768:1275,class:N(["[&_.layout-wrapper]:px-0! [&_>_div]:p-4",s(u)?"[&_>_div]:flex [&_>_div]:flex-col [&_>_div]:gap-6":""])},{default:b(()=>[$(s(M),{content:s(o)?s(I):s(u)?r.fields.modal:r.fields.flourish_embed},null,8,["content"])]),_:1},8,["width","class"])):x("",!0)]),_:1},8,["href","target"])):x("",!0)}}),Z=Object.assign(H,{__name:"DesignButtonLink"});export{Z as default};

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.