PageSourceSearch

https://www.msp.gov.ua/_next/static/chunks/5151.234f1043d5eda702.js

js msp.gov.ua collected 2026-10-02 02:47:08 UTC 30,526 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{85130:function(e,a,l){l.d(a,{Z:function(){return r}});var t=l(85893);function r(e){let{className:a,size:l=24,color:r="black"}=e;return(0,t.jsx)("svg",{className:a,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:"M12.287 2.0625L22.6995 12.0018L12.3287 21.9012L11.0323 20.6638L19.1949 12.8722L1.91406 12.8369L1.91798 11.087L19.1854 11.1222L10.9906 3.29994L12.287 2.0625Z",fill:""})})}l(67294)},59565:function(e,a,l){l.d(a,{Z:function(){return r}});var t=l(85893);function r(e){let{className:a,size:l=24}=e;return(0,t.jsx)("svg",{className:a,width:l,height:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 21C9.4875 21 7.35938 20.1281 5.61563 18.3844C3.87188 16.6406 3 14.5125 3 12C3 9.4875 3.87188 7.35938 5.61563 5.61563C7.35938 3.87188 9.4875 3 12 3C13.2937 3 14.5312 3.26737 15.7125 3.80212C16.8938 4.33613 17.9062 5.1 18.75 6.09375V3H21V10.875H13.125V8.625H17.85C17.25 7.575 16.4299 6.75 15.3896 6.15C14.3487 5.55 13.2187 5.25 12 5.25C10.125 5.25 8.53125 5.90625 7.21875 7.21875C5.90625 8.53125 5.25 10.125 5.25 12C5.25 13.875 5.90625 15.4687 7.21875 16.7812C8.53125 18.0938 10.125 18.75 12 18.75C13.4437 18.75 14.7469 18.3375 15.9094 17.5125C17.0718 16.6875 17.8875 15.6 18.3562 14.25H20.7188C20.1937 16.2375 19.125 17.8593 17.5125 19.1156C15.9 20.3719 14.0625 21 12 21Z",className:"fill-current"})})}l(67294)},93306:function(e,a,l){l.d(a,{Z:function(){return r}});var t=l(85893);function r(e){let{className:a,size:l=24}=e;return(0,t.jsx)("svg",{className:a,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{className:"stroke-current",d:"M21 12a9 9 0 1 1-6.219-8.56"})})}l(67294)},25184:function(e,a,l){l.d(a,{Z:function(){return i}});var t=l(85893);l(67294);var r=l(87536),n=l(20944),s=l(16887);function i(e){let{name:a,forField:l}=e,{t:i}=(0,s.$G)("common"),{setValue:d}=(0,r.Gc)();return(0,t.jsx)("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center bg-white p-3 rounded-full duration-200 hover:bg-grey1",onClick:()=>d(a,""),"aria-label":i("clear_field")+" "+l,children:(0,t.jsx)(n.Z,{})})}},25928:function(e,a,l){l.d(a,{Z:function(){return G}});var t=l(85893),r=l(67294),n=l(11163),s=l(16887),i=l(22578),d=l(30247),o=l(87536),c=l(95364),u=l(37648),m=l(85130),x=l(27742),p=l(86520),h=l(45568),f=l(67421);let g={en:p.e,uk:h.uk};function v(e){let{className:a,...l}=e,{t:r}=(0,f.$G)(),{locale:s}=(0,n.useRouter)(),i=g[s]||p.e;return(0,t.jsx)(u._W,{captionLayout:"dropdown-buttons",locale:i,className:(0,x.cn)("p-2 sm:py-4 sm:px-6",a),classNames:{months:"w-full flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"w-full",caption:"flex justify-start relative items-center p-2.5",caption_label:"flex gap-1 items-center max-sm:text-sm font-medium capitalize",nav:"space-x-1 flex items-center",nav_button_previous:"absolute right-9 rounded-full p-1 disabled:opacity-40 duration-200 hover:bg-grey1",nav_button_next:"absolute right-0 rounded-full p-1 disabled:opacity-40 duration-200 hover:bg-grey1",table:"w-full border-collapse mt-2 sm:mt-4 text-sm",head_row:"flex border-b border-black py-2",head_cell:"text-black rounded-md flex-1 font-normal uppercase",row:"flex w-full mt-2",cell:(0,x.cn)("flex-1 relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-neutral-100 [&:has([aria-selected].day-outside)]:bg-neutral-100/50 [&:has([aria-selected].day-range-end)]:rounded-r-md dark:[&:has([aria-selected])]:bg-neutral-800 dark:[&:has([aria-selected].day-outside)]:bg-neutral-800/50","range"===l.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:(0,x.cn)((0,c.d)({variant:"ghost"}),"w-full aspect-square p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-neutral-900 !text-neutral-50 hover:bg-neutral-900 hover:text-neutral-50 focus:bg-neutral-900 focus:text-neutral-50 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50 dark:hover:text-neutral-900 dark:focus:bg-neutral-50 dark:focus:text-neutral-900",day_today:"bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-50",day_outside:"day-outside text-neutral-500 opacity-50  aria-selected:bg-neutral-100/50 aria-selected:text-neutral-500 aria-selected:opacity-30 dark:text-neutral-400 dark:aria-selected:bg-neutral-800/50 dark:aria-selected:text-neutral-400",day_disabled:"text-neutral-500 opacity-50 dark:text-neutral-400",day_range_middle:"aria-selected:bg-neutral-100 aria-selected:text-neutral-900 dark:aria-selected:bg-neutral-800 dark:aria-selected:text-neutral-50",day_hidden:"invisible"},components:{IconLeft:e=>{let{...a}=e;return(0,t.jsx)(m.Z,{className:"rotate-180",size:20})},IconRight:e=>{let{...a}=e;return(0,t.jsx)(m.Z,{size:20})}},labels:{labelPrevious:()=>r("go_to_previous_month"),labelNext:()=>r("go_to_next_month"),labelMonthDropdown:()=>r("month"),labelYearDropdown:()=>r("year")},...l})}
1v.displayName="Calendar";var b=l(70595);function y(e){let{className:a,size:l=24}=e;return(0,t.jsx)("svg",{className:a,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",d:"M8 14C7.71667 14 7.47917 13.9042 7.2875 13.7125C7.09583 13.5208 7 13.2833 7 13C7 12.7167 7.09583 12.4792 7.2875 12.2875C7.47917 12.0958 7.71667 12 8 12C8.28333 12 8.52083 12.0958 8.7125 12.2875C8.90417 12.4792 9 12.7167 9 13C9 13.2833 8.90417 13.5208 8.7125 13.7125C8.52083 13.9042 8.28333 14 8 14ZM12 14C11.7167 14 11.4792 13.9042 11.2875 13.7125C11.0958 13.5208 11 13.2833 11 13C11 12.7167 11.0958 12.4792 11.2875 12.2875C11.4792 12.0958 11.7167 12 12 12C12.2833 12 12.5208 12.0958 12.7125 12.2875C12.9042 12.4792 13 12.7167 13 13C13 13.2833 12.9042 13.5208 12.7125 13.7125C12.5208 13.9042 12.2833 14 12 14ZM16 14C15.7167 14 15.4792 13.9042 15.2875 13.7125C15.0958 13.5208 15 13.2833 15 13C15 12.7167 15.0958 12.4792 15.2875 12.2875C15.4792 12.0958 15.7167 12 16 12C16.2833 12 16.5208 12.0958 16.7125 12.2875C16.9042 12.4792 17 12.7167 17 13C17 13.2833 16.9042 13.5208 16.7125 13.7125C16.5208 13.9042 16.2833 14 16 14ZM3 22V4H6V2H8V4H16V2H18V4H21V22H3ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:""})})}var w=l(98388);function j(e){let{placeholder:a,className:l,value:n,onChange:s,...d}=e,[o,u]=(0,r.useState)(!1);return(0,t.jsxs)(b.J2,{open:o,onOpenChange:u,children:[(0,t.jsx)(b.xo,{asChild:!0,children:(0,t.jsxs)(c.z,{variant:"white",className:(0,w.m6)("w-full justify-between text-left font-normal pl-6 pr-5 focus-within:ring-offset-0",l),"aria-label":"".concat(a," ").concat(n?(0,i.WU)(n,"dd.MM.yyyy"):""),children:[n?(0,i.WU)(n,"dd.MM.yyyy"):(0,t.jsx)("span",{className:"text-secondary",children:a}),(0,t.jsx)(y,{})]})}),(0,t.jsx)(b.yk,{className:"p-0 border-none !rounded-20 !shadow-[0px_6px_12px_0px_rgba(0,0,0,0.08)]",style:{width:"var(--radix-popover-trigger-width)"},children:(0,t.jsx)(v,{mode:"single",selected:n,onSelect:e=>{s(e),u(!1)},...d})})]})}var N=l(72104),_=l(58189),k=l(91296),C=l.n(k),L=l(74560),O=l(20944),R=l(23276);function I(e){var a,l,n;let{data:i,name:d}=e,{t:u}=(0,s.$G)(),[m,x]=(0,r.useState)(!1),{control:p,setValue:h}=(0,o.Gc)(),{field:f}=(0,o.bc)({name:d,control:p,defaultValue:[]}),[g,v]=(0,r.useState)(""),[y,j]=(0,r.useState)(""),_=(0,r.useMemo)(()=>C()(e=>j(e),400),[]),k=e=>{let a=Array.isArray(f.value)?f.value:[];h(d,a.includes(e)?a.filter(a=>a!==e):[...a,e])},I=i.filter(e=>e.name.toLowerCase().includes(y.toLowerCase())),Z=e=>{let a=Array.from(e.currentTarget.querySelectorAll('[tabindex="0"]')),l=a.indexOf(document.activeElement);"ArrowDown"===e.key&&l<a.length-1&&(e.preventDefault(),a[l+1].focus()),"ArrowUp"===e.key&&l>0&&(e.preventDefault(),a[l-1].focus())};return(0,t.jsxs)(b.J2,{open:m,onOpenChange:e=>x(e),children:[(0,t.jsx)(b.xo,{asChild:!0,onClick:()=>x(!m),children:(0,t.jsxs)(c.z,{className:"gap-1 bg-white text-black px-6 max-sm:w-full hover:after:opacity-0","aria-label":(null===(a=f.value)||void 0===a?void 0:a.length)>0?"".concat(u("tags"),", ").concat(u("selected"),": ").concat(i.filter(e=>f.value.includes(e.slug)).map(e=>e.name).join(", ")):"".concat(u("tags"),": ").concat(u("all")),children:[u("tags"),":",(0,t.jsxs)("span",{className:"inline-flex items-center ml-auto",children:[(null===(l=f.value)||void 0===l?void 0:l.length)>0?null===(n=f.value)||void 0===n?void 0:n.length:u("all"),(0,t.jsx)(L.Z,{className:(0,w.m6)(m&&"rotate-180")})]})]})}),(0,t.jsxs)(b.yk,{align:"start",className:"flex flex-col gap-6 w-[53rem] max-lg:mx-4 max-w-[calc(100vw-3rem)] max-h-[calc(var(--radix-popper-available-height)-1.5rem)] md:max-h-[22.25rem] p-4 md:p-8 max-sm:mr-4 [&>span]:hidden",children:[(0,t.jsxs)("div",{className:"relative flex",children:[(0,t.jsx)(N.I,{type:"text",className:"bg-container w-full",placeholder:u("search"),value:g,onChange:e=>{v(e.target.value),_(e.target.value)}}),g?(0,t.jsx)("button",{type:"button",className:"absolute right-0 top-0 bottom-0 flex items-center justify-center px-5",onClick:()=>{v(""),j("")},children:(0,t.jsx)(O.Z,{size:24})}):(0,t.jsx)(R.Z,{className:"absolute right-6 top-4 pointer-events-none"})]}),(0,t.jsxs)("div",{role:"menu",className:(0,w.m6)("flex-1 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-4 gap-y-4 md:gap-y-6 overflow-auto",I.length<3&&"md:grid-cols-2"),onKeyDown:e=>Z(e),children:[I.map(e=>e.name?(0,t.jsx)("div",{tabIndex:0,role:"menuitemcheckbox","aria-checked":f.value.includes(e.slug),"aria-label":f.value.includes(e.slug)?"".concat(e.name,": ").concat(u("selected")):"".concat(e.name,": ").concat(u("not_selected")),"data-state":f.value.includes(e.slug)?"checked":"unchecked",onClick:()=>k(e.slug),onKeyDown:a=>{"Enter"===a.key&&k(e.slug)},className:"p-0 cursor-pointer data-[state=checked]:text-dark-green hover:underline ",children:e.name},e.id):null),0===I.length&&(0,t.jsx)("p",{className:"text-sm text-grey1",children:u("empty_search_title")})]})]})]})}var Z=l(15659),E=l(25184);function T(e){var a;let{name:l,placeholder:r,options:n,selectType:i}=e,{t:d}=(0,s.$G)("common"),{watch:c,setValue:u}=(0,o.Gc)(),m=c(l)||"",x=n.find(e=>e.value===m),p=r||d("select_placeholder");return(0,t.jsxs)("div",{className:"max-w-full relative",children:[(0,t.jsxs)(Z.Ph,{onValueChange:e=>u(l,e),value:m,children:[(0,t.jsxs)(Z.i4,{"aria-label":x?"".concat(p,", ").concat(d("selected")," ").concat(null!==(a=null==x?void 0:x.label)&&void 0!==a?a:"").trim():p,className:(0,w.m6)("w-full [&>span]:last-child:bg-red-600  [&>
1span]:text-left ",c(l)&&"pr-10"),children:[m&&i&&(0,t.jsxs)(t.Fragment,{children:[i,": \xa0"]}),(0,t.jsx)(Z.ki,{placeholder:p})]}),(0,t.jsx)(Z.Bw,{children:n.map((e,a)=>(0,t.jsx)(Z.Ql,{value:e.value,children:e.label},a))})]}),c(l)&&(0,t.jsx)(E.Z,{name:l,forField:r})]})}var A=l(59565),M=l(77029),D=l(72307),z=l.n(D),F=l(93306),G=e=>{var a,l,u;let{t:m,i18n:{language:x}}=(0,s.$G)(),{searchPlaceholder:p="".concat(m("search"),"..."),searchTitle:h,type:f=M.Iq.NEWS,tags:g=[],documentTypes:v=[],documentTopics:b=[],isLoading:y}=e,k=(0,n.useRouter)(),{locale:C}=k,[Z,D]=(0,r.useState)(!1),G=(0,r.useMemo)(()=>{var e;return{q:"",dateFrom:void 0,dateTo:void 0,type:f===M.O7.ALL?null===M.dN||void 0===M.dN?void 0:null===(e=M.dN[x])||void 0===e?void 0:e[0].value:"",...f===M.O7.OPEN_ROLE&&{openRoleCategory:"",openRoleField:"",open_role_area:""},...f===M.Iq.REGULATORY_FRAMEWORK&&{documentType:"",document_topic:"",number:""},...f===M.O7.PUBLIC_CONSULTATION&&{direction:"",category:""},...(null==g?void 0:g.length)>0&&{tags:[]}}},[f,g]),H=(0,o.cI)({defaultValues:G}),U=e=>{let a=new Intl.Collator(x,{sensitivity:"base"});return e.sort((e,l)=>a.compare(e.name,l.name))},{register:V,handleSubmit:W,watch:q,reset:B,formState:{errors:S},setValue:P,getValues:$}=H,K=q(),Q=(0,r.useMemo)(()=>Object.values(K).some(e=>Array.isArray(e)&&(null==e?void 0:e.length)>0),[K]);(0,r.useEffect)(()=>{Object.entries(k.query).forEach(e=>{let[a,l]=e;l&&"slug"!==a&&"page"!==a&&("dateFrom"===a||"dateTo"===a?P(a,l):"string"==typeof l&&l.startsWith("[")&&l.endsWith("]")?P(a,l.slice(1,-1).split(",")):"string"==typeof l&&l.includes(",")?P(a,l.split(",")):P(a,decodeURIComponent(l)))})},[k.query,P]),(0,r.useEffect)(()=>{z()(K,G)?D(!1):D(!0)},[K,G]);let Y=(e,a)=>{let l=$(e).filter(e=>e!==a);P(e,l)},J=f===M.Iq.NEWS||f===M.Iq.EXTERNAL_ARTICLE?2020:1991,X=Number(q("age_from")),ee=Number(q("age_to"));return(0,t.jsxs)("section",{className:"bg-container rounded-20 py-8 px-4 md:px-8 my-4 md:my-5",children:[h&&(0,t.jsx)("h2",{className:"text-xl md:text-38 leading-snug mb-6",children:h}),(0,t.jsx)(o.RV,{...H,children:(0,t.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:(0,w.m6)("w-full inline-flex items-center justify-between flex-wrap gap-8",f===M.O7.ALL&&"gap-x-6 items-start"),children:[(0,t.jsxs)("div",{className:(0,w.m6)("w-full relative flex order-1",f===M.O7.ALL&&"w-full sm:w-[calc(100%-14.5rem)]"),children:[(0,t.jsx)(N.I,{placeholder:p,"aria-label":p,className:"flex-1 pr-14 text-ellipsis",...V("q")}),q("q")?(0,t.jsx)(E.Z,{name:"q",forField:p}):(0,t.jsx)(R.Z,{className:"absolute right-6 top-4 pointer-events-none"})]}),f===M.O7.ALL?(0,t.jsxs)("div",{className:"max-w-full flex-1 flex flex-col gap-6 order-2 sm:order-4",children:[(0,t.jsxs)("div",{className:"max-w-full flex flex-wrap gap-4",children:[(0,t.jsx)(T,{name:"type",placeholder:m("type"),options:null===M.dN||void 0===M.dN?void 0:M.dN[x],selectType:m("type")}),(null==g?void 0:g.length)>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-4",children:(0,t.jsx)(I,{name:"tags",data:U(g)})})]}),Q&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:Object.entries(K).map(e=>{let[a,l]=e;return Array.isArray(l)&&l.map(e=>{let l=g.find(a=>a.slug===e);return(0,t.jsxs)("div",{className:"flex items-center gap-1 bg-white px-4 pr-2 py-2 rounded-full",children:[(0,t.jsx)("p",{className:"flex-1",children:l?l.name:e}),(0,t.jsx)(c.z,{variant:"gray","aria-label":m("remove_tag"),onClick:()=>Y(a,e),className:"p-1 bg-transparent text-black hover:bg-grey1 hover:text-black",children:(0,t.jsx)(O.Z,{size:16})})]},"".concat(a,"-").concat(e))})})})]}):(0,t.jsx)(_.UQ,{type:"single",className:"w-full order-2",collapsible:!0,children:(0,t.jsxs)(_.Qd,{value:"menu",children:[(0,t.jsxs)(_.o4,{className:"flex flex-row gap-2 items-center justify-start hover:cursor-pointer text-base hover:underline bg-transparent",role:"button",children:[(0,t.jsx)("span",{children:m("additional_parameters")}),(0,t.jsx)(L.Z,{})]}),(0,t.jsx)(_.vF,{className:"mt-8 px-[1px] mb-1",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6 md:gap-8",children:[f!==M.O7.CHILDREN&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsxs)("div",{className:"relative max-sm:w-full sm:flex-1",children:[(0,t.jsx)(j,{placeholder:m("datepicker_placeholder_from"),value:q("dateFrom")?(0,d.D)(q("dateFrom")):void 0,onChange:e=>P("dateFrom",e?(0,i.WU)(e,"yyyy-MM-dd"):""),fromDate:new Date(J,1,1
1),toDate:q("dateTo")?(0,d.D)(q("dateTo")):new Date}),q("dateFrom")&&(0,t.jsx)(E.Z,{name:"dateFrom",forField:m("datepicker_placeholder_from")})]}),(0,t.jsxs)("div",{className:"relative max-sm:w-full sm:flex-1",children:[(0,t.jsx)(j,{placeholder:m("datepicker_placeholder_to"),className:"max-sm:w-full sm:flex-1",value:q("dateTo")?(0,d.D)(q("dateTo")):void 0,onChange:e=>P("dateTo",e?(0,i.WU)(e,"yyyy-MM-dd"):""),fromDate:q("dateFrom")?(0,d.D)(q("dateFrom")):new Date(J,1,1),toDate:new Date}),q("dateTo")&&(0,t.jsx)(E.Z,{name:"dateTo",forField:m("datepicker_placeholder_to")})]})]}),f===M.O7.CHILDREN&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"form_of_arrangement",placeholder:m("form_of_arrangement"),options:M.JN})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"gender",placeholder:m("gender"),options:M.uz})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(N.I,{type:"number",min:1,max:17,placeholder:m("age_from"),"aria-label":m("age_from"),className:"w-full",value:q("age_from"),onChange:e=>{let a=parseInt(e.target.value);P("age_from",a<0?1:a>17?17:a,{shouldValidate:!0})}})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(N.I,{type:"number",min:1,max:17,placeholder:m("age_to"),"aria-label":m("age_to"),className:"w-full",value:q("age_to"),onChange:e=>{let a=parseInt(e.target.value);P("age_to",a<0?1:a>17?17:a,{shouldValidate:!0})}})}),!isNaN(ee)&&!isNaN(X)&&X>ee&&(0,t.jsx)("div",{className:"flex gap-4 rounded-20 p-4 md:p-6 bg-[#DBE9E9] w-full",children:(0,t.jsx)("div",{className:"flex-1 flex flex-col gap-2",children:(0,t.jsx)("p",{className:"font-light max-md:text-sm text-warning",children:m("age_error")})})})]}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(T,{name:"region",placeholder:m("region"),options:M.dO.map(e=>({value:e.value,label:e[C]}))||[]})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"siblings",placeholder:m("siblings"),options:M.pU})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"needs",placeholder:m("needs"),options:M.oA})})]})]}),f===M.O7.OPEN_ROLE&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)(T,{name:"openRoleCategory",placeholder:m("open_role_category"),options:(null===(a=e.categories)||void 0===a?void 0:a.map(e=>({value:e.slug,label:e.name})))||[]}),(0,t.jsx)(T,{name:"openRoleField",placeholder:m("open_role_field"),options:(null===(l=e.fields)||void 0===l?void 0:l.map(e=>({value:e.slug,label:e.name})))||[]}),(0,t.jsx)(T,{name:"openRoleArea",placeholder:m("open_role_area"),options:(null===(u=e.areas)||void 0===u?void 0:u.map(e=>({value:e.slug,label:e.name})))||[]})]}),f===M.Iq.REGULATORY_FRAMEWORK&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-4 md:gap-y-8",children:[(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"documentType",placeholder:m("document_type"),options:v.map(e=>({value:e.slug,label:e.name}))})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"topic",placeholder:m("document_topic"),options:b.map(e=>({value:e.slug,label:e.name}))})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(N.I,{placeholder:m("input_document_number"),"aria-label":m("input_document_number"),className:"w-full",...V("number")})})]}),f===M.O7.PUBLIC_CONSULTATION&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"direction",placeholder:m("direction"),options:M.Pz})}),(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-0.5rem)]",children:(0,t.jsx)(T,{name:"category",placeholder:m("category"),options:M.s})})]}),(null==g?void 0:g.length)>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-4",children:(0,t.jsx)(I,{name:"tags",data:U(g)})}),Q&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:Object.entries(K).map(e=>{let[a,l]=e;return Array.isArray(l)&&l.map(e=>{let l=g.find(a=>a.slug===e);return(0,t.jsxs)("div",{className:"flex items-center gap-1 bg-white px-4 pr-2 py-2 rounded-full",children:[(0,t.jsx)("p",{className:"flex-1",children:l?l.name:e}),(0,t.jsx)(c.z,{variant:"gray","aria-label":m("remove_tag"),onClick:()=>Y(a,e),className:"p-1 bg-transparent text-black hover:bg-grey1 hover:text-black",children:(0,t.jsx)(O.Z,{size:16})})]},"".concat(a,"-").concat(e))})})})]})})]})}),(0,t.jsxs)(c.z,{type:"button",className:(0,w.m6)("max-sm:w-full inline-flex order-3",f===M.O7.ALL&&"w-52"),disabled:y,"aria-busy":y,"aria-label":y?m("loading"):m("search"),onClick:W(e=>{let a={};
1Object.entries(e).forEach(e=>{let[l,t]=e;null!=t&&""!==t&&t&&(Array.isArray(t)?(null==t?void 0:t.length)>0&&(a[l]="[".concat(t.join(","),"]")):t instanceof Date?a[l]=(0,i.WU)(t,"yyyy-MM-dd"):a[l]=encodeURIComponent(t))}),a.page="1",!a.slug&&k.query.slug&&(a.slug=k.query.slug),k.push({pathname:k.pathname,query:a},void 0,{shallow:!0})}),children:[y&&(0,t.jsxs)("div",{"aria-label":m("loading"),className:"absolute inset-0 flex items-center justify-center bg-black z-10",tabIndex:0,children:[(0,t.jsx)(F.Z,{className:"animate-spin"}),(0,t.jsx)("span",{className:"sr-only",children:m("loading")})]}),m("search")]}),Z&&(0,t.jsxs)(c.z,{type:"button",variant:"link",className:(0,w.m6)("max-sm:w-full gap-2 p-0 order-5",f===M.O7.ALL&&"sm:py-4"),onClick:()=>{B(),k.push({pathname:k.asPath.split("?")[0]},void 0,{shallow:!0})},children:[(0,t.jsx)(A.Z,{}),m("clear_search")]})]})})]})}},68266:function(e,a,l){l.d(a,{Z:function(){return o}});var t=l(85893),r=l(67294),n=l(11163),s=l(85130),i=l(98388),d=l(16887);function o(e){let{pagination:a,handlePageChangeCustom:l}=e,{t:o}=(0,d.$G)("common"),c=(0,n.useRouter)(),u=a?a.page:1,m=a?a.pageCount:1,x=a?a.pageSize:10,p=(0,r.useMemo)(()=>{let e=[],a=u>3,l=u<m-2;if(a)e.push(1,"...");else for(let a=1;a<Math.min(3,m)+1;a++)e.push(a);let t=Math.max(u-1,2),r=Math.min(u+1,m-1);for(let a=t;a<=r;a++)e.includes(a)||e.push(a);if(l)e.push("...",m);else for(let a=Math.max(m-2,2);a<=m;a++)e.includes(a)||e.push(a);return e},[u,m,x]);if(!a||m<2)return null;let h=()=>{let e=document.getElementById("header");if(e){let{top:a,height:l}=e.getBoundingClientRect();window.scrollTo({top:window.scrollY+a+l})}},f=l||(e=>{c.push({pathname:c.pathname,query:{...c.query,page:e,pageSize:x}},void 0,{shallow:!0}),h()});return(0,t.jsxs)("div",{className:"w-full flex items-center justify-between py-4 md:py-5",children:[(0,t.jsxs)("button",{className:(0,i.m6)("flex gap-4 hover:underline",1===u&&"text-secondary pointer-events-none"),onClick:()=>f(u-1),disabled:1===u,children:[(0,t.jsx)(s.Z,{className:"transform rotate-180"}),(0,t.jsx)("span",{className:"max-md:hidden",children:o("back")})]}),(0,t.jsx)("div",{className:"flex gap-1 md:gap-2 items-center",children:p.map((e,a)=>"number"==typeof e?(0,t.jsx)("button",{className:(0,i.m6)("w-12 h-12 rounded-full flex justify-center items-center duration-200 hover:bg-grey1",e===u&&"bg-black text-white hover:bg-primaryIndigo"),onClick:()=>f(e),children:e},a):(0,t.jsx)("span",{className:"px-2",children:"..."},a))}),(0,t.jsxs)("button",{className:(0,i.m6)("flex gap-4 hover:underline",u===m&&"text-secondary pointer-events-none"),onClick:()=>f(u+1),disabled:u===m,children:[(0,t.jsx)("span",{className:"max-md:hidden",children:o("next")}),(0,t.jsx)(s.Z,{})]})]})}},72104:function(e,a,l){l.d(a,{I:function(){return i}});var t=l(85893),r=l(67294),n={src:"/_next/static/media/warning.3b2100df.svg"},s=l(27742);let i=r.forwardRef((e,a)=>{let{className:l,type:r,...i}=e,d=!!i["aria-invalid"];return(0,t.jsx)("input",{type:r,className:(0,s.cn)("flex w-full rounded-full bg-white px-6 py-4 transition-colors border-none text-ellipsis file:border-0 max-w-full file:bg-transparent file:text-sm file:font-medium file:text-neutral-950 placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-indigo-600 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:file:text-neutral-50 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",'aria-[invalid=true]:pr-14 aria-[invalid=true]:border aria-[invalid=true]:border-solid aria-[invalid=true]:border-warning aria-[invalid=true]:text-warning")] aria-[invalid=true]:bg-no-repeat aria-[invalid=true]:bg-[length:1.5rem] aria-[invalid=true]:bg-[center_right_20px]',l),style:{backgroundImage:d?'url("'.concat(n.src,'")'):void 0},ref:a,...i})});i.displayName="Input"},15659:function(e,a,l){l.d(a,{Bw:function(){return p},Ph:function(){return o},Ql:function(){return h},i4:function(){return u},ki:function(){return c}});var t=l(85893),r=l(67294),n=l(62469),s=l(10777),i=l(27742),d=l(74560);let o=s.fC;s.ZA;let c=s.B4,u=r.forwardRef((e,a)=>{let{className:l,children:r,...n}=e;return(0,t.jsxs)(s.xz,{ref:a,className:(0,i.cn)("flex w-full items-center justify-between whitespace-nowrap rounded-full bg-white px-6 py-4 ring-offset-white data-[placeholder]:text-secondary focus:outline-none focus-visible:ring-1 focus-visible:ring-indigo-600 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:ring-offset-neutral-950 dar
1k:placeholder:text-neutral-400 dark:focus:ring-neutral-300","aria-[invalid=true]:border aria-[invalid=true]:border-solid aria-[invalid=true]:border-warning aria-[invalid=true]:text-warning [&>svg]:aria-[invalid=true]:text-warning","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:max-w-[calc(100%-1.5rem)]",l),...n,children:[r,(0,t.jsx)(s.JO,{asChild:!0,children:(0,t.jsx)(d.Z,{})})]})});u.displayName=s.xz.displayName;let m=r.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(s.u_,{ref:a,className:(0,i.cn)("flex cursor-default items-center justify-center py-1 pointer-events-none",l),...r,children:(0,t.jsx)(n.g8U,{})})});m.displayName=s.u_.displayName;let x=r.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(s.$G,{ref:a,className:(0,i.cn)("flex cursor-default items-center justify-center py-1 pointer-events-none",l),...r,children:(0,t.jsx)(n.v4q,{})})});x.displayName=s.$G.displayName;let p=r.forwardRef((e,a)=>{let{className:l,children:r,position:n="popper",...d}=e;return(0,t.jsx)(s.h_,{children:(0,t.jsxs)(s.VY,{ref:a,className:(0,i.cn)("relative z-50 h-auto max-h-[calc(var(--radix-select-content-available-height)-1rem)] md:max-h-96 min-w-[8rem] overflow-hidden rounded-10 bg-white text-neutral-950 shadow-[0px_6px_12px_0px_rgba(0,0,0,0.08)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:n,...d,children:[(0,t.jsx)(m,{}),(0,t.jsx)(s.l_,{className:(0,i.cn)("","popper"===n&&"h-[(var(--radix-select-trigger-height)]"),children:r}),(0,t.jsx)(x,{})]})})});p.displayName=s.VY.displayName,r.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(s.__,{ref:a,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",l),...r})}).displayName=s.__.displayName;let h=r.forwardRef((e,a)=>{let{className:l,children:r,...n}=e;return(0,t.jsx)(s.ck,{ref:a,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center p-4 text-13 outline-none focus-visible:outline-none focus:bg-neutral-100 focus:text-neutral-900 focus-visible:ring-offset-0 focus-visible:ring-1 focus-visible:ring-indigo-600 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50","data-[state=checked]:bg-container data-[state=checked]:underline",l),...n,children:(0,t.jsx)(s.eT,{children:r})})});h.displayName=s.ck.displayName,r.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(s.Z0,{ref:a,className:(0,i.cn)("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",l),...r})}).displayName=s.Z0.displayName},2195:function(e,a,l){l.d(a,{Z:function(){return p}});var t=l(85893);l(67294);var r=l(55915),n=l(9003),s=l(41664),i=l.n(s),d=l(85130),o=l(14263),c=l(39846),u=l(95364),m=l(98388),x=l(27742);function p(e){let{id:a,children:l,settings:s}=e,{title:p,title_component:h,background_color:f,button:g,button_position:v,wrap_content:b,disable_padding:y,disable_margin:w}=s||{},j=f?(0,c.Z)(f):"",N=!f||"bg-white"===j,_=h||"h2";return(0,t.jsx)("section",{id:a,className:(0,x.cn)(s&&!y&&(b?"py-8 md:py-20":"mb-8 md:mb-20"),y&&!w&&"mb-6 md:mb-10",w&&"mb-0 md:mb-0",!s&&"mb-8 md:mb-20",!N&&!b&&"px-4 py-6 rounded",j,e.sectionClassName),children:(0,t.jsxs)(r.default,{fullWidth:!b,className:"grid grid-cols-1 md:grid-cols-[1fr_auto] items-center gap-6 md:gap-10",children:[p&&(0,t.jsx)(_,{className:(0,m.m6)("max-md:mb-2","h2"===_&&"h2","h3"===_&&"h3"),children:p}),g&&v===n.Wm.INLINE&&(0,t.jsx)("div",{className:"max-md:order-1 md:text-right",children:(0,t.jsxs)(i(),{href:(0,o.Rg)(g.link),className:"inline-flex items-center gap-4 hover:underline",children:[g.label,(0,t.jsx)(d.Z,{})]})}),(0,t.jsx)("div",{className:"md:col-span-2",children:l}),g&&v===n.Wm.BOTTOM&&(0,t.jsx)("div",{className:"",children:(0,t.jsx)(u.z,{asChild:!0,className:"max-sm:w-full",children:(0,t.jsx)(i(),{href:(0,o.Rg)(g.link),children:g.label})})})]})})}},39846:function(e,a,l){l.d(a,{Z:function(){return t}});function t(e){return e?({yellow:"bg-yellow",gradient:"bg-[linear-gradient(90deg,rgba(249,168,0,0.8),rgba(0,174,239,0.8))]",gradientLight:"bg-[linear-gradient(90deg,rgba(0,174,239,0.2),rgba(249,168,0,0.2))]",block:"bg-block",white:"bg-white",gray:"bg-container",lightGray:"bg-gray-100",lightBlue:"bg-lightBlue"})[e]:""}},9003:function(e,a,l){var t,r,n,s,i,d,o,c,u,m,x,p,h,f,g,v;l.d(a,{Qb:function(){return s},Wm:function(){return r},hM:function(){return d},mQ:function(){return c},yl:function(){return n}}),(u=t||(t={})).EN="en",u.UK="uk",(m=r||(r={})).INLINE="inline",m.BOTTOM="bottom",(x=n||(n={})).LINK="link",x.ATTACHMENT="attachment",(p=s||(s={})).ROW="row",p.COLUMN="column",(h=i||(i={})).white="white",h.tealWhite="tealWhite",h.lightGreen="lightGreen",h.darkGreen="darkGreen",h.lightGray="lightGray",(f=d||(d={})).access_to_public_information="Електронна форма запиту на публічну інформацію",f.electronic_request="Електронне звернення громадянина",(g=o||(o={})).HALF="half",g.THIRD="third",g.FULL="full",(v=c||(c={})).SHORT_TEXT="short_text",v.LONG_TEXT="long_text",v.NUMBER="number",v.SELECT="select",v.CHECKBOX="checkbox",v.RADIO="radio",v.DATE="date",v.EMAIL="email",v.FILE="file"}}]);

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.