import{j as e,a2 as m,X as s,bz as x,a4 as h,a1 as u}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f10.js";import{a as g}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f4.js";import{u as j}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f19.js";import{a as f}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f31.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f18.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f6.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f8.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f5.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f7.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f23.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f9.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f2.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f3.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f36.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f37.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f38.js";import"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f39.js";function R(){const{language:t}=j(),{getBackup:o,keys:r,setActiveKey:i,exportBackup:c,clearState:n}=f();g.useEffect(()=>(o(),()=>{n()}),[]);const l=r.map(a=>e.jsx("div",{children:e.jsx("label",{htmlFor:a.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:a.icon}),e.jsx("span",{children:t[a.nome]})]}),e.jsx("div",{className:"pulse",children:e.jsx(m,{id:a.tag,switchUpdate:()=>i(a.tag,!a.checked),estado:a.checked})})]})})},a.tag)),p=e.jsxs("div",{className:"grid gap-5 w-[535px]",children:[e.jsx(s,{children:t.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:t.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:t.selectBackup}),e.jsx("div",{className:"my-6 p-4 border-dotted border rounded-2xl text-center",children:e.jsx(u,{weight:"500",children:t.noneBackupData})})]});return r.length===1?d:p}export{R as default};
