import{r as u,j as a}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777.js";import{al as x,n as f}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277723.js";import{u as h}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277720.js";import{ax as j,ar as n}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277711.js";import{c as g}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777105.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27778.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27777.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277719.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27774.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27773.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27772.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277710.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27776.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27779.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:e,btnCancel:c=!1}){const{variaveisWA:t}=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 "+t.modalOptions.content2,children:a.jsxs("div",{className:t.modalOptions.content3,children:[a.jsx(j,{filtragem:o=>{let s=[];l.forEach(i=>{i?.toUpperCase().includes(o.toUpperCase())&&s.push(i)}),d(s)},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:()=>{e(""),r()},stroke:"1"}),p.map((o,s)=>a.jsx(n,{content:o,icon:a.jsx(a.Fragment,{}),setFunction:()=>{e(o),r()},stroke:"1"},s))]})]})})})}export{k as default};
