import{j as a,ak as u,ae as n}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{a as x}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import{D as f,p as h}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{u as j}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.js";import{d as g}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b74.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b7.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b2.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b3.js";const l=["São Paulo","Minas Gerais","Rio de Janeiro","Santa Catarina","Acre","Alagoas","Amapá","Amazonas","Bahia","Ceará","Distrito Federal","Espírito Santo","Goiás","Maranhão","Mato Grosso","Mato Grosso do Sul","Pará","Paraíba","Paraná","Pernambuco","Piauí","Rio Grande do Norte","Rio Grande do Sul","Rondônia","Roraima","Sergipe","Tocantins"];function D({onSelect:i,btnCancel:c=!1}){const{variaveisWA:t}=f(),{close:r}=h(),{language:m}=j(),[p,d]=x.useState([]);return a.jsx("div",{style:{position:"initial"},children:a.jsx("ul",{className:"overflow-hidden flex "+t.modalOptions.content2,children:a.jsxs("div",{className:t.modalOptions.content3,children:[a.jsx(u,{filtragem:o=>{let e=[];l.forEach(s=>{s!=null&&s.toUpperCase().includes(o.toUpperCase())&&e.push(s)}),d(e)},placeholder:"Pesquisar Estados",dependenciasADD:[l],btnClear:!0}),a.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+t.listagem.content1,style:{maxHeight:"calc(100vh - 63px)"},children:[c&&a.jsx(n,{content:m.cancelSelection,icon:a.jsx(g,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(""),r()},stroke:"1"}),p.map((o,e)=>a.jsx(n,{content:o,icon:a.jsx(a.Fragment,{}),setFunction:()=>{i(o),r()},stroke:"1"},e))]})]})})})}export{D as default};
