import{j as a}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67155.js";import{r as u}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715.js";import{ad as x,n as f}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671523.js";import{u as h}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67154.js";import{al as j,af as n}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67157.js";import{c as g}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715106.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67153.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67159.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671510.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67152.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67158.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671520.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67156.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 O({onSelect:e,btnCancel:c=!1}){const{variaveisWA:t}=x(),{close:r}=f(),{language:m}=h(),[d,p]=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)}),p(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"}),d.map((o,s)=>a.jsx(n,{content:o,icon:a.jsx(a.Fragment,{}),setFunction:()=>{e(o),r()},stroke:"1"},s))]})]})})})}export{O as default};
