PageSourceSearch

https://sdworx.ro/_next/static/chunks/5253.9bd2b05d77f69685.js

js sdworx.ro collected 2026-10-09 22:42:35 UTC 7,148 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5253],{85253:(e,t,l)=>{l.r(t),l.d(t,{default:()=>w});var a=l(37876),i=l(14232),s=l(96851),r=l(97719),c=l(60929),n=l(40876),o=l(89099),u=l(63435),d=l.n(u),_=l(97620),p=l(50172),h=l(33614),b=l(5305);let v=e=>{let{facetValues:t,selectedFacets:l,onRefine:r}=e,[c,o]=(0,i.useState)(0),u=(0,i.useRef)(null),d=(0,i.useRef)(null),_=(0,s.c)(),p={event:_("pillarpage_event"),blog_article:_("pillarpage_blog"),whitepaper:_("pillarpage_whitepaper"),e_book:_("pillarpage_ebook"),research:_("pillarpage_research"),guide:_("pillarpage_guide"),tool:_("pillarpage_tool"),podcast:_("pillarpage_podcast"),video:_("pillarpage_video")},v=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=e?c+1:c-1;if(o(l),d.current){let e=window.innerWidth<1200?4:5;d.current.style.display=(l+1)*e>t.length?"none":"block"}setTimeout(()=>{u.current&&(u.current.style.transform="translateX(-".concat(100*l,"%)"))},100)};return(0,a.jsxs)("div",{className:"c-resource-overview__topics",children:[(0,a.jsx)(n.A,{fluid:!0,className:"c-resource-overview__topics--mobile",children:(0,a.jsx)(b.A,{title:_.raw("pillarpage_contenttypetitle"),children:t.map((e,s)=>(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(h.A.Item,{as:"button",onClick:()=>r(e.label),children:[(0,a.jsx)("input",{type:"checkbox",checked:l.includes(e.label),readOnly:!0})," ",p[e.label]||e.label]}),s!==t.length-1&&(0,a.jsx)(h.A.Divider,{})]},e.label))})}),(0,a.jsxs)("div",{className:"c-resource-overview__topics--desktop",children:[(0,a.jsx)("span",{className:"c-resource-overview__topics--desktop-title",children:_.raw("pillarpage_contenttypetitle")}),c>0&&(0,a.jsx)("button",{onClick:()=>v(!1),className:"c-resource-overview__topics--desktop__btn prev",type:"button","aria-label":"back"}),(0,a.jsx)("div",{className:"c-resource-overview__topics--desktop__list",children:(0,a.jsx)("div",{className:"c-resource-overview__topics--desktop__list-inner",ref:u,children:t.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>r(e.label),className:"c-resource-overview__topics--desktop__list-item ".concat(l.includes(e.label)?"active":""),children:p[e.label]||e.label},e.label))})}),c<t.length-1&&(0,a.jsx)("button",{onClick:()=>v(!0),className:"c-resource-overview__topics--desktop__btn ".concat(t.length>4?"moreThan4Topics":""," ").concat(t.length>5?"moreThan5Topics":""," next"),type:"button",ref:d,children:_.raw("pillarpage_next")})]})]})};var m=l(32033),g=l(8045),f=l(50281),x=l(65364);let j=d()("66MRVKRIPJ","438005ba5e6b4a7d84199d402cb7326a").initIndex("prd_COUNTRY_WEBSITE_SORT_DATE"),w=e=>{let{page:t,pageNumber:l,algoliaHits:u,nbPages:d}=e,h=(0,o.useRouter)(),b=(0,s.c)(),w=(0,i.useRef)(null),[k,A]=(0,i.useState)(u),[N,y]=(0,i.useState)(l||1),[C,R]=(0,i.useState)(d),[E,O]=(0,i.useState)([]),[T,L]=(0,i.useState)([]),[S,D]=(0,i.useState)([]),P=(0,i.useCallback)(()=>{var e,t;let l=null==h?void 0:h.asPath.split("/").filter(Boolean);null==l||l.pop();let a=(null==h||null==(e=h.locale)?void 0:e.toLowerCase())||(null==(t=x.env.DEFAULTLOCALE)?void 0:t.toLowerCase());return"/".concat(a,"/").concat(null==l?void 0:l.join("/"))},[h]),F=(0,i.useCallback)(e=>{var t;y(e);let l=h.asPath.split("/").filter(Boolean);isNaN(Number(l[l.length-1]))?1!==e&&l.push(String(e)):l[l.length-1]=String(e);let a="/"+l.join("/");1!==e||isNaN(Number(l[l.length-1]))?h.push(a):(l.pop(),h.push("/"+l.join("/"))),null==(t=w.current)||t.scrollIntoView({behavior:"smooth"})},[h]);return(0,i.useEffect)(()=>{h.isReady&&(async()=>{let e=(e=>{var l;return["search_api_language:".concat(null!=(l=x.env.DEFAULTLOCALE)?l:h.locale),"group_field_machine_name:".concat("romania"),"status:true",["field_main_topic:".concat(t.id)],E.length>0?"(".concat(E.map(e=>"type:".concat(e)).join(" OR "),")"):null,"(field_start_date>".concat(e," OR field_is_event=0 OR field_is_event_always_available=1)")].filter(Boolean).join(" AND ")})(Math.floor(Date.now()/1e3));try{let t=await j.search("",{hitsPerPage:m.zp,filters:e,page:N-1});A(t.hits),R(t.nbPages)}catch(e){console.error("Algolia search failed:",e)}})()},[h.isReady,N,E]),(0,i.useEffect)(()=>{(async()=>{var e,l;let a=Math.floor(Date.now()/1e3),i=["search_api_language:".concat(null!=(l=x.env.DEFAULTLOCALE)?l:h.locale),"group_field_machine_name:".concat("romania"),"status:true",["field_main_topic:".concat(t.id)],"(field_start_date>".concat(a," OR field_is_event=0 OR field_is_event_always_available=1)")].join(" AND "),s=await j.search("",{facets:["type"],filters:i,maxValuesPerFacet:20}),r=(null==(e=s.facets)?void 0:e.type)?Object.entries(s.facets.type).map(e=>{let[t,l]=e;return{label:t,count:l}}):[];0===S.length&&r.length>0&&D(r),L(E.length>0?[...r.filter(e=>E.includes(e.label)),...r.filter(e=>!E.includes(e.label))]:r)})()},[t.id,h.locale,E]),(0,i.useEffect)(()=>{y(1)},[E]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{className:"c-resource-overview__back-btn-mobile__wrapper",children:(0,a.jsx)(r.A,{children:(0,a.jsx)(c.A,{children:(0,a.jsx)(p.A,{extraClass:"c-resource-overview__back-btn-mobile",link:{uri:{alias:P(),uri:""}},children:b.raw("pillarpage_backtooverview")})})})}),(0,a.jsx)(_.A,{hideImageOnMobile:!0,page:t}),(0,a.jsx)(v,{facetValues:T,selectedFacets:E,onRefine:e=>{O(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}}),(0,a.jsx)("div",{className:"c-resource-overview__back-btn-desktop__wrapper",children:(0,a.jsx)(p.A,{extraClass:"c-resource-overview__back-btn-desktop",link:{uri:{alias:P(),uri:""}},children:b.raw("pillarpage_backtooverview")})}),(0,a.jsx)("section",{className:"section-box c-resource-overview__scroll-to-top",ref:w,children:(0,a.jsxs)(n.A,{fluid:!0,children:[(0,a.jsx)(r.A,{className:"c-resource-overview__resources",children:k&&k.length>0?k.map(e=>(0,a.jsx)(g.A,{resource:e},e.objectID)):null}),(0,a.jsx)(r.A,{className:"mt-4",children:(0,a.jsx)(c.A,{children:(0,a.jsx)(f.A,{nbrOfPages:C,onPageChange:F,initialPage:N})})})]})})]})}},97620:(e,t,l)=>{l.d(t,{A:()=>u});var a=l(37876);l(14232);var i=l(97719),s=l(60929),r=l(40876),c=l(7918),n=l(50172),o=l(34711);let u=e=>{var t,l;let{page:u,hideImageOnMobile:d=!1}=e,_="node--homepage"===u.type,p=null==(l=u.relationships)||null==(t=l.field_media)?void 0:t.data;return(0,a.jsx)("section",{className:"section-box c-hero ".concat(p?"with-image":""),children:(0,a.jsx)(r.A,{fluid:!0,children:(0,a.jsxs)(i.A,{children:[(0,a.jsxs)(s.A,{lg:p?"6":"10",className:"c-hero__intro",children:[(0,a.jsx)("h1",{className:"mb-0",children:u.attributes.title}),u.attributes.field_subtitle?(0,a.jsx)("p",{className:"c-hero__intro-subtitle mt-4 mb-0",children:u.attributes.field_subtitle}):null,u.attributes.field_description?(0,a.jsx)(o.A,{extraClass:"c-hero__intro-description rich-text mt-4",html:u.attributes.field_description.processed}):null,u.attributes.field_button?(0,a.jsx)(n.A,{extraClass:"btn mt-4 ".concat(_?"btn--white":"btn--darker-black"),link:u.attributes.field_button,children:u.attributes.field_button.title}):null]}),(0,a.jsx)(s.A,{className:"".concat(p?"mt-4 m-lg-0 p-lg-0 align-items-lg-start ml-lg-auto":"d-none"," ").concat(d?"d-none d-lg-block":""),children:p?(0,a.jsx)(c.A,{priority:!0,item:p}):null})]})})})}}}]);

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.