const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.UZoXxFn5.js","assets/js/e7346a76-3ac9-4642-9a05-24052cb38e26.AWGCnt0w.js"])))=>i.map(i=>d[i]);
import{d as p,_ as u}from"./b886c28f-dca4-4057-803f-4a7c3f302ed0.CP77sw3d.js";import{j as e,r as s}from"./e7346a76-3ac9-4642-9a05-24052cb38e26.AWGCnt0w.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{ai as x}from"./ca8ebd39-3977-4db5-99d1-49620e75de2a.Byb7olEZ.js";import"./8fd48243-adcf-4e6b-84c4-2a04558d2b64.gdgo7XGP.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.UZoXxFn5.js"),__vite__mapDeps([0,1])));function A({id:o}){const i=j(t=>t.getContainer(o))(t=>t.emojiArea),r=d(t=>t.open),a=p(t=>t.theme),m="facebook",n=a?"dark":"light",c=t=>{r(e.jsx(s.Suspense,{fallback:e.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:e.jsx(E,{emojiStyle:m,theme:n,onEmojiClick:l=>h(o,l.emoji),width:"auto",height:"60vh"})}),{placement:i.position},t.target,10,{mounted:()=>t.target.setAttribute("style","color: green !important"),desmouted:()=>t.target.removeAttribute("style")})};return e.jsx("div",{className:"relative",style:{right:"32px",top:"3px"},children:e.jsx("span",{className:"cursor-pointer pulse absolute text-[var(--icon)]",onClick:t=>c(t),children:e.jsx(x,{className:"h-7 w-7"})})})}export{A as default};
