import{j as e}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{a as m}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{u as x}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{a as h}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02841.js";import{S as u,a as s,br as g,c as j,b as f}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0284.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0283.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02844.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02845.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02846.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02847.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02848.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";function H(){const{language:t}=x(),{getBackup:o,keys:r,setActiveKey:c,exportBackup:i,clearState:n}=h();m.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(u,{id:a.tag,switchUpdate:()=>c(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(g,{})}),e.jsx(j,{name:t.exportBk,funcao:i})]}),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(f,{weight:"500",children:t.noneBackupData})})]});return r.length===1?d:p}export{H as default};
