import{j as e,_ as l}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{R as c}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import{a as t}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{L as x,r as E,A as i}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";const S=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e76.js")),[]));function b(){const{active:m}=x();return m&&e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(S,{})})}const y=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e77.js")),[]));function L(){return e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(y,{})})}const g=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e78.js")),[]));function C(){return e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(g,{})})}const A=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e79.js")),[]));function z(){return e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(A,{})})}const d=document.createElement("section");d.setAttribute("data-id","FilterChat");const u=document.createElement("section");u.setAttribute("data-id","Menu");const f=document.createElement("section");f.setAttribute("data-id","SearchCamp");const h=document.createElement("section");h.setAttribute("data-id","Notification_Inbox");const j=[{father:()=>i.getState().getSeletor("menu_whats"),children:u,type:"prepend"},{father:()=>i.getState().getSeletor("searchCamp"),children:f,type:"appendChild"},{father:()=>i.getState().getSeletor("trasferidos"),children:d,type:"appendChild"},{father:()=>i.getState().getSeletor("notification"),children:h,type:"insertAdjacentElement"}];function H(){const{active_inbox_notify:m}=E();return t.useEffect(()=>{j.map(({father:r,children:a,type:p})=>{var o,s,n;switch(p){case"prepend":(o=r())==null||o.prepend(a);break;case"insert":let _=r();_.innerHTML="",_.prepend(a);break;case"insertAdjacentElement":(s=r())==null||s.insertAdjacentElement("afterend",a);break;case"appendChild":default:(n=r())==null||n.appendChild(a);break}}),i.getState().getSeletor("chatList",r=>{new MutationObserver(p=>{p[0].addedNodes.length!==0&&setTimeout(()=>{var n;const{father:o,children:s}=j[1];(n=o())==null||n.prepend(s)},150)}).observe(r,{childList:!0})})},[]),e.jsxs(e.Fragment,{children:[c.createPortal(e.jsx(L,{}),u),c.createPortal(e.jsx(C,{}),f),c.createPortal(e.jsx(b,{}),d),c.createPortal(m?e.jsx(z,{}):null,h)]})}export{H as default};
