(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7825],{56486:(e,t,s)=>{Promise.resolve().then(s.bind(s,44917))},44917:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var i=s(95155),r=s(94577),a=s(92501),l=s(11051),n=s(89229),c=s(66462),o=s(12115),d=s(83391);function m(e){let{params:t}=e,s=(0,d.wA)(),{data:m,loading:h,error:u}=(0,d.d4)(e=>e.office.employees),{data:x}=(0,d.d4)(e=>e.office.divisions),g=(0,o.use)(t);return((0,o.useEffect)(()=>{(null==g?void 0:g.slug)&&s((0,l.H)(g.slug))},[null==g?void 0:g.slug,s]),h)?(0,i.jsx)(a.R,{}):u?(0,i.jsxs)("div",{children:["Error: ",u]}):(console.log(x),(0,i.jsx)("div",{className:"py-16 md:py-24",children:(0,i.jsxs)("div",{className:"container px-4 md:px-6 mx-auto",children:[(0,i.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative inline-block mb-12",children:(0,i.jsxs)("h3",{className:"text-2xl md:text-4xl font-bold tracking-tight relative inline-block pb-5 ",children:[x.find(e=>e.slug===g.slug).name,(0,i.jsx)(r.aH,{className:"absolute bottom-0 right-0"})]})}),(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8",children:m.map((e,t)=>(0,i.jsxs)(n.P.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.5,delay:.1*t},className:"bg-white rounded-lg shadow-md overflow-hidden",children:[(0,i.jsx)(n.P.div,{whileHover:{scale:1.02},transition:{duration:.2},className:"aspect-w-1 aspect-h-1 lg:min-h-[345px] min-h-[250px] bg-gray-100",children:(0,i.jsx)("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover "})}),(0,i.jsxs)("div",{className:"p-6",children:[(0,i.jsx)("h3",{className:"text-xl font-semibold mb-1 text-center",children:e.name}),(0,i.jsx)("p",{className:"text-gray-600 mb-1 text-center",children:e.position}),(0,i.jsxs)("p",{className:"text-gray-500 text-sm text-center flex items-center gap-2 justify-center",children:[(0,i.jsx)(c.A,{className:"w-4 h-4"}),e.contact]})]})]},e.id))})]})}))}},94577:(e,t,s)=>{"use strict";s.d(t,{YF:()=>r,aH:()=>a});var i=s(95155);let r=e=>{let{className:t}=e;return(0,i.jsx)("svg",{width:"61",height:"9",viewBox:"0 0 61 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("path",{d:"M1 7.5C9.57664 2.97226 33.3839 -3.36658 60 7.5",stroke:"#0D1830",strokeWidth:"2",strokeLinecap:"round"})})},a=e=>{let{className:t}=e;return(0,i.jsx)("svg",{className:t,width:"168",height:"14",viewBox:"0 0 168 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1 13C25.1309 3.94452 92.1141 -8.73316 167 13",stroke:"#0D1830",strokeWidth:"2",strokeLinecap:"round"})})}},92501:(e,t,s)=>{"use strict";s.d(t,{R:()=>r});var i=s(95155);function r(){return(0,i.jsx)("div",{className:"flex items-center justify-center min-h-[700px]",children:(0,i.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"})})}},11051:(e,t,s)=>{"use strict";s.d(t,{H:()=>l,P:()=>a});var i=s(37397),r=s(57142);let a=()=>async e=>{try{e((0,r.RN)(!0));let t=await i.F.getOfficeDivisions();e((0,r.zX)(t.data))}catch(t){e((0,r.n5)(t.message))}},l=e=>async t=>{try{t((0,r.ey)(!0));let s=await i.F.getDivisionWiseEmployees(e);t((0,r.wp)(s.data))}catch(e){t((0,r.G7)(e.message))}}},67401:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(12115);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,i.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:c,className:o="",children:d,iconNode:m,...h}=e;return(0,i.createElement)("svg",{ref:t,...l,width:r,height:r,stroke:s,strokeWidth:c?24*Number(n)/Number(r):n,className:a("lucide",o),...h},[...m.map(e=>{let[t,s]=e;return(0,i.createElement)(t,s)}),...Array.isArray(d)?d:[d]])}),c=(e,t)=>{let s=(0,i.forwardRef)((s,l)=>{let{className:c,...o}=s;return(0,i.createElement)(n,{ref:l,iconNode:t,className:a("lucide-".concat(r(e)),c),...o})});return s.displayName="".concat(e),s}},66462:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});let i=(0,s(67401).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])}},e=>{var t=t=>e(e.s=t);e.O(0,[9229,3391,8405,4980,8441,1517,7358],()=>t(56486)),_N_E=e.O()}]);