import{j as e,_ as c,X as M,K as S,I as C,p as E}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as j,o as x,B as P,P as D,m as h,n as I,K as R,L as $}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{a as _,u as d,c as F}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{u as y}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e68.js";import{a as i,d as L}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{a as O}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e39.js";import{U}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e69.js";import{B}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e70.js";import{L as V}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e36.js";import{a as q}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";const K=i.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e63.js")),[]));function W(){return e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(K,{})})}const Z=i.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e64.js")),[]));function H(){return e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(Z,{})})}const X=L.div`
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    overflow: hidden;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-property: color, background-color;
    transition-property: color, background-color;

    &:hover,
    &:focus,
    &:active {
        background-color: ${s=>s.terciaria};
        box-shadow: 0px 1px 6px 0px ${s=>s.terciaria};
        color: #111b21 !important;
    }
`,G=L.span`
    display: flex;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    line-height: 21px;
    overflow-wrap: break-word;
    font-weight: 600;
`,J=(s,t,n)=>({backgroundImage:`linear-gradient(to right, ${s}, ${n})`,backgroundSize:"110%",color:"var(--background-default) !important",border:`1px solid ${t}`}),Q=s=>({color:"var(--aba-name-color)",border:`1px solid ${s}`}),Y=s=>({border:"1px solid rgba(255, 255, 255, 0.32)",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset",backgroundColor:s}),ee=i.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e65.js")),[]));function se({id:s,aba_System:t,type:n,name:o,color:r}){return e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(ee,{id:s,aba_System:t,type:n,name:o,color:r})})}function g({nome:s,tam:t,id:n,type:o,isMove:r=!1,primaria:a="var(--primaria)",secundaria:b="var(--secundaria)",terciaria:l="var(--terciaria)"}){const[u,f]=i.useState(!1),{activeTab:m,setActiveTab:N}=j(),{open:T}=x(),{variaveisWA:k}=P(),w=p=>{p.stopPropagation();let v=!1;typeof n=="number"&&(v=!0);const A=document.querySelector(`section[data-id="Nav-Tabs"] div[aba-id="${o}_${n}"]`);T(e.jsx(se,{id:n,aba_System:v,type:o,name:s,color:a}),{placement:"bottom"},A,10,{mounted:()=>{f(!0)},desmouted:()=>{f(!1)}})},z=()=>r||m.id===n||u?J(a,b,l):Q(l);return e.jsx("div",{"aba-id":`${o}_${n}`,children:e.jsx(X,{terciaria:l,primaria:a,className:"mx-1 cursor-pointer rounded-xl group",style:z(),children:e.jsxs("div",{className:"px-2 py-[3px] flex items-center gap-1",onClick:()=>{N({id:n,type:o}),D()},children:[e.jsx(G,{children:s}),t!==void 0&&!u&&e.jsx("span",{className:"abaTam border border-[#ffffff52] border-solid rounded-full p-1 shadow-lg text-[12px] group-hover:hidden",style:m.id===n?Y(a):{backgroundColor:a},children:e.jsx("em",{className:m.id===n?"var(--background-default) font-bold":"text-[#ffffffd4] ",children:t})}),e.jsx("span",{className:k.modalOptions.animChildren+` ${u?"block x11t6m9b":"hidden"} group-hover:block pulse p-[1.5px]`,onClick:p=>w(p),children:e.jsx(O,{size:20})})]})})})}const ae=i.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e66.js")),[]));function te(){return e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(ae,{})})}const ne=()=>{const{language:s}=d.getState();C({type:"Info",message:s.adcionarEtiquetaSoEstaDisponivel,position:"top-right"})},oe=(s,t,n=!0)=>{const{open:o}=x.getState(),r=t,a=t.parentElement;o(s,{placement:"bottom"},r,12,{mounted:()=>{a.classList.add("_ajv9"),n&&r.classList.add("x11t6m9b")},desmouted:()=>{a.classList.remove("_ajv9"),r.classList.remove("x11t6m9b")}})},re=()=>{const{language:s}=d(),{headerContents:t}=y(),{user:n}=h(),{open:o}=I(),{label:r}=_(),a=U();return e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"lg:tooltip lg:tooltip-left m-auto","data-tip":s.addFunnil,onClick:()=>t.activeTab==="tab"?a():ne(),children:e.jsx("span",{className:"pulse cursor-pointer",children:e.jsx(M,{className:"text-[var(--primaria)]"})})}),e.jsx("div",{className:"lg:tooltip  lg:tooltip-left","data-tip":s.menuTabs_title,onClick:l=>oe(e.jsx(te,{}),l.currentTarget,!1),children:e.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] bg-[var(--ico-border-color)] p-2 text-[var(--ico-color)]",children:e.jsx(V,{size:20})})}),!n.estado&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:tooltip  lg:tooltip-left","data-tip":s.logar,onClick:l=>o(e.jsx(R,{})),children:e.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] bg-[var(--ico-border-color)] p-2",children:e.jsx(q,{size:20,className:"text-red-500 user-icon-circle-man"})})}),r.rewards.length!==0&&e.jsx("span",{className:"ml-1",children:e.jsx(B,{})}),e.jsx("span",{className:"ml-1",children:e.jsx(S,{btnPremium:s.btnPremium,checkout:r.checkout})})]})]})};function ie(){const{user:s}=h(),{label:t}=_(),n=()=>t.banner?!!(s.estado&&(t.banner.view==="PREMIUM"||t.banner.view==="ALL")||!s.estado&&(t.banner.view==="FREE"||t.banner.view==="ALL")):!1;return e.jsx("nav",{"data-id":"options-header",children:e.jsxs("div",{className:"flex items-center",children:[n()&&e.jsx("div",{className:"m-3",children:e.jsx("img",{className:"w-[200px] h-[50px]",src:t.banner.img,alt:"banner-promocional"})}),e.jsx(re,{})]})})}const le=i.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e67.js")),[]));function ce(){return e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(le,{})})}const de=()=>{const{active:s,getMyAtendimento:t}=$(),{systemTabs:n}=j(),{language:o}=d();return e.jsx("div",{className:"flex items-center aba-divisoria",children:n.map(a=>{if(!(!s&&a.id===5))return a.id===5?a.visibility&&e.jsx(g,{nome:o[a.name],id:a.id,type:"tab",tam:t().length},a.id):a.visibility&&e.jsx(g,{nome:o[a.name],id:a.id,type:"tab"},a.id)})})};function ue(){const{open:s}=x(),{language:t}=d(),{isBusiness:n}=F(),{headerContents:o}=y();return e.jsx("section",{"data-id":"Nav-Tabs",children:e.jsxs("div",{className:"header_container flex animate__animated animate__fadeInDown px-4 gap-4 z-[110]",children:[e.jsxs("div",{className:"flex items-center flex-auto overflow-auto menuTabs scroll_bar",children:[e.jsx(de,{}),n&&e.jsx("div",{className:"flex flex-col p-1 pl-2 cursor-pointer lg:tooltip lg:tooltip-right","data-tip":t.filtroFunil,onClick:a=>s(e.jsx(ce,{}),{placement:"bottom"},a.target),children:e.jsx("div",{className:"funnel_NavTabs pulse",children:e.jsx(E,{size:24})})}),o.activeTab==="tab"?e.jsx(W,{}):e.jsx(H,{})]}),e.jsx("div",{className:"flex items-center justify-end flex-none",children:e.jsx(ie,{})})]})})}const ye=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"}));export{g as A,ye as i};
