1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{564:function(e,t,n){n.r(t);var r=n(85893),a=n(67294),l=n(65293);let i=l.RS.map(e=>e.label),s=l.Jb.map(e=>e.label),o=["Last Created (Newest)","Last Created (Oldest)"];t.default=e=>{let{isOpen:t,onClose:n,onApplyFilter:l,selectedFilters:d,onSelectionChange:f}=e,[u,c]=(0,a.useState)([]),[p,g]=(0,a.useState)([]),[x,b]=(0,a.useState)([]),[y,m]=(0,a.useState)(!1),[h,S]=(0,a.useState)(!1),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(t)S(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>m(!0))});else{m(!1);let e=setTimeout(()=>S(!1),300);return()=>clearTimeout(e)}},[t]),(0,a.useEffect)(()=>{d&&(c(i.filter(e=>d.includes(e))),g(s.filter(e=>d.includes(e))),b(o.filter(e=>d.includes(e))))},[d]),(0,a.useEffect)(()=>{let e=u.length+p.length+x.length;null==f||f(e)},[u,p,x]);let T=(e,t,n)=>{n(t.includes(e)?t.filter(t=>t!==e):[...t,e])};if(!h)return null;let k=(e,t,n)=>e.map(e=>{let a=t.includes(e);return(0,r.jsxs)("button",{onClick:()=>T(e,t,n),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"7px 14px",borderRadius:"20px",border:"1px solid ".concat(a?"#0183ff":"rgba(0,43,84,0.2)"),background:a?"rgba(1,131,255,0.06)":"transparent",cursor:"pointer",transition:"all 0.25s ease",fontFamily:'"inter", sans-serif',fontSize:"14px",fontWeight:500,color:a?"#0183ff":"#002b54",whiteSpace:"nowrap"},children:[e,(0,r.jsx)("span",{style:{fontSize:"16px",lineHeight:"1",transition:"transform 0.25s ease",display:"inline-block",transform:a?"rotate(45deg)":"rotate(0deg)",fontWeight:300},children:"+"})]},e)});return(0,r.jsx)("div",{style:{position:"fixed",inset:0,zIndex:9,background:y?"rgba(0,0,0,0.3)":"rgba(0,0,0,0)",transition:"background 0.3s ease"},onClick:e=>{e.target===e.currentTarget&&n()},children:(0,r.jsxs)("div",{ref:v,style:{position:"absolute",top:"56px",left:0,right:0,background:"#f7fafd",borderBottom:"1px solid rgba(0,43,84,0.08)",boxShadow:"0 8px 24px rgba(0,43,84,0.1)",padding:"24px 32px 20px",transform:y?"translateY(0)":"translateY(-20px)",opacity:y?1:0,transition:"transform 0.3s ease, opacity 0.3s ease",maxWidth:"1280px",margin:"0 auto"},children:[(0,r.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,r.jsx)("h3",{style:{fontFamily:'"switzer", sans-serif',fontSize:"16px",fontWeight:700,color:"#002b54",marginBottom:"12px"},children:"Topics"}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:k(i,u,c)})]}),(0,r.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,r.jsx)("h3",{style:{fontFamily:'"switzer", sans-serif',fontSize:"16px",fontWeight:700,color:"#002b54",marginBottom:"12px"},children:"Countries"}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:k(s,p,g)})]}),(0,r.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,r.jsx)("h3",{style:{fontFamily:'"switzer", sans-serif',fontSize:"16px",fontWeight:700,color:"#002b54",marginBottom:"12px"},children:"Sort By"}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:k(o,x,b)})]}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"16px",paddingTop:"12px",borderTop:"1px solid rgba(0,43,84,0.08)"},children:[(0,r.jsx)("button",{onClick:()=>{c([]),g([]),b([])},style:{background:"none",border:"none",cursor:"pointer",fontFamily:'"inter", sans-serif',fontSize:"14px",fontWeight:600,color:"#0183ff",padding:"8px 16px"},children:"Clear All"}),(0,r.jsx)("button",{onClick:()=>{l([...u,...p,...x],u,p,x)},style:{background:"#0183ff",color:"#fff",border:"none",borderRadius:"24px",padding:"10px 24px",cursor:"pointer",fontFamily:'"switzer", sans-serif',fontSize:"14px",fontWeight:700,transition:"background 0.2s ease"},onMouseOver:e=>e.currentTarget.style.background="#0066cc",onMouseOut:e=>e.currentTarget.style.background="#0183ff",children:"Apply Filter"})]})]})})}},65293:function(e,t,n){n.d(t,{JN:function(){return d},Jb:function(){return u},Js:function(){return l},NU:function(){return s},RS:function(){return f},bu:function(){return c},gf:function(){return r},jL:function(){return i}});let r=new Set(["Global","US","India","SEA","Middle East","USA","Malaysia","Philippines","UAE","Singapore","Indonesia"]),a=e=>{var t;return e&&"string"!=typeof e&&("string"==typeof e.name&&e.name||"string"==typeof(null==e?void 0:null===(t=e.content)||void 0===t?void 0:t.name)&&e.content.name)||""},l=e=>{for(let t of(null==e?void 0:e.enrichedTags)||[]){let e=a(t);if(e&&!r.has(e))return e}return""},i=e=>{for(let t of(null==e?void 0:e.enrichedTags)||[]){let e=a(t);if(e&&!r.has(e))return t}return null},s=e=>{let t=e=>{if(!e)return"";let t=String(e).replace(/^\/+/,"").replace(/^tag\//i,"");return t?"/tag/".concat(t):""},n=((null==e?void 0:e.enrichedTags)||[]).find(e=>{let t=a(e);return t&&!r.has(t)});return n&&(t(n.full_slug)||t(n.slug))||""},o={"Employee Experience":"EX","Payroll & Compliance":"Payroll","Workforce Management":"WFM","HR Tech by Industry":"By Industry","Talent Acquisition":"Recruitment"},d=e=>{var t;return null!==(t=o[e])&&void 0!==t?t:e},f=[{label:"Darwinbox Insights",tags:["Darwinbox Insights"]},{label:"Product Updates",tags:["Product Updates"]},{label:"Talent Performance",tags:["Talent Performance"]},{label:"Employee Experience",tags:["Employee Experience"]},{label:"HR Tech Trends",tags:["HR Tech Trends"]},{label:"HR Tech by Industry",tags:["HR Tech by Industry"]},{label:"HR Strategy",tags:["HR Strategy"]},{label:"People Analytics",tags:["People Analytics"]},{label:"Workforce Management",tags:["Workforce Management"]},{label:"Payroll & Compliance",tags:["Payroll & Compliance"]},{label:"Talent Acquisition",tags:["Talent Acquisition"]},{label:"Customer Stories",tags:["Customer Stories"]},{label:"Others",tags:["Others"]}],u=[{label:"Global",tags:["Global"]},{label:"US",tags:["US"]},{label:"India",tags:["India"]},{label:"SEA",tags:["SEA"]},{label:"Middle East",tags:["Middle East"]}],c=function(e,t){var n,r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,i=new Map(a.map(e=>[e.label,e.tags])),s=new Map(l.map(e=>[e.label,e.tags])),o=new Set,d=new Set;for(let t of e)for(let e of null!==(n=i.get(t))&&void 0!==n?n:[t])o.add(e);for(let e of t)for(let t of null!==(r=s.get(e))&&void 0!==r?r:[e])d.add(t);return{topicNames:Array.from(o),countryTagNames:Array.from(d)}}}}]);
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.