import{j as e,a0 as m,V as s,bm as x,a2 as h,$ as u}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e410.js";import{a as g}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e44.js";import{u as j}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e419.js";import{a as f}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e431.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e418.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e46.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e48.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e4.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e45.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e47.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e423.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e49.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e42.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e43.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e436.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e437.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e438.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e439.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e440.js";function R(){const{language:a}=j(),{getBackup:o,keys:r,setActiveKey:i,exportBackup:c,clearState:n}=f();g.useEffect(()=>(o(),()=>{n()}),[]);const l=r.map(t=>e.jsx("div",{children:e.jsx("label",{htmlFor:t.tag,children:e.jsxs("div",{className:"flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded",children:[e.jsxs("div",{className:"flex align-center items-center m-2",children:[e.jsx("span",{className:"mr-2",children:t.icon}),e.jsx("span",{children:a[t.nome]})]}),e.jsx("div",{className:"pulse",children:e.jsx(m,{id:t.tag,switchUpdate:()=>i(t.tag,!t.checked),estado:t.checked})})]})})},t.tag)),p=e.jsxs("div",{className:"grid gap-5 w-[535px]",children:[e.jsx(s,{children:a.selectBackup}),e.jsx("div",{className:"flex flex-col gap-2 overflow-x-auto",style:{maxHeight:"calc(100vh - 250px)"},children:r.length>0?l:e.jsx(x,{})}),e.jsx(h,{name:a.exportBk,funcao:c})]}),d=e.jsxs("div",{className:"grid gap-5 max-h-[90vh] overflow-y-auto overflow-x-hidden",children:[e.jsx(s,{children:a.selectBackup}),e.jsx("div",{className:"my-6 p-4 border-dotted border rounded-2xl text-center",children:e.jsx(u,{weight:"500",children:a.noneBackupData})})]});return r.length===1?d:p}export{R as default};
