1import{b as e,t as a,k as t,T as l}from"./CReN22Ao.js";import{_ as i}from"./Dbra0F9t.js";import{e as n,d as s,b as r,g as o,a as u,c as d}from"./CbZQ9-hE.js";import{u as c,B as v,e as _,a0 as m,j as p,g as k,q as f,O as b,a6 as h,M as g,h as E,i as A}from"./DoUmSlo_.js";import{_ as y}from"./BCo6x5W8.js";import"./c5PYU-0h.js";const C={class:"text-emphasis-high text-button-label-medium pl-4 group-hover:text-primary-hover-bg dark"},x=y(c({__name:"UiLink",props:{link_variant:{},link:{},disabled:{type:Boolean,default:!1},size:{default:"medium"},left_icon:{},right_icon:{},reduce_margin:{type:Boolean,default:!1},disableDarkMode:{type:Boolean,default:!1},label:{},removeMaxWidth:{type:Boolean,default:!1},underline:{type:Boolean,default:!0}},setup(c){const y=v("isDarkMode",_(()=>!1)),x=_(()=>y.value&&!c.disableDarkMode?"dark":""),I=v("linkSource",""),T=(e,a,t)=>{l.push({event:e,eventDimension1:a,activationLink:t})},N=_(()=>{if(!c.disabled)return c.link?.parsedUrl||c.link?.story?.url||c.link?.url}),j=_(()=>c.disabled?-1:0),z=_(()=>c.link_variant?"":n(c.disabled,c.underline)),B=_(()=>c.link_variant?"":s(c.size)),D=_(()=>{if(!c.link_variant)return"";const e=r(c.link_variant,c.disabled);return`${o(c.reduce_margin||!1,c.removeMaxWidth)} ${e}`}),H=_(()=>{const e=[u(),x.value];return c.link_variant?[...e,D.value].join(" "):[...e,B.value,z.value].join(" ")}),O=_(()=>({tabindex:j.value,"aria-disabled":c.disabled,href:N.value,target:c.link?.target})),L=_(()=>["z-10 text-inherit",c.link_variant?"":"pt-1"]),R=_(()=>[...L.value,"mr-2"]),V=_(()=>[...L.value,"ml-2"]),G=_(()=>d(c.size)),M=_(()=>["group rounded-full flex items-center justify-center shrink-0 w-[64px] h-[64px] bg-primary-default-text hover:bg-primary-hover-bg round-button"]),$=l=>{if(c.disabled)return void l.preventDefault();const i=l.currentTarget;if(!(i.dataset.shipmentButton||i.dataset.contactButton||i.dataset.helpButton||i.dataset.quoteButton))switch(I){case a.HERO_CTA:T(t.HERO_CTA_CLICK_EVENT,N.value||"#",a.HERO_CTA);case a.HEADER_NAVIGATION:const l=`${a.HEADER_NAVIGATION}_${c.label?.toLowerCase()}`;T(t.HEAD_NAVIGATION_CLICK_EVENT,l,a.HEADER_NAVIGATION);break;default:const i=e.getFullUrlFromLink(N.value||"");T(t.CTA_CLICK_EVENT,i,a.GENERIC_CTA)}};return(e,a)=>"round"===e.link_variant?(m(),p("a",g({key:0,class:"flex items-center"},O.value,{onClick:$}),[k("div",{class:b(M.value)},[f(i,{name:"play",size:"large",color:"round-button"})],2),k("span",C,[h(e.$slots,"default",{},void 0,!0)])],16)):(m(),p("a",g({key:1,class:H.value},O.value,{onClick:$}),[e.left_icon?(m(),E(i,{key:0,name:e.left_icon,size:G.value,color:"current",class:b(R.value)},null,8,["name","size","class"])):A("",!0),k("span",{class:b({"underline underline-offset-[5px]":e.underline&&!e.link_variant,"z-10":e.link_variant})},[h(e.$slots,"default",{},void 0,!0)],2),e.right_icon?(m(),E(i,{key:1,name:e.right_icon,size:G.value,color:"current",class:b(V.value)},null,8,["name","size","class"])):A("",!0)],16))}}),[["__scopeId","data-v-1aae1bd3"]]);export{x 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.