PageSourceSearch

https://www.infobae.com/pf/dist/components/combinations/laws_module.chunk.js?d=4447&mxId=00000000

js infobae.com collected 2026-09-24 07:37:45 UTC 23,703 bytes, 1 lines download raw bytes

1"use strict";(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[615],{321:function(e,t,l){l.r(t),l.d(t,{default:function(){return j}});var s=l(9894),a=l.n(s),n=l(809),o=l(4321),i=l(6222),r=l(1700),c=l(3806),u=l(8522),d=l(5129),p=l(7312),f=l(6252),m=l(4766);const h=({position:e="",lawsPeople:t=[],filterOverrides:l={},handleReset:s})=>{const{isMobile:a,isDesktop:o}=(0,u.A)(),r=o?10:4,[h,v]=(0,n.useState)(r||4),w={afirmativo:(0,f.uq)("images/icons/afirmatives.svg"),negativo:(0,f.uq)("images/icons/negatives.svg"),ausente:(0,f.uq)("images/icons/absent.svg"),abstencion:(0,f.uq)("images/icons/abstention.svg"),"sin-votar":(0,f.uq)("images/icons/not-vote.svg")},j=()=>{h<t.length&&v(e=>e+r)},b=()=>a?0===t.length?(0,m.jsx)(d.A,{}):(0,m.jsx)("div",{className:"law-profile-laws-cards",children:0===t.length?null:t.slice(0,h).map((t,l)=>{const{titulo:s="",fecha:a,presidente:n="",voto:o="",resultado:i="",id_ley:r=""}=t||{},c=(0,p.su)(o);return(0,m.jsxs)("div",{className:"law-profile-laws-card",children:[(0,m.jsxs)("p",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Ley:"}),(0,m.jsx)("a",{className:"law-profile-laws-card-item-name",href:`/leyes/${e}/ley${r}/`,children:s})]}),(0,m.jsxs)("p",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Fecha de votación:"}),a?.split("-")?.reverse()?.join("-")]}),(0,m.jsxs)("p",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Presidencia:"}),n]}),(0,m.jsxs)("p",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Cargo:"}),e]}),(0,m.jsxs)("div",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Voto:"}),(0,m.jsx)("img",{className:"icon",src:w?.[c],alt:"icon-vote",loading:"lazy"})]}),(0,m.jsxs)("div",{className:"law-profile-laws-card-item",children:[(0,m.jsx)("span",{children:"Resultado de la votación:"})," ",(0,m.jsxs)("div",{className:`button-result ${i.toLowerCase()}`,children:[(0,m.jsx)("img",{alt:`icon-result-${c}`,className:"icon",loading:"lazy",src:w?.[i.toLowerCase()]}),(0,m.jsx)("p",{className:"icon-text",children:i})]})]})]},`${s}-${l}`)})}):(0,m.jsxs)("div",{className:"law-profile-laws-table",children:[(0,m.jsxs)("div",{className:"law-profile-laws-row title",children:[(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Ley"}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Fecha de votación"}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Presidencia"}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Cargo"}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Voto"}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:"Resultado de la votación"})]}),0===t.length?(0,m.jsx)(d.A,{}):t.slice(0,h).map((t,l)=>{const{titulo:s="",fecha:a="",presidente:n="",voto:o="",resultado:i="",id_ley:r=""}=t||{},c=(0,p.su)(o);return(0,m.jsxs)("div",{className:"law-profile-laws-row",children:[(0,m.jsx)("a",{className:"law-profile-laws-text",href:`/leyes/${e}/ley${r}/`,children:s}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:a?.split("-")?.reverse()?.join("-")}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:n}),(0,m.jsx)("p",{className:"law-profile-laws-text",children:e}),(0,m.jsx)("div",{className:"law-profile-laws-text",children:(0,m.jsx)("img",{className:"icon",src:w?.[c],alt:"icon-vote",loading:"lazy"})}),(0,m.jsx)("div",{className:"law-profile-laws-text",children:(0,m.jsxs)("div",{className:`button-result ${i.toLowerCase()}`,children:[(0,m.jsx)("img",{className:"icon",src:w?.[i.toLowerCase()],alt:`icon-result-${c}`,loading:"lazy"}),(0,m.jsx)("p",{className:"icon-text",children:i})]})})]},`${s}-${l}`)})]});return(0,m.jsxs)("div",{className:"law-profile-laws-ctn",children:[(0,m.jsx)("p",{className:"law-profile-laws-title",children:(0,m.jsx)("span",{children:"Historial de votaciones"})}),(0,m.jsx)(c.A,{overrides:l,resetFunction:s,isDatesVersion:!0}),b(),h>=t.length||0===t.length?null:(0,m.jsxs)("button",{className:"law-profile-button",onClick:j,children:["Ver más ",(0,m.jsx)(i.$n,{width:"10",height:"10"})]})]})};h.propTypes={filterOverrides:a().object,handleReset:a().func,lawsPeople:a().array,position:a().string};var v=h;const w=({customFields:e={},data:t={}})=>{const{showLawProfile:l=!0}=e||{};if(!l)return null;const{requestUri:s=""}=(0,o.useFusionContext)()||{},a=s?.split("/")?.[2]||"",{profileData:[c]=[],lawsPeople:u=[],names:d=[],presidents:p=[],votes:f=[]}=t||{},{bloque:h="",diputado:w="",id1:j="",id_senador:b="",partido_alianza:x,provincia:g="",senador:y=""}=c||{}
1,[N,C]=(0,n.useState)(!1),[V,O]=(0,n.useState)(null),[k,F]=(0,n.useState)(""),[S,$]=(0,n.useState)(""),[D,P]=(0,n.useState)(""),[L,T]=(0,n.useState)(null),[E,q]=(0,n.useState)(null),A=(0,n.useMemo)(()=>[{id:"name",label:"Buscar por ley",placeholder:null!==V?"":"Buscar por ley",type:"especial-select",value:V,setValue:O,options:d,classContainer:null!==V?" field-select-has-content":"",setInputValue:F},{id:"dateStart",label:"Fecha desde",placeholder:"Fecha desde",type:"date",value:S,setValue:$,minDate:"1993-01-01"},{id:"dateFinish",label:"Fecha hasta",placeholder:"Fecha hasta",type:"date",value:D,setValue:P,minDate:""!==S?S:"1993-01-01"},{id:"president",label:"Presidencia",placeholder:"Presidencia",type:"select",value:L,setValue:T,options:p,classContainer:null!==L?" field-select-has-content":""},{id:"vote",label:"Voto",placeholder:"Voto",type:"select",value:E,setValue:q,options:f,classContainer:null!==E?" field-select-has-content":""}],[V,d,S,D,L,p,E,f]),I={showFilter:!0,title:"",options:A},R=e=>new Date(e.split("/")?.reverse()?.join("-"));return(0,m.jsxs)("div",{className:"law-profile",children:[(0,m.jsxs)("a",{className:"law-profile-content-back",href:"/leyes/",children:[(0,m.jsx)(i.i3,{})," Volver a todos"]}),(0,m.jsxs)("div",{className:"law-profile-ctn",children:[(0,m.jsxs)("div",{className:"law-profile-container",children:[j||b?N?(0,m.jsx)("img",{className:"law-profile-vote-default",src:r,alt:"img-default"}):(0,m.jsx)("img",{alt:"vote-img",className:"law-profile-vote-image",onError:()=>C(!0),src:b||y?`https://storage.googleapis.com/arc-buckets/leyes/senadores/fotos_id_senador/${b}.gif`:`https://storage.googleapis.com/arc-buckets/leyes/diputados/fotos-id1/${j}.jpg`}):null,(0,m.jsxs)("div",{className:"law-profile-detail-item img-ctn",children:[(0,m.jsx)("p",{className:"law-profile-detail-name",children:w||y}),(0,m.jsx)("p",{className:"law-profile-detail-position",children:a.toUpperCase()})]})]}),(0,m.jsxs)("div",{className:"law-profile-detail-ctn",children:[(0,m.jsxs)("div",{className:"law-profile-detail-item",children:[(0,m.jsx)("p",{className:"law-profile-detail-item-name",children:"Provincia:"}),(0,m.jsx)("p",{className:"law-profile-detail-item-value",children:g})]}),(0,m.jsxs)("div",{className:"law-profile-detail-item",children:[(0,m.jsx)("p",{className:"law-profile-detail-item-name",children:"Bloque:"}),(0,m.jsx)("p",{className:"law-profile-detail-item-value",children:h||x})]})]})]}),(0,m.jsx)(v,{filterOverrides:I,handleReset:()=>{O(null),F(""),$(""),P(""),T(null),q(null)},lawsPeople:(()=>{let e=u;return""!==k&&null!==V?e=e.filter(e=>e.titulo.toLowerCase().includes(k.toLowerCase())):null!==V&&(e=e.filter(e=>e.titulo===V?.values)),null!==E&&(e=e.filter(e=>e.voto.toLowerCase()===E.values.toLowerCase())),null!==L&&(e=e.filter(e=>e.presidente.toLowerCase()===L.values.toLowerCase())),""!==S&&""!==D?e=e.filter(e=>R(e.fecha)>=new Date(S)&&R(e.fecha)<=new Date(D)):""!==S?e=e.filter(e=>R(e.fecha)>=new Date(S)):""!==D&&(e=e.filter(e=>R(e.fecha)<=new Date(D))),e||[]})(),position:a})]})};w.propTypes={customFields:a().shape({showLawProfile:a().bool.tag({defaultValue:!0,name:"Show law profile"})}),data:a().object};var j=w},3551:function(e,t,l){l.r(t),l.d(t,{default:function(){return d}});l(809);var s=l(9894),a=l.n(s),n=l(6222),o=l(6252),i=l(4766);const r=({detail:e={}})=>{const{titulo:t="",resultado:l="",fecha:s=""}=e||{};return(0,i.jsxs)("div",{className:"law-title-content",children:[(0,i.jsxs)("a",{className:"law-title-content-back",href:"/leyes/",children:[(0,i.jsx)(n.i3,{})," Volver a todos"]}),(0,i.jsxs)("div",{className:"law-title-content-title-ctn",children:[(0,i.jsx)("p",{className:"law-title-content-title-text",children:t}),(0,i.jsxs)("div",{className:"law-title-content-title-container",children:[(0,i.jsxs)("p",{className:"law-title-content-title-date",children:["Votación el: ",s]}),(0,i.jsxs)("div",{className:"law-title-content-title-result-ctn",children:[(0,i.jsx)("p",{className:"law-title-content-title-result-text",children:"Resultado ="}),(0,i.jsxs)("div",{className:`law-title-content-title-result-button ${l.toLowerCase()}`,children:[(a=l,"AFIRMATIVO"===a?(0,i.jsx)("img",{src:(0,o.uq)("images/icons/lawsAfirmative.svg"),alt:"AFIRMATIVO"}):(0,i.jsx)("img",{src:(0,o.uq)("images/icons/lawsNegative.svg"),alt:"NEGATIVO"}))," ",l]})]})]})]})]});var a};
1r.propTypes={detail:a().object,lawData:a().array};var c=r;const u=({customFields:e={},lawsData:t={}})=>{const{showLawTitle:l=!0}=e||{};if(!l)return null;const{lawData:s=[],lawDetail:[a]=[]}=t||{};return s?(0,i.jsx)("div",{className:"law-title",children:(0,i.jsx)(c,{lawData:s,detail:a})}):null};u.propTypes={customFields:a().shape({showLawTitle:a().bool.tag({defaultValue:!0,name:"Show law title"})}),lawsData:a().oneOf([a().bool,a().object])};var d=u},636:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var s=l(809),a=l(9894),n=l.n(a),o=l(3806),i=l(1700),r=l(4766);const c=({item:e={},blockName:t=""})=>{const{bloque:l="",diputado:a="",id1:n="",id_ley:o="",id_senador:c="",provincia:u="",senador:d="",voto:p=""}=e||{},[f,m]=(0,s.useState)(!1),h=p.toLowerCase()||"";return(0,r.jsxs)("a",{className:`law-votes-vote ${h}`,href:c||d?`/leyes/senadores/perfil/${c}/`:`/leyes/diputados/perfil/${n}/`,children:[(0,r.jsxs)("div",{className:"law-votes-vote-detail",children:[f?(0,r.jsx)("img",{className:"law-votes-vote-default",src:i,alt:"img-default"}):(0,r.jsx)("img",{alt:"vote-img",className:"law-votes-vote-image",onError:()=>m(!0),src:c||d?`https://storage.googleapis.com/arc-buckets/leyes/senadores/fotos_id_senador/${c}.gif`:`https://storage.googleapis.com/arc-buckets/leyes/diputados/fotos-id1/${n}.jpg`}),(0,r.jsxs)("div",{className:"law-votes-vote-ctn",children:[(0,r.jsx)("p",{className:"law-votes-vote-name",children:a||d}),(0,r.jsx)("p",{className:"law-votes-vote-party",children:t||l}),(0,r.jsx)("p",{className:"law-votes-vote-province",children:u})]})]}),(0,r.jsx)("div",{className:`law-votes-vote-icon ${h}`})]},o)};c.propTypes={item:n().object,blockName:n().string};var u=c,d=l(8522),p=l(6222),f=l(5129);const m=({data:e=[],blockVotes:t=[]})=>{const{isMobile:l=!0,isTablet:a}=(0,d.A)(),n=l?5:a?8:33,[o,i]=(0,s.useState)(n||5),c=(e="")=>(t.find(t=>t.bloque===e)||[]).shortName||"",m=()=>{o>=e.length?i(e.length):i(e=>e+n)};return(0,s.useEffect)(()=>{i(l?5:a?8:33)},[l,a]),(0,r.jsxs)("div",{className:"law-votes-ctn",children:[(0,r.jsx)("div",{className:"law-votes-container",children:0===e.length?(0,r.jsx)(f.A,{}):e.slice(0,o).map((e,t)=>(0,r.jsx)(u,{item:e,blockName:c(e?.bloque)},`${e.id_ley}-${t}`))}),o>=e.length?null:(0,r.jsxs)("button",{className:"law-votes-button",onClick:m,children:["Ver más ",(0,r.jsx)(p.$n,{width:"10",height:"10"})]})]})};m.propTypes={blockVotes:n().array,data:n().array};var h=m;const v=({blockVotes:e=[]})=>{const t=(e,t,l)=>{if(0===e)return null;const s=100*e/l;return(0,r.jsx)("div",{className:`law-votes-block-table-row-vote ${t}`,style:{width:`${s}%`},children:e})},l=e=>{const{afirmativo:l=0,ausente:s=0,negativo:a=0,abstencion:n=0,total:o=0}=e||{};return(0,r.jsxs)(r.Fragment,{children:[t(l,"afirmative",o),t(a,"negative",o),t(s,"absent",o),t(n,"abstention",o)]})};return(0,r.jsxs)("div",{className:"law-votes-block-table",children:[(0,r.jsx)("p",{className:"law-votes-block-table-title",children:"Votación por bloque"}),0===e.lenght?null:e.sort((e,t)=>t.total-e.total).map((e,t)=>{const{bloque:s="",shortName:a="",total:n=0}=e||{},o=0===t?" first":"";return(0,r.jsxs)("div",{className:`law-votes-block-table-row${o}`,children:[(0,r.jsxs)("div",{className:"law-votes-block-table-row-datail",children:[(0,r.jsx)("p",{className:"law-votes-block-table-row-datail-name",children:a||s}),(0,r.jsxs)("p",{className:"law-votes-block-table-row-datail-total",children:["(",n,")"]})]}),(0,r.jsx)("div",{className:"law-votes-block-table-row-votes",children:l(e)})]},s)})]})};v.propTypes={blockVotes:n().array};var w=v;const j=({customFields:e={},lawsData:t={}})=>{const{showLawVotes:l=!0,title:a="Detalle de votos"}=e||{};if(!l)return null;const{blockVotes:n=[],deputies:i=[],provinces:c=[],votes:u=[],lawData:d=[],senadors:p=[]}=t,f=(()=>{const e=[];for(const t in n){const l=n[t]?.bloque||"",s={label:l,values:l};e.some(e=>e.values===s.values)||e.push(s)}return e||[]})(),[m,v]=(0,s.useState)(null),[j,b]=(0,s.useState)(null),[x,g]=(0,s.useState)(null),[y,N]=(0,s.useState)(null),[C,V]=(0,s.useState)(null),[O,k]=(0,s.useState)("legislators"),F={options:(0,s.useMemo)(()=>[0===i.length?{id:"Senador",label:"Senador",placeholder:"Senador",type:"select",value:j,setValue:b,options:p,classContainer:null!==j?" field-select-has-content":""}:{id:"Diputado",label:"Diputado",placeholder:"Diputado",type:"select",value:m,setValue:v,options:i,classContainer:null!==m?" field-select-has-content":""},{id:"Bloque",label:"Bloque",placeholder:"Bloque",type:"select",value:x,setValue:g,options:f,classContainer:null!==x?" field-select-has-content":""},{id:"Voto",label:"Voto",placeholder:"Voto",type:"select",value:y,setValue:N,options:u,classContainer:null!==y?" field-select-has-content":""},{id:"Provincia",label:"Provincia",placeholder:"Provincia",type:"select",value:C,setValue:V,options:c,classContainer:null!==C?" field-select-has-content":""}],[j,m,C,y,x,p,i,f,u,c]),showFilter:!0},S=()=>{let e=d;return null!==j&&(e=e.filter(e=>e.senador===j.values)),null!==m&&(e=e.filter(e=>e.diputado===m.values)),null!==x&&(e=e.filter(e=>e.bloque===x.values)),null!==y&&(e=e.filter(e=>e.voto===y.values)),null!==C&&(e=e.filter(e=>e.provincia===C.values)),e},$=e=>{if("embed-size"===e.data.type&&"parliament-chart-click"===e.data.event){const{selected:t}=e.data,l=u.find(e=>t.includes(e.values));l&&N(l)}},D=e=>O===e?" active":"",P=()=>{g(null),v(null),V(null),b(null),N(null)};return(0,s.useEffect)(()=>{try{if("undefined"==typeof document||"undefined"==typeof window)return;return window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}}catch(e){console.log("Error en useEffect de Laws/LawVotes:",e?.message||e||"Error no especificado")}},[]),(0,r.jsxs)("div",{className:"law-votes",children:[(0,r.jsxs)("div",{className:"law-votes-title-ctn",children:[(0,r.jsx)("p",{className:"law-votes-title-text",children:a}),(0,r.jsxs)("div",{className:"law-votes-title-buttons",children:[(0,r.jsx)("button",{className:`law-votes-title-button${D("legislators")}`,onClick:()=>k("legislators"),children:"Voto legisladores"}),(0,r.jsx)("button",{className:`law-votes-title-button${D("blocks")}`,onClick:()=>k("blocks"),children:"Voto por bloque"})]})]}),"legislators"!==O?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(w,{blockVotes:n})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{overrides:F,resetFunction:P}),(0,r.jsx)(h,{data:S(),blockVotes:n})]})]})};j.propTypes={customFields:n().shape({showLawVotes:n().bool.tag({defaultValue:!0,name:"Show LawVotes"}),title:n().string.tag({defaultValue:"Detalle de votos",name:"Title"})}),lawsData:n().oneOf([n().bool,n().object])};var b=j},8958:function(e,t,l){l.r(t),l.d(t,{default:function(){return w}});var s=l(809),a=l(9894),n=l.n(a),o=l(1950),i=l(5921),r=l(6222),c=l(3227),u=l(4766);function d(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,s)}return l}function p(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(l),!0).forEach(function(t){f(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):d(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function f(e,t,l){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var s=l.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const m=e=>{const{classContainer:t="",classInput:l="",classSelect:a="",handleBlur:n=()=>{},id:o,isAutoSized:i=!1,label:r="",name:d,onChange:f,onChangeInput:m=()=>{},options:h=[],placeholder:v="",span:w="",value:j}=e,b={label:j?.label||v,value:j?.value||j?.values||""},x=(0,s.useRef)(),g=(0,s.useRef)(),y=(0,s.useRef)(0),N=(0,s.useRef)(),C=(0,s.useRef)(),[V,O]=(0,s.useState)(!1),[k,F]=(0,s.use
1State)(""),[S,$]=(0,s.useState)(b),[D,P]=(0,s.useState)(0),L=e=>e.filter(e=>{const t="string"==typeof e.label?e.label:e.name;return t?.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(k?.toLowerCase())>-1}),T=e=>{const t=e?e.value:j,l=h.findIndex(e=>e.value===t)||0;y.current=l>0?l:0,P(l>0?l:0)},E=e=>{g.current&&!g.current.contains(e.target)&&(O(!1),F(""))},q=e=>{38===e.keyCode&&e.preventDefault(),"Enter"===e.key&&(m(e.target.value),N.current.blur())},A=()=>{S?.label!==v&&F("")},I=e=>{const t=x?.current?.scrollTop,l=x?.current?.querySelector('[name="hovered"]')?.offsetTop||0,s=l-t>120;return"up"===e&&l-t<30?x?.current?.scrollTo(0,t-30):"down"===e&&s?x?.current?.scrollTo(0,t+30):null},R=`${a}field-select-input  ${l??""} `,_=`field-select field-select-outlined${S?.value?" field-select-has-content":""}${w?" outlined-error":""}${t}`,z={filteringSearch:L,getPosToValue:T,handleOptionClick:e=>{f(e,d),O(!1),$(e),F(""),N.current.blur(),T(),m("")},onChange:f,optionHover:D,options:h,selectedOption:S,classSelect:a};(0,s.useEffect)(()=>{$(h.find(e=>e.value===j)??b),m(""),T()},[h]),(0,s.useEffect)(()=>{try{if("undefined"==typeof document||"undefined"==typeof window)return;return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)}catch(e){console.log("Error en useEffect de Laws/Filter:",e?.message||e||"Error no especificado")}},[g]),(0,s.useEffect)(()=>{if("undefined"==typeof document||"undefined"==typeof window)return;const e=h.findIndex(e=>e.value===j)??0;return x?.current?.scrollTo(0,30*e-120)},[V]),(0,s.useEffect)(()=>{T()},[]);return(0,u.jsxs)("div",{className:_,onClick:()=>(T(),O(!V),V&&F("")),onFocus:()=>N?.current?.focus(),onKeyDown:e=>{const t=e.keyCode;if(V&&[8,9,13,38,40].includes(t)){const l=L(h);O(!0);const s=1;if(38===t&&y.current>0&&(y.current-=s,I("up")),40===t&&y.current<l.length-1&&(y.current+=s,I("down")),13===t){const t=L(h)?.find((e,t)=>t===y.current);f(t,d),O(!1),m(e.target.value),$(t),F("")}9===t&&(F(""),O(!1)),P(y.current)}},onKeyUp:e=>{const t=e.keyCode;if(t>64&&t<91||t>96&&t<123){O(!0);const e=L(h).findIndex(e=>e.value===j)||0;y.current=e>0?e:0;(()=>e<0&&x?.current?.scrollTo(0,0))(),P(e>0?e:0)}},ref:g,role:"button",tabIndex:-1,children:[(()=>{if(i){const e="Futbol"===r?.props?.children?(0,u.jsx)("span",{children:"Fútbol"}):r;return(0,u.jsx)("button",{ref:C,className:"btn-select-autoresize",children:S.label||e})}return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("input",{autoComplete:"off",className:R,id:o,onBlur:V?()=>{}:n,onChange:e=>(e=>{O(!0),F(e.target.value)})(e),onKeyDown:q,onFocus:A,placeholder:v||S?.label,ref:N,src:S?.value?"true":"false",type:"text",value:k}),(0,u.jsx)("label",{htmlFor:o,children:r})]})})(),w&&(0,u.jsx)("span",{children:w}),V?(0,u.jsx)("div",{className:`${a}field-select-list-ctn`,ref:x,children:(0,u.jsx)("ul",{className:`${a}field-select-list`,children:(0,u.jsx)(c.A,p({},z))})}):null]})};m.propTypes={classContainer:n().string,classInput:n().string,classSelect:n().string,handleBlur:n().func,id:n().string,isAutoSized:n().bool,label:n().oneOfType([n().string,n().element]),name:n().string,onChange:n().func,onChangeInput:n().func,options:n().array,placeholder:n().string,span:n().string,value:n().object};var h=m;const v=({overrides:e={},customFields:t={},resetFunction:l=()=>{},isDatesVersion:s=!1})=>{const{options:a=e.options||[],showFilter:n=e.showFilter||!0,title:c=e.title||""}=t||{};if(!n)return null;const d=s?" dates":"";return(0,u.jsxs)("div",{className:`laws-filter${d}`,children:[(0,u.jsxs)("div",{className:"laws-filter-title",children:[(0,u.jsx)("p",{children:c}),(0,u.jsxs)("button",{className:"laws-filter-title-reset",onClick:l,children:["Limpiar filtros ",(0,u.jsx)(r.US,{})]})]}),(0,u.jsxs)("div",{className:"laws-filter-inputs-ctn",children:[0===a?.length?null:a.map((e,t)=>{const{classContainer:l="",id:a,label:n,maxLength:r,minDate:c="",options:d,placeholder:p,setInputValue:f=()=>{},setValue:m,type:v,value:w}=e||{};return"date"===v&&s?null:"especial-select"===v?(0,u.jsx)(h,{classContainer:l,id:a,label:n,name:a,onChange:e=>m(e),options:d,placeholder:p,type:"outlined",value:w||{},onChangeInput:f},`${a}-${t}`):"select"===v?(0,u.jsx)(o.A,{classContainer:l,id:a,label:n,name:a,onChange:e=>m(e),options:d,placeholder:p,type:"outlined",value:w||{}},`${a}-${t}`):(0,u.jsx)(i.A,{handleChange:e=>m(e.target.value),id:a,label:n,maxLength:r,minDate:c,type:v,value:w||""},`${a}-${t}`)}),(()=>{if(!s)return null;const e=a.map((e,t)=>{const{id:l,label:s,type:a,value:n,setValue:o,minDate:r=""}=e||{};return"date"!==a?null:(0,u.jsx)(i.A,{handleChange:e=>o(e.target.value),id:l,label:s,type:a,value:n||"",minDate:r},`${l}-${t}`)});return(0,u.jsx)("div",{className:"laws-filter-inputs-dates",children:e})})()]})]})};v.propTypes={overrides:n().shape({}),customFields:n().shape({showFilter:n().bool.tag({defaultValue:!0,name:"Show Filter"}),title:n().string.tag({defaultValue:"",name:"Filter title"}),options:n().array}),resetFunction:n().func,isDatesVersion:n().bool};var w=v},3806:function(e,t,l){var s=l(809),a=l(9894),n=l.n(a),o=l(9216),i=l(4766);function r(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,s)}return l}function c(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};
1t%2?r(Object(l),!0).forEach(function(t){u(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function u(e,t,l){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var s=l.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const d=(0,s.lazy)(()=>Promise.all([l.e(735),l.e(615)]).then(l.bind(l,8958))),p=e=>{const t=(0,i.jsx)(o.A,{id:"FilterModule",skeletonStyle:{height:"102px"}});return"undefined"==typeof window?t:(0,i.jsx)(s.Suspense,{fallback:t,children:(0,i.jsx)(d,c({},e))})};p.propTypes={overrides:n().shape({}),customFields:n().shape({showFilter:n().bool.tag({defaultValue:!0,name:"Show Filter"}),title:n().string.tag({defaultValue:"",name:"Filter title"})})},t.A=p}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.