1import{d as B,p as w,c as r,o as C,e as x,ay as A,u as o,h as I,O as g,$ as _}from"./BoIX-Qb1.js";import{u as $}from"./9UOZEFMz.js";const z=B({__name:"LinkItem",props:{blok:{type:Object,required:!0},idPrefix:{type:String,default:""},renderId:{type:Boolean,default:!0},parentIsHovered:{type:Boolean,default:!1},disableLink:{type:Boolean,default:!1},sectionTheme:{type:String,default:""},forceAnchor:{type:Boolean,default:!1}},emits:["handleClick"],setup(t,{emit:c}){const e=t,d=c,n=w(),{url:a}=g(),b=r(()=>e.blok.url.tel?"a":e.blok.url.tray?"button":(e.forceAnchor||e.blok.url.url&&e.blok.url.url.includes("http"),"a")),s=r(()=>e.blok.url.url&&e.blok.url.url!=="#"&&!e.blok.url.tel),k=$("$gYQWBF8tcd"),f=r(()=>{const l=[];return e.blok.url.tel&&l.push("font-medium"),l}),u=r(()=>({plain:"plain",primary:"primary",secondary:"plain",tertiary:"plain",block:"block"})[e.blok.link_type]||"plain"),m=r(()=>e.blok.btn_size||"default"),p=r(()=>{let l={"show-icon":!!e.blok.show_btn_arrow||e.blok.link_type==="primary","show-underline":!!e.blok.show_underline,title:e.blok.url.title===""||e.blok.url.title===void 0?e.blok.link_title:e.blok.url.title};if(e.blok.url.tray&&(l={...l,"aria-label":e.blok.svg_icon_name}),e.blok.url.tel&&(l={...l,href:`tel:${e.blok.url.url}`}),s.value){const i=e.blok.url.url&&e.blok.url.url.includes("http");l={...l,rel:i?e.blok.url.rel:void 0,target:i?e.blok.url.target:void 0,href:a(e.blok.url.url)}}return e.renderId&&(l={...l,id:e.blok.id?e.blok.id:`${e.idPrefix}-${k.value}`}),l}),h=()=>{n.addActiveEl("zendesk","modal"),n.removeActiveEl("sidePanel")},y=()=>{if(e.blok.url.url==="#"){if(e.blok.url.tray)n.addActiveEl(e.blok.url.tray,"sidePanel");else if(e.blok.url.modal)n.addActiveEl(e.blok.url.modal,"modal");else if(e.blok.url.livechat&&e.blok.url.livechat==="1")h();else if(e.blok.id){const l=document.querySelector(`[data-scroll-id="${e.blok.id}"]`);l&&l.scrollIntoView({behavior:"smooth",block:"center"})}}d("handleClick")};return(l,i)=>{const v=_;return t.blok.url?(C(),x(v,A({key:0},o(p),{"btn-color":"currentColor","btn-size":o(m),"btn-type":o(u),class:["link-item flex h-full items-start",o(f)],"component-type":o(b),"force-reload":t.forceAnchor,label:t.blok.url_text,"parent-is-hovered":t.parentIsHovered,"section-theme":t.sectionTheme,"show-underline":o(u)==="tertiary",to:!t.disableLink&&o(s)?o(a)(t.blok.url.url):void 0,onClick:y}),null,16,["btn-size","btn-type","class","component-type","force-reload","label","parent-is-hovered","section-theme","show-underline","to"])):I("",!0)}}});export{z as _};
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.