PageSourceSearch

https://sdworx.ro/_next/static/chunks/6778.710ca3198b4d4189.js

js sdworx.ro collected 2026-10-09 22:42:55 UTC 6,988 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6778],{26778:(e,l,t)=>{t.r(l),t.d(l,{default:()=>A});var a=t(37876),i=t(14232),c=t(97620),s=t(89852),n=t.n(s),r=t(89099),o=t.n(r),d=t(40876),u=t(97719),h=t(60929),p=t(32033),x=t(96851),b=t(48230),m=t.n(b),_=t(54587),v=t.n(_),f=t(65364);let g=e=>{var l,t;let{publication:i}=e,c=(0,x.c)(),s=i.type,n=i.title,r=null!=(l=null==i?void 0:i.field_overview_description)?l:null==i?void 0:i.processed,d=new Date(1e3*i.field_publication_date).toLocaleDateString(f.env.DEFAULTLOCALE||(null===o()||void 0===o()?void 0:o().locale)),u=i.field_media_url||"",h=null!=(t=i.alt)?t:"no-alt";return(0,a.jsx)(m(),{className:"c-publication-card c-publication-card__animate d-flex flex-column col-lg-4 col-md-6",href:i.url,locale:i.search_api_language,prefetch:!1,children:(0,a.jsxs)("div",{className:"c-publication-card__preview d-flex flex-column bg-white",children:[(0,a.jsxs)("div",{className:"position-relative c-card__image",children:[(0,a.jsx)(v(),{src:u,alt:h,fill:!0}),(0,a.jsx)("div",{className:"c-publication-card__tag ".concat(s," position-absolute"),children:(0,a.jsx)("p",{children:c.raw("resourcepreview_".concat(s))})})]}),(0,a.jsxs)("div",{className:"c-publication-card__text-wrapper d-flex flex-column",children:[(0,a.jsx)("div",{className:"c-publication-card__title",children:(0,a.jsx)("p",{children:n})}),r?(0,a.jsx)("div",{className:"c-publication-card__description",children:(0,a.jsx)("div",{className:"clamp",dangerouslySetInnerHTML:{__html:r}})}):null,(0,a.jsx)("span",{className:"c-publication-card__date d-flex",children:d})]})]})})};var j=t(50281),w=t(65364);let N=n()("66MRVKRIPJ","438005ba5e6b4a7d84199d402cb7326a").initIndex("prd_COUNTRY_WEBSITE_SORT_DATE"),A=e=>{let{page:l,children:t,pageNumber:s,algoliaHits:n,nbPages:o}=e,x=(0,r.useRouter)(),b=i.useRef(null),[m,_]=(0,i.useState)(n),[v,f]=(0,i.useState)(s||1),[A,k]=(0,i.useState)(o),C=(0,i.useCallback)(e=>{var l;f(e);let t=x.asPath.split("/").filter(Boolean);t.length>0&&!isNaN(Number(t[t.length-1]))?t[t.length-1]=String(e):1!==e&&t.push(String(e));let a="/"+t.join("/");1===e?(t.length>0&&!isNaN(Number(t[t.length-1]))&&t.pop(),x.push("/"+t.join("/"))):x.push(a),null==(l=b.current)||l.scrollIntoView({behavior:"smooth"})},[x]);return(0,i.useEffect)(()=>{x.isReady&&(async()=>{try{var e;let l=await N.search("",{hitsPerPage:p.zp,filters:"search_api_language:".concat(null!=(e=w.env.DEFAULTLOCALE)?e:x.locale," AND group_field_machine_name:").concat("romania"," AND status:true AND (type:whitepaper OR type:e_book OR type:research OR type:guide)"),page:(v||1)-1});_(l.hits),k(l.nbPages),C(v)}catch(e){console.error("Algolia search failed:",e)}})()},[x.isReady,v]),(0,a.jsxs)("section",{className:"c-publication-overview",children:[(0,a.jsxs)("div",{className:"c-publication-overview__hero",children:[(0,a.jsx)(c.A,{page:l}),t]}),(0,a.jsx)("section",{className:"section-box c-publication-overview__scroll-to-top",ref:b,children:(0,a.jsxs)(d.A,{fluid:!0,children:[(0,a.jsx)("div",{className:"c-publication-overview__overview-title",children:(0,a.jsx)("p",{children:l.attributes.field_overview_title})}),(0,a.jsx)(u.A,{className:"c-publication-overview__publications",children:m.map(e=>(0,a.jsx)(g,{publication:e},e.objectID))}),(0,a.jsx)(u.A,{className:"mt-4",children:(0,a.jsx)(h.A,{children:(0,a.jsx)(j.A,{nbrOfPages:o,onPageChange:C,initialPage:s})})})]})})]})}},50281:(e,l,t)=>{t.d(l,{A:()=>u});var a=t(37876),i=t(14232),c=t(39925),s=t(16347),n=t(96851),r=t(89099),o=t(10314),d=t(32033);let u=e=>{let{onPageChange:l,initialPage:t,activePageIndex:u,...h}=e,p=(0,r.useRouter)(),x=(0,n.c)(),b=(0,s.A)("(min-width:1200px)"),m=h.nbrOfPages,_=h.nbrOfItems,v=h.nbrOfItemsPerPage,f=(0,d.bP)(null==p?void 0:p.asPath),[g,j]=(0,i.useState)(t||1),w=(0,i.useCallback)(()=>null!=m?m:Math.ceil(_?_/(v||1):0),[v,_,m]),N=(0,i.useCallback)((e,t)=>{j(e),null==l||l(e,t)},[l]);u!==g&&u&&N(u,!!u);let A=(0,i.useCallback)(e=>{e.preventDefault(),1!==g&&N(g-1)},[g,N]),k=(0,i.useCallback)(e=>{e.preventDefault(),N(+e.target.innerText)},[N]),C=(0,i.useCallback)(e=>{e.preventDefault(),g!==w()&&N(g+1)},[g,w,N]),R=(0,i.useCallback)(()=>{let e,l=[],t=2*!!b,i=g-t,s=g+t,n=i>2,r=s<w()-1;for(n&&l.push((0,a.jsx)(c.A.Ellipsis,{disabled:!0},"ellipsis-before")),e=i;e<=s;e++)e>1&&e<w()&&l.push((0,a.jsx)(c.A.Item,{className:"".concat(g===e?"active":""),onClick:k,href:"".concat("https://www.sdworx.ro","/").concat(p.locale).concat((0,o.R)(f,e)),children:e},"page-".concat(e)));return r&&l.push((0,a.jsx)(c.A.Ellipsis,{disabled:!0},"ellipsis-after")),l},[g,b,w,k,f,p.locale]),P=(0,i.useCallback)(()=>{let e=()=>(0,a.jsx)(c.A.Item,{className:"".concat(1===g?"active":""),onClick:k,href:"".concat("https://www.sdworx.ro","/").concat(p.locale).concat((0,o.R)(f,1)),children:1},"page-first");return 1>=w()?e():(0,a.jsxs)(a.Fragment,{children:[e(),R(),(0,a.jsx)(c.A.Item,{className:"".concat(g===w()?"active":""),onClick:k,href:"".concat("https://www.sdworx.ro","/").concat(p.locale).concat((0,o.R)(f,w())),children:w()},"page-last")]})},[g,w,k,R,f,p.locale]);return(0,a.jsx)("div",{className:"d-flex justify-content-center w-100",children:(0,a.jsxs)(c.A,{className:"align-items-center c-pagination",children:[(0,a.jsx)(c.A.Prev,{title:"Prev",className:"d-inline-flex flex-row align-items-center c-pagination-prev",disabled:1===g,onClick:A,href:1===g?void 0:"".concat("https://www.sdworx.ro","/").concat(p.locale).concat((0,o.R)(f,g-1)),children:b?x("pagination_prev"):null}),P(),(0,a.jsx)(c.A.Next,{title:"Next",className:"d-inline-flex flex-row align-items-center c-pagination-next",disabled:g===w(),onClick:C,href:g===w()?void 0:"".concat("https://www.sdworx.ro","/").concat(p.locale).concat((0,o.R)(f,g+1)),children:b?x("pagination_next"):null})]})})}},97620:(e,l,t)=>{t.d(l,{A:()=>d});var a=t(37876);t(14232);var i=t(97719),c=t(60929),s=t(40876),n=t(7918),r=t(50172),o=t(34711);let d=e=>{var l,t;let{page:d,hideImageOnMobile:u=!1}=e,h="node--homepage"===d.type,p=null==(t=d.relationships)||null==(l=t.field_media)?void 0:l.data;return(0,a.jsx)("section",{className:"section-box c-hero ".concat(p?"with-image":""),children:(0,a.jsx)(s.A,{fluid:!0,children:(0,a.jsxs)(i.A,{children:[(0,a.jsxs)(c.A,{lg:p?"6":"10",className:"c-hero__intro",children:[(0,a.jsx)("h1",{className:"mb-0",children:d.attributes.title}),d.attributes.field_subtitle?(0,a.jsx)("p",{className:"c-hero__intro-subtitle mt-4 mb-0",children:d.attributes.field_subtitle}):null,d.attributes.field_description?(0,a.jsx)(o.A,{extraClass:"c-hero__intro-description rich-text mt-4",html:d.attributes.field_description.processed}):null,d.attributes.field_button?(0,a.jsx)(r.A,{extraClass:"btn mt-4 ".concat(h?"btn--white":"btn--darker-black"),link:d.attributes.field_button,children:d.attributes.field_button.title}):null]}),(0,a.jsx)(c.A,{className:"".concat(p?"mt-4 m-lg-0 p-lg-0 align-items-lg-start ml-lg-auto":"d-none"," ").concat(u?"d-none d-lg-block":""),children:p?(0,a.jsx)(n.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.