1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1577],{8065:function(e,s,l){l.d(s,{Z:function(){return i}});var t=l(85893);function i(e){let{className:s,size:l=24}=e;return(0,t.jsx)("svg",{className:s,width:l,height:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{className:"fill-current",fillRule:"evenodd",clipRule:"evenodd",d:"M5.17853 4.76971L19.5694 4.43511L19.2361 18.7683L17.4444 18.81L17.7068 7.5287L5.4624 19.7231L4.22777 18.483L16.4626 6.29801L5.13685 6.5614L5.17853 4.76971Z",fill:""})})}l(67294)},11577:function(e,s,l){l.r(s),l.d(s,{default:function(){return x}});var t=l(85893),i=l(67294),n=l(16887),a=l(68266),d=l(2195),r=l(43575),c=l(66373),o=l(25928),u=l(77029),m=l(97248);function x(e){let{publicConsultations:s,settings:l}=e,{t:x}=(0,n.$G)("common"),[v,h]=i.useState(!1),{results:p,pagination:g,isLoading:f}=(0,c.Z)(u.O7.PUBLIC_CONSULTATION,s);return(0,i.useEffect)(()=>{f&&h(!0)},[f]),(0,i.useEffect)(()=>{if(v&&!f&&p&&(null==p?void 0:p.length)>0){let e=document.getElementById("aria-live-message");null==e||e.focus()}},[f,p,v]),(0,t.jsxs)(d.Z,{settings:l,children:[(0,t.jsx)(o.Z,{searchPlaceholder:x("search"),type:u.O7.PUBLIC_CONSULTATION}),p&&(null==p?void 0:p.length)>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mb-8",id:"aria-live-message","aria-live":"assertive",tabIndex:0,children:x("total_verification_registries",{count:null==g?void 0:g.total})}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 py-4 md:py-5",children:null==p?void 0:p.map(e=>{var s;return(0,t.jsx)(r.Z,{title:e.title,date:e.date,proposals:null===(s=e.propositions)||void 0===s?void 0:s.count,positiveVotes:e.positive_votes||[],negativeVotes:e.negative_votes||[],slug:e.slug},e.id)})}),(0,t.jsx)(a.Z,{pagination:g})]}):(0,t.jsx)(m.Z,{focus:!1,text:x("voting_empty_text")})]})}},43575:function(e,s,l){var t=l(85893);l(67294);var i=l(86853),n=l(22578),a=l(41664),d=l.n(a),r=l(11163),c=l(16887),o=l(58189),u=l(80149),m=l(5176),x=l(74560),v=l(8065),h=l(729),p=l(14263),g=l(41376);s.Z=e=>{let{title:s,slug:l,date:a,proposals:f,positiveVotes:j,negativeVotes:N}=e,{t:Z}=(0,c.$G)("common"),{locale:y}=(0,r.useRouter)(),L=(0,i.Z)(y),{user:b}=(0,g.a)(),w=(null==j?void 0:j.length)||0,_=(null==N?void 0:N.length)||0,k=(null==j?void 0:j.find(e=>(null==e?void 0:e.id)===(null==b?void 0:b.id)))?"agree":"",C=(null==N?void 0:N.find(e=>(null==e?void 0:e.id)===(null==b?void 0:b.id)))?"disagree":"";return(0,t.jsxs)("div",{className:"bg-container p-4 md:p-8 rounded-20",children:[(0,t.jsxs)(d(),{href:(0,p.gL)(l),className:"group flex gap-2 text-base md:text-lg hover:underline",children:[(0,t.jsx)("p",{className:"max-md:line-clamp-6 w-full md:max-w-[calc(100%-2rem)]",title:s,children:s}),(0,t.jsx)(v.Z,{className:"max-md:hidden opacity-0 group-hover:opacity-100"})]}),(0,t.jsxs)("time",{dateTime:a,className:"flex text-xs text-secondary mt-4",children:[Z("until")," ",(0,n.WU)(new Date(a),"dd MMMM yyyy",{locale:L})]}),(0,t.jsxs)("div",{className:"relative border-t border-black pt-6 mt-6 max-md:text-sm",children:[(0,t.jsx)(o.UQ,{type:"single",collapsible:!0,className:"w-full",children:(0,t.jsxs)(o.Qd,{value:"item-1",children:[(0,t.jsxs)(o.o4,{className:"inline-flex justify-start text-sm md:text-base hover:underline",children:[Z("result"),(0,t.jsx)(x.Z,{size:24})]}),(0,t.jsx)(o.vF,{className:"flex flex-col gap-4 md:gap-6 mt-6",children:(0,t.jsx)(h.Z,{agree:w,disagree:_,userVote:k||C})})]})}),(0,t.jsxs)("div",{className:"absolute top-6 right-0 flex items-center gap-4 text-secondary",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(u.Z,{}),(0,t.jsxs)("p",{className:"max-md:hidden",children:[Z("proposals"),":"]}),(0,t.jsx)("p",{children:f})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)("p",{className:"max-md:hidden",children:[Z("voted"),":"]}),(0,t.jsx)("p",{children:w+_})]})]})]})]})}},86853:function(e,s,l){l.d(s,{Z:function(){return a}});var t=l(86520),i=l(45568);let n={en:t.e,uk:i.uk};function a(e){return n[e]||t.e}}}]);
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.