PageSourceSearch

https://www.msp.gov.ua/_next/static/chunks/4244.6b2ca71bce8930c4.js

js msp.gov.ua collected 2026-10-02 02:47:58 UTC 6,780 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4244,5100],{8065:function(e,l,t){t.d(l,{Z:function(){return a}});var n=t(85893);function a(e){let{className:l,size:t=24}=e;return(0,n.jsx)("svg",{className:l,width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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:""})})}t(67294)},74244:function(e,l,t){t.r(l),t.d(l,{default:function(){return x}});var n=t(85893),a=t(67294),o=t(11163),i=t(16887),c=t(2195),r=t(25928),s=t(77029),d=t(66373),u=t(68266),g=t(83452),v=t(97248);function x(e){var l,t;let{settings:x,regulatoryFrameworks:m,tags:p,documentTypes:h,documentTopics:f}=e,{t:y}=(0,i.$G)("common"),b=(0,o.useRouter)(),{results:j,pagination:w,isLoading:_}=(0,d.Z)(s.O7.REGULATORY_FRAMEWORK,m,s.rF.FOLDER_SEARCH,null===(t=b.asPath)||void 0===t?void 0:null===(l=t.split("?"))||void 0===l?void 0:l[0]);return(0,a.useEffect)(()=>{if(!_&&j&&(null==j?void 0:j.length)>0){let e=document.getElementById("aria-live-message");null==e||e.focus()}},[_,j]),(0,n.jsxs)(c.Z,{settings:x,children:[(0,n.jsx)(r.Z,{searchPlaceholder:y("search"),type:s.Iq.REGULATORY_FRAMEWORK,tags:p,documentTypes:h,documentTopics:f,isLoading:_}),j&&(null==j?void 0:j.length)>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"mb-8",id:"aria-live-message","aria-live":"assertive",tabIndex:0,children:y("total_verification_registries",{count:null==w?void 0:w.total})}),(0,n.jsx)("div",{className:"flex flex-col gap-6 py-4 md:py-5",children:null==j?void 0:j.map(e=>(0,n.jsx)(g.Z,{item:e},e.id))}),(0,n.jsx)(u.Z,{pagination:w})]}):(0,n.jsx)(v.Z,{})]})}},55100:function(e,l,t){t.r(l),t.d(l,{default:function(){return g}});var n=t(85893);t(67294);var a=t(98388),o=t(41664),i=t.n(o),c=t(14263),r=t(16887);function s(e){let{tag:l,backgroundColor:t,className:o}=e,{name:s,slug:d}=l,{t:u}=(0,r.$G)("common");return(0,n.jsx)(i(),{href:(0,c.tQ)(d),className:(0,a.m6)("max-w-full bg-grey1 text-black px-4 py-3 rounded-3xl text-xs leading-4 text-center whitespace-nowrap overflow-hidden text-ellipsis duration-200 hover:bg-black hover:text-white","white"===t&&"bg-white",o),"aria-label":"".concat(u("search_by_tag"),": ").concat(s),children:s})}var d=t(64973),u=t(70595);function g(e){var l;let{tags:t,backgroundColor:o,withTooltip:i}=e,c=(0,d.Z)("(max-width: 768px)"),r=i?c?1:2:null!==(l=null==t?void 0:t.length)&&void 0!==l?l:0;return t&&(null==t?void 0:t.length)!==0?(0,n.jsxs)("div",{className:"w-full flex gap-2 mt-auto flex-wrap",children:[null==t?void 0:t.slice(0,r).map(e=>(0,n.jsx)(s,{tag:e,backgroundColor:o},e.id)),i&&(null==t?void 0:t.length)>r&&(0,n.jsxs)(u.J2,{children:[(0,n.jsxs)(u.xo,{className:(0,a.m6)("flex items-center justify-center w-10 h-10 rounded-full text-xs leading-none bg-white duration-200 hover:bg-black hover:text-white","gray"===o&&"bg-grey1"),children:["+ ",(null==t?void 0:t.length)-r]}),(0,n.jsx)(u.yk,{side:"top",className:"flex flex-col gap-4 px-4 py-6 border-none rounded-md shadow-[0px_6px_12px_0px_rgba(0,0,0,0.08)] ",children:t.slice(r).map(e=>(0,n.jsx)(s,{tag:e,backgroundColor:"gray"},e.id))})]})]}):null}},83452:function(e,l,t){var n=t(85893),a=t(8065),o=t(41664),i=t.n(o);t(67294);var c=t(16887),r=t(14263),s=t(55100);l.Z=e=>{let{item:l}=e,{type:t,number:o,title:d,publishedAt:u,published_at_override:g,slug:v}=l||{},{t:x}=(0,c.$G)("common");return(0,n.jsxs)("div",{className:"flex flex-col gap-6 bg-block p-4 md:p-8 rounded-20",children:[(0,n.jsxs)(i(),{href:(0,r.HM)(v),className:"group flex flex-col gap-6",children:[(0,n.jsx)("p",{className:"md:text-lg text-secondary",children:x("regulatory_framework_type_number_date",{type:null==t?void 0:t.name,number:o?" №".concat(o):"",date:g||u?new Date(g||u).toLocaleDateString("en-GB"):""})}),(0,n.jsxs)("div",{className:"flex gap-2 text-xl lg:text-2xl group-hover:underline",children:[(0,n.jsx)("p",{className:"max-md:line-clamp-6 w-full md:max-w-[calc(100%-2rem)]",title:d,children:d}),(0,n.jsx)(a.Z,{className:"max-md:hidden opacity-0 group-hover:opacity-100"})]})]}),(0,n.jsx)(s.default,{tags:l.tags,withTooltip:!0})]})}},97248:function(e,l,t){var n=t(85893),a=t(67294),o=t(16887);l.Z=e=>{let{focus:l=!0,text:t,hideTitle:i}=e,{t:c}=(0,o.$G)("common"),r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{r.current&&l&&r.current.focus()},[]),(0,n.jsxs)("section",{role:"alert","aria-live":"assertive",className:"pb-16 max-w-[40rem]",children:[(0,n.jsx)("span",{className:"text-5xl",children:"\uD83E\uDD37"}
1),!i&&(0,n.jsx)("h3",{ref:r,className:"h3 mt-6 mb-4",id:"aria-live-message","aria-live":"assertive",tabIndex:-1,children:c("empty_search_title")}),(0,n.jsx)("p",{className:"text-lg md:text-xl",children:t||c("empty_search_desc")})]})}},66373:function(e,l,t){t.d(l,{Z:function(){return c}});var n=t(67294),a=t(39332),o=t(11163),i=t(87066);function c(e,l,t,c){let r=(0,a.useSearchParams)(),{locale:s,isReady:d}=(0,o.useRouter)(),[u,g]=(0,n.useState)(!1),[v,x]=(0,n.useState)(null==l?void 0:l.results),[m,p]=(0,n.useState)(null==l?void 0:l.pagination),h=(null==r?void 0:r.get("page"))||"",f=(null==r?void 0:r.get("pageSize"))||(null==m?void 0:m.pageSize),y=(null==r?void 0:r.get("q"))||"",b=(null==r?void 0:r.get("dateFrom"))||"",j=(null==r?void 0:r.get("dateTo"))||"",w=(null==r?void 0:r.get("category"))||"",_=(null==r?void 0:r.get("direction"))||"",N=(null==r?void 0:r.get("tags"))||"",R=void 0===t?"":t,L=void 0===c?"":c,Z=(null==r?void 0:r.get("order"))||"",E=(null==r?void 0:r.get("documentType"))||"",k=(null==r?void 0:r.get("topic"))||"",T=(null==r?void 0:r.get("number"))||"",F=(null==r?void 0:r.get("openRoleCategory"))||"",S=(null==r?void 0:r.get("openRoleField"))||"",A=(null==r?void 0:r.get("openRoleArea"))||"";return(0,n.useEffect)(()=>{if(d){if(!y&&!h&&!b&&!j&&!N&&!Z&&!w&&!_&&!E&&!k&&!T){g(!1),x(null==l?void 0:l.results),p(null==l?void 0:l.pagination);return}g(!0),i.Z.get("/api/search?q=".concat(y,"&locale=").concat(s,"&type=").concat(R,"&dateFrom=").concat(b,"&dateTo=").concat(j,"&category=").concat(w,"&direction=").concat(_,"&page=").concat(h,"&pageSize=").concat(f,"&tags=").concat(N,"&collectionName=").concat(e,"&order=").concat(Z,"&documentType=").concat(E,"&topic=").concat(k,"&number=").concat(T,"&openRoleCategory=").concat(F,"&openRoleField=").concat(S,"&openRoleArea=").concat(A,"&subPageType=").concat(L)).then(e=>{var l,t;x((null===(l=e.data)||void 0===l?void 0:l.articles)||[]),p(null===(t=e.data)||void 0===t?void 0:t.pagination)}).catch(e=>{console.error(e),x([]),p(void 0)}).finally(()=>{g(!1)})}},[y,s,t,l,d,b,j,w,_,h,f,N,Z,E,k,T,F,S,A]),{isLoading:u,results:v,pagination:m}}}}]);

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.