PageSourceSearch

https://sdworx.ro/_next/static/chunks/6389.019b3e71f688d570.js

js sdworx.ro collected 2026-10-09 22:42:46 UTC 15,965 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6389],{6389:(e,t,l)=>{l.r(t),l.d(t,{default:()=>M});var a=l(37876),n=l(14232),i=l(96851),r=l(97719),s=l(60929),c=l(40876),o=l(89099),u=l(63435),d=l.n(u),v=l(97620),h=l(32033),_=l(50281),m=l(56557),f=l.n(m),p=l(48230),w=l.n(p),b=l(50289),x=l(34824),g=l(54587),j=l.n(g),y=l(20059),A=l(65364);let N=e=>{var t,l,n,r,s,c,o,u;let{eventItem:d}=e,v=(0,i.c)(),h=d.field_media_url||"",_=null!=(t=d.alt)?t:"no-alt",m=null!=(l=d.field_frontify_image1_download_uri)?l:"",f=null!=(n=d.field_frontify_image1_width)?n:600,p=null!=(r=d.field_frontify_image1_height)?r:400,g=null!=(s=d.field_frontify_image1_alt)?s:"no-alt",N=d.field_event_type,C=null!=(c=null==d?void 0:d.field_overview_description)?c:null==d?void 0:d.processed,R=d.title,k=1e3*d.field_start_date,O="ondemand"===N?"".concat(v.raw("eventpage_recordedon")," "):"",P=(0,x.useRouter)(),E=k?(0,b.Ay)(k,A.env.DEFAULTLOCALE||(null==P?void 0:P.locale),!0):void 0;return(0,a.jsxs)(w(),{className:"c-event-preview",prefetch:!1,href:d.url,locale:d.search_api_language,children:[(0,a.jsxs)("div",{className:"position-relative c-card__image",children:[m?(0,a.jsx)(y.A,{media:{uri:{uri:null!=(o=d.field_frontify_image1_download_uri)?o:""},alt:g,download_uri:{uri:null!=(u=d.field_frontify_image1_download_uri)?u:""},height:p,width:f},className:"tw-h-full tw-w-full tw-object-cover"}):(0,a.jsx)(j(),{src:h,alt:_,fill:!0}),N?(0,a.jsx)("div",{className:"c-event-preview__tag c-event-preview__tag--".concat(N),children:v.raw("resourcepreview_".concat(N))}):null]}),(0,a.jsxs)("div",{className:"c-event-preview__info",children:[R?(0,a.jsx)("h4",{children:R}):null,(0,a.jsxs)("div",{className:"c-event-preview__data",children:[N?(0,a.jsx)("div",{className:"c-event-preview__type c-event-preview__type--".concat(N),children:v.raw("resourcepreview_".concat(N))}):null,k?(0,a.jsxs)("div",{className:"c-event-preview__date c-event-preview__date--".concat(N),children:[O,E]}):null]}),C?(0,a.jsx)("div",{className:"c-event-preview__description text-break rich-text",children:(0,a.jsx)("div",{className:"clamp",dangerouslySetInnerHTML:{__html:C}})}):null]})]})},C={src:"/_next/static/media/event_overview_no_result.a1b869b2.svg",height:195,width:196,blurWidth:0,blurHeight:0};var R=l(2528),k=l(4920),O=l(81352),P=l(14748),E=l(50585),L=l(5820);let S=e=>{let{isFilterApplied:t,clearFilters:l}=e,n=(0,i.c)();return(0,a.jsx)("div",{className:"c-event-overview__clearFilter ".concat(t?"visible":"invisible"),children:(0,a.jsx)(L.A,{label:n.raw("eventoverview_clearfilters"),variant:"filled",disabled:!t,onClick:l,onDelete:l,color:"error"})})};var I=l(65364);let D=d()("66MRVKRIPJ","1e26419f192c2f2352e01c86dd6f2174").initIndex("prd_COUNTRY_WEBSITE_EVENT_SORTED"),M=e=>{let{page:t,pageNumber:l,algoliaHits:u,nbPages:d}=e,m=(0,o.useRouter)(),p=(0,i.c)(),w=(0,n.useRef)(null),[b,x]=(0,n.useState)(u),[g,y]=(0,n.useState)(l||1),[A,L]=(0,n.useState)(d),[M,F]=(0,n.useState)([]),[T,V]=(0,n.useState)([]),[U,z]=(0,n.useState)([]),[B,W]=(0,n.useState)([]),[H,Y]=(0,n.useState)(null),q=U.length>0||B.length>0||null!==H,X=(0,a.jsx)(R.A,{fontSize:"small"}),J=(0,a.jsx)(k.A,{fontSize:"small"}),K=(0,n.useRef)(f()()),G=(0,n.useRef)(K.current.add(1,"week")),Q=(0,n.useRef)(K.current.add(1,"month")),Z=(0,n.useRef)(K.current.add(3,"month")),$=(0,n.useRef)({past:{min:void 0,max:K.current},thisWeek:{min:K.current,max:G.current},thisMonth:{min:K.current,max:Q.current},within3Months:{min:K.current,max:Z.current},after3Months:{min:Z.current,max:void 0}}),ee=(0,n.useCallback)(()=>0===b.length?(0,a.jsxs)("div",{className:"d-flex flex-column align-items-center m-auto",children:[(0,a.jsx)(j(),{className:"mw-100 h-auto",alt:"event overview no result",src:C,width:"195",height:"195"}),(0,a.jsx)("p",{className:"c-event-overview__events-no-result-title text-center",children:p.raw("eventoverview_noresults")}),(0,a.jsx)("p",{className:"c-event-overview__events-no-result-subtitle text-center",children:p.raw("eventoverview_noresultsSubtitle")})]}):null,[b.length,p]),et=(0,n.useCallback)(e=>{var t;y(e);
1let l=m.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]))?m.push(a):(l.pop(),m.push("/"+l.join("/"))),null==(t=w.current)||t.scrollIntoView({behavior:"smooth"})},[m]),el=(0,n.useCallback)(e=>{var t;let l=["search_api_language:".concat(null!=(t=I.env.DEFAULTLOCALE)?t:m.locale),"group_field_machine_name:".concat("romania"),"(type:event OR type:event_page_v2)","status:true",U.length>0?U.map(e=>'field_event_type:"'.concat(e.label,'"')).join(" OR "):"",B.length>0?B.map(e=>'solution_type:"'.concat(e.label,'"')).join(" OR "):""];if(H)if("past"===H.value)l.push("field_is_event_always_available=1");else{let t=$.current[H.value],a=[];t.min&&a.push("field_start_date >= ".concat(Math.floor(t.min.valueOf()/1e3))),t.max&&a.push("field_start_date <= ".concat(Math.floor(t.max.valueOf()/1e3))),a.length>0?l.push("".concat(a.join(" AND "))):l.push("(field_start_date>".concat(e," OR field_is_event_always_available=1)"))}else l.push("(field_start_date>".concat(e," OR field_is_event_always_available=1)"));return l.filter(Boolean).join(" AND ")},[m.locale,H,U,B]),ea=e=>{let{facets:t,selectedValues:l,onChange:i,filterLabel:r}=e;return(0,a.jsx)(O.A,{multiple:!0,disableCloseOnSelect:!0,options:t,value:l,onChange:(e,t)=>
1{i(t)},isOptionEqualToValue:(e,t)=>e.value===t.value,getOptionLabel:e=>{var t;return null!=(t=e.displayLabel)?t:"".concat(e.label," (").concat(e.count,")")},renderOption:(e,t,l)=>{var i;let{selected:r}=l;return(0,n.createElement)("li",{...e,key:t.value,children:[(0,a.jsx)(P.A,{icon:X,checkedIcon:J,style:{marginRight:8},checked:r}),null!=(i=t.displayLabel)?i:"".concat(t.label," (").concat(t.count,")")]})},renderInput:e=>(0,a.jsx)(E.A,{...e,label:r,variant:"outlined",margin:"normal"})})};return(0,n.useEffect)(()=>{m.isReady&&(async()=>{let e=el(Math.floor(Date.now()/1e3));try{let t=await D.search("",{hitsPerPage:h.zp,filters:e,page:g-1});x(t.hits),L(t.nbPages)}catch(e){console.error("Algolia search failed:",e)}})()},[m.isReady,g,el]),(0,n.useEffect)(()=>{(async()=>{var e,t,l;let a=Math.floor(Date.now()/1e3),n=["search_api_language:".concat(null!=(l=I.env.DEFAULTLOCALE)?l:m.locale),"group_field_machine_name:".concat("romania"),"status:true","(type:event OR type:event_page_v2)"];if((null==H?void 0:H.value)==="past")n.push("field_is_event_always_available=1");else{let e=H?$.current[H.value]:null,t=[];(null==e?void 0:e.min)&&t.push("field_start_date >= ".concat(Math.floor(e.min.valueOf()/1e3))),(null==e?void 0:e.max)&&t.push("field_start_date <= ".concat(Math.floor(e.max.valueOf()/1e3))),t.length>0?n.push("".concat(t.join(" AND "))):n.push("(field_start_date>".concat(a," OR field_is_event_always_available=1)"))}let i=U.length>0?U.map(e=>'field_event_type:"'.concat(e.label,'"')).join(" OR "):"",r=B.length>0?B.map(e=>'solution_type:"'.concat(e.label,'"')).join(" OR "):"",s=await D.search("",{facets:["field_event_type"],filters:[...n,r].filter(Boolean).join(" AND "),maxValuesPerFacet:20}),c=await D.search("",{facets:["solution_type"],filters:[...n,i].filter(Boolean).join(" AND "),maxValuesPerFacet:20}),o=(null==(e=s.facets)?void 0:e.field_event_type)?Object.entries(s.facets.field_event_type).map(e=>{let[t,l]=e;return{label:t,value:t,count:l}}):[],u=(null==(t=c.facets)?void 0:t.solution_type)?Object.entries(c.facets.solution_type).map(e=>{let[t,l]=e;return{label:t,value:t,count:l}}):[];V(o),F(u)})()},[t.id,m.locale,U,B,H]),(0,n.useEffect)(()=>{y(1)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.A,{hideImageOnMobile:!0,page:t}),(0,a.jsx)("section",{className:"c-event-overview__filterSection",children:(0,a.jsxs)(r.A,{children:[(0,a.jsx)(s.A,{xs:12,children:(0,a.jsx)("h2",{className:"c-event-overview__filterTitle",children:p.raw("eventoverview_filtertitle")})}),(0,a.jsx)(s.A,{xs:12,className:"c-event-overview__filterCardCol",children:(0,a.jsx)("div",{className:"c-event-overview__filterCard",children:(0,a.jsxs)(r.A,{className:"c-event-overview__filterCard--row",children:[(0,a.jsx)(s.A,{xs:12,md:4,className:"c-event-overview__filterCard--autocompleteCol",children:(0,a.jsx)(ea,{facets:((e,t)=>e.filter(e=>(null==e?void 0:e.label)&&"undefined"!==e.label).sort((e,t)=>e.label.toLowerCase().localeCompare(t.label.toLowerCase())).map(e=>{var l,a;return{label:e.label,value:e.label,count:e.count,displayLabel:"".concat(null!=(a=null==t||null==(l=t.raw)?void 0:l.call(t,"resourcepreview_".concat(e.label)))?a:e.label," (").concat(e.count,")")}}))(T,p),selectedValues:U,onChange:z,filterLabel:p.raw("eventoverview_eventtypes")})}),(0,a.jsx)(s.A,{xs:12,md:4,className:"c-event-overview__filterCard--autocompleteCol",children:(0,a.jsx)(e=>{let{selectedRange:t,setSelectedRange:l}=e,i=[{label:p.raw("eventoverview_daterangeopts_alwaysAvailable"),value:"past"},{label:p.raw("eventoverview_daterangeopts_withinoneweek"),value:"thisWeek"},{label:p.raw("eventoverview_daterangeopts_withinonemonth"),value:"thisMonth"},{label:p.raw("eventoverview_daterangeopts_withinthreemonths"),value:"within3Months"},{label:p.raw("eventoverview_daterangeopts_laterthanthreemonths"),value:"after3Months"}];return(0,a.jsx)(O.A,{options:i,value:t,onChange:(e,t)=>
1{l(t)},isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,l)=>{let{selected:i}=l;return(0,n.createElement)("li",{...e,key:t.value,children:[(0,a.jsx)(P.A,{icon:X,checkedIcon:J,style:{marginRight:8},checked:i}),t.label]})},renderInput:e=>(0,a.jsx)(E.A,{...e,label:p.raw("eventoverview_daterange"),variant:"outlined",margin:"normal"}),disableCloseOnSelect:!0,disablePortal:!0})},{selectedRange:H,setSelectedRange:Y})}),(0,a.jsx)(s.A,{xs:12,md:4,className:"c-event-overview__filterCard--autocompleteCol",children:(0,a.jsx)(ea,{facets:M.filter(e=>(null==e?void 0:e.label)&&"undefined"!==e.label).sort((e,t)=>e.label.toLowerCase().localeCompare(t.label.toLowerCase())).map(e=>({label:e.label,value:e.label,count:e.count,displayLabel:"".concat(e.label," (").concat(e.count,")")})),selectedValues:B,onChange:W,filterLabel:p.raw("eventoverview_solutiontypes")})}),(0,a.jsx)(r.A,{children:(0,a.jsx)(s.A,{xs:12,className:"c-event-overview__clearFilterCol",children:(0,a.jsx)(S,{isFilterApplied:q,clearFilters:()=>{z([]),W([]),Y(null)}})})})]})})})]})}),(0,a.jsx)("section",{className:"section-box c-resource-overview__scroll-to-top",ref:w,children:(0,a.jsxs)(c.A,{fluid:!0,children:[(0,a.jsx)("div",{className:"c-event-overview__events",children:b.map(e=>(0,a.jsx)(N,{eventItem:e},e.objectID))}),ee(),(0,a.jsx)(r.A,{className:"mt-4",children:(0,a.jsx)(s.A,{children:(0,a.jsx)(_.A,{nbrOfPages:A,onPageChange:et,initialPage:g})})})]})})]})}},20059:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(37876),n=l(54587),i=l.n(n),r=l(58780);let s=e=>{var t,l,n,s;let{media:c,fallbackAlt:o,className:u="",widthFallback:d=1200,heightFallback:v=900,priority:h=!1,loading:_,...m}=e,f=(0,r.g)(c,{fallbackAlt:o});if(!f)return null;let p="image/svg+xml"===f.mimetype||(null==c||null==(l=c.uri)||null==(t=l.uri)?void 0:t.endsWith(".svg"))||(null==c||null==(s=c.download_uri)||null==(n=s.uri)?void 0:n.endsWith(".svg")),w=m.style&&Object.prototype.hasOwnProperty.call(m.style,"objectPosition"),b=f.objectPosition&&!w?{...m.style,objectPosition:f.objectPosition}:m.style;return(0,a.jsx)(i(),{src:f.src,alt:f.alt,...!m.fill&&{width:f.width||d,height:f.height||v},className:u,priority:h,loading:_,unoptimized:p,...m,style:b})}},50281:(e,t,l)=>{l.d(t,{A:()=>d});var a=l(37876),n=l(14232),i=l(39925),r=l(16347),s=l(96851),c=l(89099),o=l(10314),u=l(32033);let d=e=>{let{onPageChange:t,initialPage:l,activePageIndex:d,...v}=e,h=(0,c.useRouter)(),_=(0,s.c)(),m=(0,r.A)("(min-width:1200px)"),f=v.nbrOfPages,p=v.nbrOfItems,w=v.nbrOfItemsPerPage,b=(0,u.bP)(null==h?void 0:h.asPath),[x,g]=(0,n.useState)(l||1),j=(0,n.useCallback)(()=>null!=f?f:Math.ceil(p?p/(w||1):0),[w,p,f]),y=(0,n.useCallback)((e,l)=>{g(e),null==t||t(e,l)},[t]);d!==x&&d&&y(d,!!d);let A=(0,n.useCallback)(e=>{e.preventDefault(),1!==x&&y(x-1)},[x,y]),N=(0,n.useCallback)(e=>{e.preventDefault(),y(+e.target.innerText)},[y]),C=(0,n.useCallback)(e=>{e.preventDefault(),x!==j()&&y(x+1)},[x,j,y]),R=(0,n.useCallback)(()=>{let e,t=[],l=2*!!m,n=x-l,r=x+l,s=n>2,c=r<j()-1;for(s&&t.push((0,a.jsx)(i.A.Ellipsis,{disabled:!0},"ellipsis-before")),e=n;e<=r;e++)e>1&&e<j()&&t.push((0,a.jsx)(i.A.Item,{className:"".concat(x===e?"active":""),onClick:N,href:"".concat("https://www.sdworx.ro","/").concat(h.locale).concat((0,o.R)(b,e)),children:e},"page-".concat(e)));return c&&t.push((0,a.jsx)(i.A.Ellipsis,{disabled:!0},"ellipsis-after")),t},[x,m,j,N,b,h.locale]),k=(0,n.useCallback)(()=>{let e=()=>(0,a.jsx)(i.A.Item,{className:"".concat(1===x?"active":""),onClick:N,href:"".concat("https://www.sdworx.ro","/").concat(h.locale).concat((0,o.R)(b,1)),children:1},"page-first");return 1>=j()?e():(0,a.jsxs)(a.Fragment,{children:[e(),R(),(0,a.jsx)(i.A.Item,{className:"".concat(x===j()?"active":""),onClick:N,href:"".concat("https://www.sdworx.ro","/").concat(h.locale).concat((0,o.R)(b,j())),children:j()},"page-last")]})},[x,j,N,R,b,h.locale]);return(0,a.jsx)("div",{className:"d-flex justify-content-center w-100",children:(0,a.jsxs)(i.A,{className:"align-items-center c-pagination",children:[(0,a.jsx)(i.A.Prev,{title:"Prev",className:"d-inline-flex flex-row align-items-center c-pagination-prev",disabled:1===x,onClick:A,href:1===x?void 0:"".concat("https://www.sdworx.ro","/").concat(h.locale).concat((0,o.R)(b,x-1)),children:m?_("pagination_prev"):null}),k(),(0,a.jsx)(i.A.Next,{title:"Next",className:"d-inline-flex flex-row align-items-center c-pagination-next",disabled:x===j(),onClick:C,href:x===j()?void 0:"".concat("https://www.sdworx.ro","/").concat(h.locale).concat((0,o.R)(b,x+1)),children:m?_("pagination_next"):null})]})})}},58780:(e,t,l)=>{l.d(t,{g:()=>n});var a=l(65364);function n(e,t){var l,n,i,r;if(!e)return null;let s=(null==(l=e.uri)?void 0:l.uri)||(null==(n=e.download_uri)?void 0:n.uri);if(!s)return null;
1let c=(null==(i=e.alt)?void 0:i.trim())||(null==t||null==(r=t.fallbackAlt)?void 0:r.trim())||"alt text";return{src:function(e){let t=a.env.NEXT_PUBLIC_FRONTIFY_MEDIA_PROXY_PATH||"/api/frontify-media";try{let l=new URL(e),a=new URLSearchParams({h:l.hostname,p:"".concat(l.pathname).concat(l.search)});return"".concat(t,"?").concat(a.toString())}catch(t){return e}}(s),alt:c,filename:e.filename,mimetype:e.mimetype,filesize:e.filesize,createdAt:e.created_at,objectPosition:function(e){let t=null==e?void 0:e["0"],l=null==e?void 0:e["1"];if("number"==typeof t&&"number"==typeof l&&Number.isFinite(t)&&Number.isFinite(l))return"".concat(100*t,"% ").concat(100*l,"%")}(e.focal_point),width:e.width,height:e.height}}},97620:(e,t,l)=>{l.d(t,{A:()=>u});var a=l(37876);l(14232);var n=l(97719),i=l(60929),r=l(40876),s=l(7918),c=l(50172),o=l(34711);let u=e=>{var t,l;let{page:u,hideImageOnMobile:d=!1}=e,v="node--homepage"===u.type,h=null==(l=u.relationships)||null==(t=l.field_media)?void 0:t.data;return(0,a.jsx)("section",{className:"section-box c-hero ".concat(h?"with-image":""),children:(0,a.jsx)(r.A,{fluid:!0,children:(0,a.jsxs)(n.A,{children:[(0,a.jsxs)(i.A,{lg:h?"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)(c.A,{extraClass:"btn mt-4 ".concat(v?"btn--white":"btn--darker-black"),link:u.attributes.field_button,children:u.attributes.field_button.title}):null]}),(0,a.jsx)(i.A,{className:"".concat(h?"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:h?(0,a.jsx)(s.A,{priority:!0,item:h}):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.