import{j as e}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{a as m}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{u as x}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{a as h}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a536.js";import{b1 as u,D as s,bB as g,H as j,E as f}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a59.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a510.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a520.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a544.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a545.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a546.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a547.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a548.js";function R(){const{language:a}=x(),{getBackup:o,keys:r,setActiveKey:i,exportBackup:c,clearState:n}=h();m.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(u,{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(g,{})}),e.jsx(j,{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(f,{weight:"500",children:a.noneBackupData})})]});return r.length===1?d:p}export{R as default};
