import{C as s}from"./CopyLogo-abmwTAvG.js";import{_ as d,i as _,r as m,o as i,c as r,a,j as y,t as f,h as u,b as x,A as b}from"./app-DWPMZhx6.js";const C={props:{text:{type:[String,Number]},html:{type:String}},components:{CopyIcon:s},setup(p){const e=_("create-notification"),{toClipboard:t}=b();function o(n){try{t(n),e({type:"success",message:"Copied to clipboard!",duration:3})}catch(c){e({type:"danger",title:"Error",message:c.response})}}return{CopyIcon:s,copy:o}}},D={class:"pf-c-description-list__description"},h={class:"pf-c-description-list__text copyLinkDD pf-u-text-wrap"},k=["innerHTML"];function g(p,e,t,o,n,c){const l=m("copy-icon");return i(),r("dd",D,[a("div",h,[y(f(t.text)+" ",1),t.html?(i(),r("span",{key:0,innerHTML:t.html},null,8,k)):u("",!0),a("button",{class:"pf-c-button pf-m-inline pf-m-link pf-u-color-100 copyLink",type:"button",alt:"copy",title:"copy",onClick:e[0]||(e[0]=N=>o.copy(t.text))},[x(l)])])])}const L=d(C,[["render",g]]);export{L as D};
