import{j as a,ax as u,ar as n}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f10.js";import{a as x}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f4.js";import{A as f,q as h}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f23.js";import{u as j}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f19.js";import{c as g}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f104.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f18.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f6.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f8.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f5.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f7.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f9.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f2.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f3.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 k({onSelect:r,btnCancel:c=!1}){const{variaveisWA:t}=f(),{close:i}=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:()=>{r(""),i()},stroke:"1"}),p.map((o,e)=>a.jsx(n,{content:o,icon:a.jsx(a.Fragment,{}),setFunction:()=>{r(o),i()},stroke:"1"},e))]})]})})})}export{k as default};
