import{j as e}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1165.js";import{r as m}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb116.js";import{u as x}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1164.js";import{a as h}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11629.js";import{S as u,o as s,bq as g,r as j,p as f}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1167.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1163.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1162.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11623.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1169.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11610.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11620.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1168.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11635.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11636.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11637.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11638.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11639.js";import"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1166.js";function K(){const{language:r}=x(),{getBackup:o,keys:a,setActiveKey:i,exportBackup:c,clearState:n}=h();m.useEffect(()=>(o(),()=>{n()}),[]);const l=a.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:r[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:r.selectBackup}),e.jsx("div",{className:"flex flex-col gap-2 overflow-x-auto",style:{maxHeight:"calc(100vh - 250px)"},children:a.length>0?l:e.jsx(g,{})}),e.jsx(j,{name:r.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:r.selectBackup}),e.jsx("div",{className:"my-6 p-4 border-dotted border rounded-2xl text-center",children:e.jsx(f,{weight:"500",children:r.noneBackupData})})]});return a.length===1?d:p}export{K as default};
