import{j as a}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{a as u}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{h as x,u as f}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{u as h}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{ar as j,am as n}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import{c as g}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028112.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.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-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02838.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0289.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02810.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.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 B({onSelect:e,btnCancel:c=!1}){const{variaveisWA:s}=x(),{close:r}=f(),{language:m}=h(),[p,d]=u.useState([]);return a.jsx("div",{style:{position:"initial"},children:a.jsx("ul",{className:"overflow-hidden flex "+s.modalOptions.content2,children:a.jsxs("div",{className:s.modalOptions.content3,children:[a.jsx(j,{filtragem:o=>{let t=[];l.forEach(i=>{i?.toUpperCase().includes(o.toUpperCase())&&t.push(i)}),d(t)},placeholder:"Pesquisar Estados",dependenciasADD:[l],btnClear:!0}),a.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+s.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:()=>{e(""),r()},stroke:"1"}),p.map((o,t)=>a.jsx(n,{content:o,icon:a.jsx(a.Fragment,{}),setFunction:()=>{e(o),r()},stroke:"1"},t))]})]})})})}export{B as default};
