import{A as c}from"./PencilOutline-DC4h4i4m.chunk.mjs";import{b as u}from"./index-CClfw3S6.chunk.mjs";import{_}from"./createElementId-DhjFt1I9-Cdw8hg_s.chunk.mjs";import{j as t,o as a,k as e,m as p,l as m,D as d,n as f,t as o,f as g,e as b,w as y}from"./runtime-dom.esm-bundler-CnPoR0UW.chunk.mjs";const C={name:"NcActionLink",mixins:[c],inject:{isInSemanticMenu:{from:u,default:!1}},props:{href:{type:String,required:!0,validator:n=>{try{return new URL(n)}catch{return n.startsWith("#")||n.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:n=>n&&(!n.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(n)>-1)},title:{type:String,default:null}}},I=["role"],S=["download","href","aria-label","target","title","role"],h={key:0,class:"action-link__longtext-wrapper"},w={class:"action-link__name"},L=["textContent"],M=["textContent"],U={key:2,class:"action-link__text"};function j(n,l,r,x,k,i){return a(),t("li",{class:"action",role:i.isInSemanticMenu&&"presentation"},[e("a",{download:r.download,href:r.href,"aria-label":n.ariaLabel,target:r.target,title:r.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:i.isInSemanticMenu&&"menuitem",onClick:l[0]||(l[0]=(...s)=>n.onClick&&n.onClick(...s))},[p(n.$slots,"icon",{},()=>[e("span",{"aria-hidden":"true",class:f(["action-link__icon",[n.isIconUrl?"action-link__icon--url":n.icon]]),style:d({backgroundImage:n.isIconUrl?`url(${n.icon})`:null})},null,6)],!0),n.name?(a(),t("span",h,[e("strong",w,o(n.name),1),l[1]||(l[1]=e("br",null,null,-1)),e("span",{class:"action-link__longtext",textContent:o(n.text)},null,8,L)])):n.isLongText?(a(),t("span",{key:1,class:"action-link__longtext",textContent:o(n.text)},null,8,M)):(a(),t("span",U,o(n.text),1)),m("",!0)],8,S)],8,I)}const E=_(C,[["render",j],["__scopeId","data-v-32f01b7a"]]),$={name:"NcActionRouter",mixins:[c],inject:{isInSemanticMenu:{from:u,default:!1}},props:{to:{type:[String,Object],required:!0}}},v=["role"],A={key:0,class:"action-router__longtext-wrapper"},N={class:"action-router__name"},R=["textContent"],W=["textContent"],q={key:2,class:"action-router__text"};function O(n,l,r,x,k,i){const s=g("RouterLink");return a(),t("li",{class:"action",role:i.isInSemanticMenu&&"presentation"},[b(s,{"aria-label":n.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:i.isInSemanticMenu&&"menuitem",title:n.title,to:r.to,onClick:n.onClick},{default:y(()=>[p(n.$slots,"icon",{},()=>[e("span",{"aria-hidden":"true",class:f(["action-router__icon",[n.isIconUrl?"action-router__icon--url":n.icon]]),style:d({backgroundImage:n.isIconUrl?`url(${n.icon})`:null})},null,6)],!0),n.name?(a(),t("span",A,[e("strong",N,o(n.name),1),l[0]||(l[0]=e("br",null,null,-1)),e("span",{class:"action-router__longtext",textContent:o(n.text)},null,8,R)])):n.isLongText?(a(),t("span",{key:1,class:"action-router__longtext",textContent:o(n.text)},null,8,W)):(a(),t("span",q,o(n.text),1)),m("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,v)}const V=_($,[["render",O],["__scopeId","data-v-87267750"]]);export{E as N,V as a};
//# sourceMappingURL=NcActionRouter-CvDVCQiQ-D1TdSJsa.chunk.mjs.map
