1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6912],{46411:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(95155),l=r(12115),s=r(29342),a=r(83204),i=r(30265),o=r(97414),c=r(57719),u=r(27983),d=r(98604);let f=e=>{let{type:t,label:r,isOpen:l,onToggle:s,data:o,selectedIds:c,buttonRef:u}=e,d=(()=>{if("topic"===t){var e;let t=null==(e=o[0])?void 0:e.id;return c.has(t)&&1===c.size?0:Array.from(c).filter(e=>e!==t).length}return c.size})();return(0,n.jsxs)("button",{ref:u,className:"btn btn-default filter-toggle-button btn-icon ".concat(l?"is-open":""),onClick:s,"aria-expanded":l,"aria-controls":"".concat(t,"-filter-panel-content"),"aria-label":"".concat(r," filters"),children:[r,d>0&&(0,n.jsx)("span",{className:"filter-count","data-count":d}),l?(0,n.jsx)(a.A,{size:16}):(0,n.jsx)(i.A,{size:16})]})},p=e=>{let{type:t,label:r,isOpen:l,onApply:a,data:i,selectedIds:c,onChange:d,instancePrefix:f,applyButtonText:p,panelRef:h,gridRef:v,applyButtonRef:m,activeIndex:x,onFocus:y,allFilterButtonText:g,hideAllOption:b=!1}=e;return l?(0,n.jsx)(s.FocusTrap,{active:l,focusTrapOptions:{allowOutsideClick:!0},children:(0,n.jsxs)("div",{ref:h,id:"".concat(t,"-filter-panel-content"),className:"filter-panel",role:"dialog","aria-modal":"true","aria-labelledby":"".concat(t,"-filter-panel-heading"),tabIndex:-1,children:[(0,n.jsx)("h2",{id:"".concat(t,"-filter-panel-heading"),style:{display:"none"},children:r}),(0,n.jsxs)("div",{className:"filter-section",children:[(0,n.jsx)("h3",{id:"".concat(t,"-filter-heading"),className:"filter-section-heading",children:r}),(0,n.jsx)("div",{ref:v,className:"filter-options-grid",role:"group","aria-labelledby":"".concat(t,"-filter-heading"),tabIndex:-1,children:(b&&"topic"===t?i.slice(1):i).map((e,r)=>(0,n.jsxs)("div",{className:"filter-chip ".concat("product"===t&&e.icon?"product-filter-chip":""," ").concat(c.has(e.id)?"selected":""," ").concat("all"===e.id?"all":""),children:[(0,n.jsx)("input",{type:"checkbox",id:"".concat(t,"-filter-").concat(f,"-").concat(e.id),value:e.id,checked:c.has(e.id),onChange:()=>d(e.id),className:"visually-hidden-unless-focused",tabIndex:"topic"===t&&void 0!==x?r===x?0:-1:void 0,onFocus:"topic"===t&&y?()=>{r!==x&&y(r)}:void 0}),(0,n.jsxs)("label",{htmlFor:"".concat(t,"-filter-").concat(f,"-").concat(e.id),children:["product"===t&&e.icon&&(0,n.jsx)("div",{className:"filter-chip-product-icon",children:e.icon.url&&(0,n.jsx)(u.A,{field:e.icon,priority:!1,full_height:!1,sizes:"26px"})}),(0,n.jsxs)("span",{children:["topic"===t&&"All"===e.id&&g?g:e.name,(0,n.jsx)("span",{className:"sr-only",children:" filter"})]}),(0,n.jsx)("div",{className:"checkmark",children:(0,n.jsx)(o.A,{size:24})})]})]},e.id))})]}),(0,n.jsx)("button",{ref:m,className:"btn apply-filters-button",onClick:a,children:p})]})}):null},h=e=>{let{onApplyFilters:t,onRemoveTagFilter:r,onRemoveSectorFilter:s,onRemoveProductFilter:a,onClearAllFilters:i,onPanelToggle:o,instancePrefix:u,tagsData:h,sectorsData:v,productsData:m,allFilterButtonText:x,filterExpandButtonText:y,filterBySectorText:g,filterByProductText:b,applyFiltersButtonText:w,initialTagIds:j=[],initialSectorIds:k=[],initialProductOptionIds:E=[],lang:C,hideSectorFilter:A=!1,productButtonLabel:L,hideAllOption:N=!1}=e,D=d.WD.filter(C),F=d.WD.category(C),B=d.WD.product(C),[R,T]=(0,l.useState)(!1),[S,I]=(0,l.useState)(!1),[z,O]=(0,l.useState)(!1),M=(0,l.useRef)(null),_=(0,l.useRef)(null),K=(0,l.useRef)(null),V=(0,l.useRef)(null),W=(0,l.useRef)(null),U=(0,l.useRef)(null),q=(0,l.useRef)(null),P=(0,l.useRef)(null),H=(0,l.useRef)(null),G=(0,l.useRef)(null),Z=(0,l.useRef)(null),J=(0,l.useRef)(null),Q=(0,l.useRef)(null),[X,Y]=(0,l.useState)(()=>{var e;return new Set(j.length>0?j:(null==(e=h[0])?void 0:e.id)?[h[0].id]:[])}),[$,ee]=(0,l.useState)(new Set(k)),[et,er]=(0,l.useState)(new Set(E)),[en,el]=(0,l.useState)(0),[es,ea]=(0,l.useState)({showLeft:!1,showRight:!0});(0,l.useEffect)(()=>{if(j.length>0)Y(new Set(j));else{var e;Y(new Set((null==(e=h[0])?void 0:e.id)?[h[0].id]:[]))}ee(new Set(k)),er(new Set(E))},[j,k,E,h]);let ei=()=>{var e;let r=null==(e=h[0])?void 0:e.id;t({tagIds:X.has(r)&&1===X.size?[]:Array.from(X).filter(e=>e!==r),sectorIds:Array.from($),productOptionIds:Array.from(et)}),document.activeElement instanceof HTMLElement&&document.activeElement.blur(),T(!1),I(!1),O(!1),null==o||o(!1)},eo=e=>{let t=!({topic:R,sector:S,product:z})[e];T(!1),I(!1),O(!1),"topic"===e?T(t):"sector"===e?I(t):"product"===e&&O(t),null==o||o(t)};return(0,l.useEffect)(()=>{var e,t,r,n,l,s,a,i,o,c,u,d;if(!R&&!S&&!z)return;let f=e=>{if(!e)return;let t=e.querySelector('input[type="checkbox"]:not([disabled])');null==t||t.focus()},p=(e,t)=>{var r,n,l;if(!t.current)return;let s=Array.from(t.current.querySelectorAll('input[type="checkbox"]:not([disabled])'));if(0===s.length)return;let a=s.findIndex(e=>e===document.activeElement);if(-1===a&&document.activeElement===t.current){if("ArrowDown"===e.key||"ArrowRight"===e.key){e.preventDefault(),null==(n=s[0])||n.focus();return}if("ArrowUp"===e.key||"ArrowLeft"===e.key){e.preventDefault(),null==(l=s[s.length-1])||l.focus();return}}if(-1===a)return;let i=a;switch(e.key){case"ArrowUp":case"ArrowLeft":e.preventDefault(),i=(a-1+s.length)%s.length;break;case"ArrowDown":case"ArrowRight":e.preventDefault(),i=(a+1)%s.length;break;default:return!1}return null==(r=s[i])||r.focus(),!0},h=e=>{"Escape"===e.key&&(T(!1),I(!1),O(!1))};document.addEventListener("keydown",h);let v=e=>{if("Tab"===e.key&&!e.shiftKey){var t;
1e.preventDefault(),null==(t=q.current)||t.focus()}},m=e=>{if("Tab"===e.key&&!e.shiftKey){var t;e.preventDefault(),null==(t=H.current)||t.focus()}},x=e=>{if("Tab"===e.key&&!e.shiftKey){var t;e.preventDefault(),null==(t=G.current)||t.focus()}};null==(e=M.current)||e.addEventListener("keydown",v),null==(t=_.current)||t.addEventListener("keydown",m),null==(r=K.current)||r.addEventListener("keydown",x);let y=()=>{R&&f(q.current)},g=e=>{if(R&&"Tab"===e.key){var t,r;e.preventDefault(),e.shiftKey?null==(t=M.current)||t.focus():null==(r=Z.current)||r.focus()}};R&&(null==(u=q.current)||u.addEventListener("focus",y),null==(d=q.current)||d.addEventListener("keydown",g,{capture:!1}));let b=()=>{f(H.current)},w=e=>{if(!p(e,H)&&"Tab"===e.key){var t,r,n,l;e.preventDefault(),e.shiftKey?S?null==(t=_.current)||t.focus():null==(r=M.current)||r.focus():S?null==(n=J.current)||n.focus():null==(l=G.current)||l.focus()}};null==(n=H.current)||n.addEventListener("focus",b),null==(l=H.current)||l.addEventListener("keydown",w);let j=()=>{f(G.current)},k=e=>{if(!p(e,G)&&"Tab"===e.key){var t,r,n,l;e.preventDefault(),e.shiftKey?null==(t=H.current)||t.focus():z?null==(r=Q.current)||r.focus():S?null==(n=J.current)||n.focus():null==(l=Z.current)||l.focus()}};null==(s=G.current)||s.addEventListener("focus",j),null==(a=G.current)||a.addEventListener("keydown",k);let E=e=>{if("Tab"===e.key&&e.shiftKey){var t;e.preventDefault(),null==(t=q.current)||t.focus()}},C=e=>{if("Tab"===e.key&&e.shiftKey){var t;e.preventDefault(),null==(t=H.current)||t.focus()}},A=e=>{if("Tab"===e.key&&e.shiftKey){var t;e.preventDefault(),null==(t=G.current)||t.focus()}};return null==(i=Z.current)||i.addEventListener("keydown",E),null==(o=J.current)||o.addEventListener("keydown",C),null==(c=Q.current)||c.addEventListener("keydown",A),()=>{var e,t,r,n,l,s,a,i,o,c,u,d;document.removeEventListener("keydown",h),null==(e=M.current)||e.removeEventListener("keydown",v),null==(t=_.current)||t.removeEventListener("keydown",m),null==(r=K.current)||r.removeEventListener("keydown",x),null==(n=q.current)||n.removeEventListener("focus",y),null==(l=q.current)||l.removeEventListener("keydown",g),null==(s=H.current)||s.removeEventListener("focus",b),null==(a=H.current)||a.removeEventListener("keydown",w),null==(i=G.current)||i.removeEventListener("focus",j),null==(o=G.current)||o.removeEventListener("keydown",k),null==(c=Z.current)||c.removeEventListener("keydown",E),null==(u=J.current)||u.removeEventListener("keydown",C),null==(d=Q.current)||d.removeEventListener("keydown",A)}},[R,S,z]),(0,l.useEffect)(()=>{q.current&&0!==h.length&&Array.from(q.current.querySelectorAll('input[type="checkbox"]')).forEach((e,t)=>{t===en?e.tabIndex=0:e.tabIndex=-1})},[en,h.length]),(0,l.useEffect)(()=>{let e=q.current;if(!e||0===h.length||!R||"ontouchstart"in window||navigator.maxTouchPoints>0)return;let t=t=>{let r=Array.from(e.querySelectorAll('input[type="checkbox"]'));if(0===r.length)return;let n=en;switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),n=en>0?en-1:r.length-1;break;case"ArrowDown":case"ArrowRight":t.preventDefault(),n=en<r.length-1?en+1:0;break;case"Home":t.preventDefault(),n=0;break;case"End":t.preventDefault(),n=r.length-1;break;default:return}if(n!==en){var l;el(n),null==(l=r[n])||l.focus()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[en,h.length,el,R]),(0,l.useEffect)(()=>{let e=q.current,t=P.current;if(!e||!t)return;let r=()=>{let{scrollLeft:r,scrollWidth:n,clientWidth:l}=e,s=r>5,a=r<n-l-5;ea({showLeft:s,showRight:a}),s?t.classList.add("show-left-gradient"):t.classList.remove("show-left-gradient"),a?t.classList.add("show-right-gradient"):t.classList.remove("show-right-gradient")},n=setTimeout(()=>{r()},100);return e.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0}),()=>{clearTimeout(n),e.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[h.length]),(0,l.useEffect)(()=>{let e=q.current,t=P.current;if(!e||!t)return;let r=setTimeout(()=>{let{scrollLeft:r,scrollWidth:n,clientWidth:l}=e,s=r>5,a=r<n-l-5;ea({showLeft:s,showRight:a}),s?t.classList.add("show-left-gradient"):t.classList.remove("show-left-gradient"),a?t.classList.add("show-right-gradient"):t.classList.remove("show-right-gradient")},50);return()=>clearTimeout(r)},[X]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{ref:P,className:"filters-wrapper",children:[(0,n.jsxs)("div",{className:"filter-by-container flex flex-column md:flex-row md:items-center gap-4 mt-sm",children:[(0,n.jsxs)("span",{className:"text-black font-medium text-base flex items-center gap-1",children:[(0,n.jsx)(c.A,{size:20}
1),D.filterBy]}),(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[h.length>0&&(0,n.jsx)(f,{type:"topic",label:F.topics,isOpen:R,onToggle:()=>eo("topic"),data:h,selectedIds:X,buttonRef:M}),v.length>0&&!A&&(0,n.jsx)(f,{type:"sector",label:F.sectors,isOpen:S,onToggle:()=>eo("sector"),data:v,selectedIds:$,buttonRef:_}),(0,n.jsx)(f,{type:"product",label:L||B.product,isOpen:z,onToggle:()=>eo("product"),data:m,selectedIds:et,buttonRef:K})]})]}),(0,n.jsx)(p,{type:"topic",label:D.filterByTopic,isOpen:R,onApply:ei,data:h,selectedIds:X,onChange:e=>{Y(t=>{var r;let n=new Set(t),l=null==(r=h[0])?void 0:r.id;return e===l?n.has(l)&&1===n.size||(n.clear(),n.add(l)):(n.has(e)?n.delete(e):n.add(e),l&&n.delete(l)),0===n.size&&l&&n.add(l),n})},instancePrefix:u,applyButtonText:w,panelRef:V,gridRef:q,applyButtonRef:Z,activeIndex:en,onFocus:el,allFilterButtonText:x,hideAllOption:N}),v.length>0&&!A&&(0,n.jsx)(p,{type:"sector",label:g,isOpen:S,onApply:ei,data:v,selectedIds:$,onChange:e=>{ee(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},instancePrefix:u,applyButtonText:w,panelRef:W,gridRef:H,applyButtonRef:J}),(0,n.jsx)(p,{type:"product",label:b,isOpen:z,onApply:ei,data:m,selectedIds:et,onChange:e=>{er(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},instancePrefix:u,applyButtonText:w,panelRef:U,gridRef:G,applyButtonRef:Q})]})})}},54629:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(95155);r(12115);var l=r(98604);let s=e=>{let{lang:t,greyscale:r=!1,strokeWidth:s=5,animationDuration:a="3s",className:i}=e,o=l.WD.common(t),c=l.WD.media(t);return(0,n.jsxs)("svg",{width:"108",height:"44",viewBox:"0 0 108 44",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":c.loadingAnimation,role:"img",overflow:"visible",className:i,children:[(0,n.jsx)("title",{children:o.loading}),(0,n.jsx)("path",{d:"M73.4185 16.1445C79.3421 13.1506 85.2673 11.5658 90.5527 11.5658C94.4187 11.5658 97.8838 12.4125 100.866 14.09C103.884 15.9451 105.996 18.6899 105.996 21.7119C106.005 21.8066 105.996 21.9033 105.996 21.998C105.996 22.0928 106.005 22.2014 105.996 22.2961C105.996 25.3449 103.884 28.0529 100.866 29.9061C97.8838 31.5836 94.4204 32.4302 90.5527 32.4302C85.2673 32.4302 79.3438 30.8474 73.4185 27.8516C73.4185 27.8516 68.4982 25.0866 64.6595 22.2131C57.697 17.001 50.6884 12.4875 49.5726 11.7059C41.3834 5.97079 30.6419 2 23.3365 2C17.9913 2 13.2023 3.62226 9.08044 6.83916C4.90736 10.3935 2.00531 15.5889 2.00531 21.4514C1.99337 21.6329 2.0053 21.8165 2.0053 22C2.0053 22.1835 1.99337 22.3671 2.00531 22.5486C2.00531 28.3763 4.90736 33.6045 9.08044 37.1608C13.2023 40.3777 17.9913 42 23.3365 42C30.6419 42 40.1567 37.6562 50.2806 31.5816C51.3691 30.9284 57.4411 27.1589 64.1647 22.1026C69.2045 18.3114 73.4185 16.1445 73.4185 16.1445Z",stroke:r?"#BFBDBA":"url
1(#paint0_linear_loading)",strokeWidth:s,strokeMiterlimit:"10",strokeDasharray:"280 280",children:(0,n.jsx)("animate",{attributeName:"stroke-dashoffset",from:"260",to:"0",dur:a,repeatCount:"indefinite",calcMode:"linear"})}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_loading",x1:"2",y1:"22",x2:"106",y2:"21.9974",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#FCD46D",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#FCD46D; #B6B4FF; #FCD46D",dur:a,repeatCount:"indefinite"})}),(0,n.jsx)("stop",{offset:"0.2",stopColor:"#F2EF85",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#F2EF85; #49C1F5; #F2EF85",dur:a,repeatCount:"indefinite"})}),(0,n.jsx)("stop",{offset:"0.4",stopColor:"#BAE58E",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#BAE58E; #23C2BD; #BAE58E",dur:a,repeatCount:"indefinite"})}),(0,n.jsx)("stop",{offset:"0.6",stopColor:"#23C2BD",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#23C2BD; #BAE58E; #23C2BD",dur:a,repeatCount:"indefinite"})}),(0,n.jsx)("stop",{offset:"0.8",stopColor:"#49C1F5",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#49C1F5; #F2EF85; #49C1F5",dur:a,repeatCount:"indefinite"})}),(0,n.jsx)("stop",{offset:"1",stopColor:"#B6B4FF",children:(0,n.jsx)("animate",{attributeName:"stop-color",values:"#B6B4FF; #FCD46D; #B6B4FF",dur:a,repeatCount:"indefinite"})})]})})]})}},62170:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(95155);r(12115);let l=e=>{let{children:t}=e;return(0,n.jsx)("span",{className:"sr-only",children:t})}},83893:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(95155),l=r(12115),s=r(87086),a=r(27983),i=r(98604);let o=e=>{let{appliedFilters:t,isAnyPanelOpen:r,onRemoveTagFilter:o,onRemoveSectorFilter:c,onRemoveProductFilter:u,onClearAllFilters:d,tagsData:f=[],sectorsData:p,productsData:h,lang:v,hideSectorFilters:m=!1}=e,x=l.useMemo(()=>new Map((f||[]).map(e=>[e.id,e])),[f]),y=l.useMemo(()=>new Map(p.map(e=>[e.id,e])),[p]),g=l.useMemo(()=>new Map(h.map(e=>[e.id,e])),[h]),b=m?[]:t.sectorIds;if(!(t.tagIds.length>0||b.length>0||t.productOptionIds.length>0)||r)return null;let w=e=>{var t;return(null==(t=x.get(e))?void 0:t.name)||e},j=e=>{var t;return(null==(t=y.get(e))?void 0:t.name)||e},k=e=>{var t;return(null==(t=g.get(e))?void 0:t.name)||e},E=e=>{var t;return null==(t=g.get(e))?void 0:t.icon},C=i.WD.filter(v),A=i.WD.common(v);return(0,n.jsxs)("div",{className:"applied-filters-container",children:[(0,n.jsx)("div",{className:"applied-filters-header",children:(0,n.jsx)("span",{className:"applied-filters-label",children:C.appliedFilters})}),(0,n.jsxs)("div",{className:"applied-filters-list",children:[t.tagIds.map(e=>(0,n.jsxs)("div",{className:"filter-chip applied-filter-chip",children:[(0,n.jsx)("span",{className:"applied-filter-label",children:w(e)}),(0,n.jsx)("button",{className:"remove-filter-button",onClick:()=>null==o?void 0:o(e),"aria-label":(0,i.V4)(v,"removeFilterValue",{filterValue:w(e)}),children:(0,n.jsx)(s.A,{size:16})})]},"tag-".concat(e))),!m&&t.sectorIds.map(e=>(0,n.jsxs)("div",{className:"filter-chip applied-filter-chip",children:[(0,n.jsx)("span",{className:"applied-filter-label",children:j(e)}),(0,n.jsx)("button",{className:"remove-filter-button",onClick:()=>c(e),"aria-label":(0,i.V4)(v,"removeFilterValue",{filterValue:j(e)}),children:(0,n.jsx)(s.A,{size:16})})]},"sector-".concat(e))),t.productOptionIds.map(e=>{var t;return(0,n.jsxs)("div",{className:"filter-chip applied-filter-chip ".concat(E(e)?"product-filter-chip":""),children:[E(e)&&(0,n.jsx)("div",{className:"filter-chip-product-icon",children:(null==(t=E(e))?void 0:t.url)&&(0,n.jsx)(a.A,{field:E(e),priority:!1,full_height:!1,sizes:"20px"})}),(0,n.jsx)("span",{className:"applied-filter-label",children:k(e)}),(0,n.jsx)("button",{className:"remove-filter-button",onClick:()=>u(e),"aria-label":(0,i.V4)(v,"removeFilterValue",{filterValue:k(e)}),children:(0,n.jsx)(s.A,{size:16})})]},"product-".concat(e))}),(0,n.jsx)("button",{className:"clear-all-filters-button",onClick:d,"aria-label":C.clearAllAppliedFilters,children:A.clearAll||"Clear all"})]})]})}}}]);
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.