import{c as u,a as m,i as t,b as c,t as _,I as b,r as k}from"./index-6Jqoo2rk.js";import{S as C,I as S}from"./iconTsx-Cr8T7ZIv.js";const v="_Popup_nckf9_1",$="_Scrollable_nckf9_17",y="_Name_nckf9_22",E="_Grid_nckf9_30",N="_Icon_nckf9_37",n={Popup:v,Scrollable:$,Name:y,Grid:E,Icon:N},T=_("<div>"),h=_("<div><div>"),w=Object.keys(b),G=()=>{const[e,s]=u(""),[p,l]=u(!1);let r=0;const f=o=>{s(o),l(!1),self.clearTimeout(r)},I=o=>{navigator.clipboard.writeText(o).then(()=>{l(!0),self.clearTimeout(r),r=self.setTimeout(()=>{l(!1)},2e3)})};return(()=>{const o=h(),a=o.firstChild;return m(o,n.Popup),m(a,n.Name),t(a,()=>e()||"none",null),t(a,()=>p()&&" - Copied!",null),t(o,c(C,{class:n.Scrollable,get children(){const i=T();return m(i,n.Grid),t(i,w.map(d=>c(M,{icon:d,onMouseEnter:[f,d],onClick:[I,d]}))),i}}),null),o})()},M=e=>c(S,{class:n.Icon,icon:e.icon,onMouseEnter:e.onMouseEnter,onClick:e.onClick});function x(){const e=document.createElement("div");document.body.append(e);const s=k(()=>c(G,{}),e);window.closeIcons=()=>{s(),e.remove()}}export{x as showIconLibrary};
//# sourceMappingURL=trigger-C0ejYN1J.js.map
