const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.DfWeY0R4.js","assets/js/88292db1-b0bf-4020-84e8-c67e7f95ec5b.D7NY-xPU.js"])))=>i.map(i=>d[i]);
import{b as p,_ as u}from"./5b821acd-2cb2-41cd-a334-1fb4c2edd833.D1O8x7cn.js";import{j as e,r as s}from"./88292db1-b0bf-4020-84e8-c67e7f95ec5b.D7NY-xPU.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{ab as x}from"./3f821edb-14ca-4d30-9704-2f6c7293724f.BPUefdEF.js";import"./a497bd40-65e0-4826-98e3-d7cb4830e030.D3LkOPxB.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.DfWeY0R4.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};
