(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,681409,e=>{"use strict";e.s(["extractDataFromPagination",0,e=>e?.reduce((e,r)=>e.concat(r.data),[])])},580991,58105,e=>{"use strict";var r=e.i(843476),a=e.i(271645),t=e.i(90775);e.s(["InfiniteLoader",0,({hasMore:e,loadMore:s,loading:l=!1,children:i})=>{let n=(({threshold:e=.1,root:r=null,rootMargin:t="50%",enabled:s=!1,onScreen:l=()=>null})=>{let i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let a=i?.current;if(!s||!a)return;let n=new IntersectionObserver(e=>e.forEach(e=>{e.isIntersecting&&l()}),{threshold:e,root:r,rootMargin:t});return n.observe(a),()=>{n.unobserve(a)}},[i?.current,s]),i})({enabled:!!e&&!l,onScreen:()=>{s()},rootMargin:"30px",threshold:.2});return(0,r.jsxs)(r.Fragment,{children:[i,l&&(0,r.jsx)("div",{className:"flex justify-center my-7",children:(0,r.jsx)(t.default,{})}),(0,r.jsx)("span",{"aria-label":"bottom",ref:n,style:{visibility:"hidden"}})]})}],58105),e.s([],580991)},305911,e=>{"use strict";var r=e.i(843476);e.s(["default",0,({size:e,...a})=>(0,r.jsx)("svg",{width:e||"30",height:e||"30",...a,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M17.5 9.375C17.5 9.375 12.5 14.375 12.5 15C12.5 15.625 17.5 20.625 17.5 20.625",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})])},550432,e=>{"use strict";var r=e.i(626711),a=e.i(181325),t=e.i(3903);e.i(263672);var s=e.i(287228);e.s(["infoService",0,{terms:e=>(0,r.default)((0,a.buildUrlQueryParams)("v1/rest/term",e),{redirectOnError:!0,cache:"no-cache"}),privacy:e=>(0,r.default)((0,a.buildUrlQueryParams)("v1/rest/policy",e),{redirectOnError:!0}),faq:e=>(0,r.default)((0,a.buildUrlQueryParams)("v1/rest/faqs/paginate",e),{cache:"no-cache"}),referrals:e=>fetch(`${s.BASE_URL}${(0,a.buildUrlQueryParams)("v1/rest/referral",e)}`,{headers:{"Content-Type":"application/json",Authorization:(0,t.getCookie)("token"),METHOD:"GET"}}).then(e=>e.json()).catch(e=>e),getPages:e=>(0,r.default)((0,a.buildUrlQueryParams)("v1/rest/pages/paginate",e)),careerList:e=>(0,r.default)((0,a.buildUrlQueryParams)("v1/rest/careers/paginate",e)),getCareer:(e,t)=>(0,r.default)((0,a.buildUrlQueryParams)(`v1/rest/careers/${e}`,t))}])},976900,e=>{"use strict";var r=e.i(843476),a=e.i(341016),t=e.i(655607),s=e.i(550432),l=e.i(770703),i=e.i(681409);e.i(580991);var n=e.i(58105);e.i(924467);var d=e.i(253978),c=e.i(522016),o=e.i(305911);let u=(0,l.default)(()=>e.A(322836).then(e=>({default:e.Empty})),{loadableGenerated:{modules:[464193]}});e.s(["default",0,()=>{let{language:e}=(0,t.useSettings)(),{data:l,isLoading:x,hasNextPage:m,fetchNextPage:h,isFetchingNextPage:f}=(0,a.useInfiniteQuery)(["careers",e?.locale],({pageParam:r})=>s.infoService.careerList({lang:e?.locale,page:r}),{getNextPageParam:e=>e.links.next&&e.meta.current_page+1}),g=(0,i.extractDataFromPagination)(l?.pages);return g&&0===g.length?(0,r.jsxs)("section",{className:"xl:container px-4 py-7",children:[(0,r.jsx)("h1",{className:"md:text-head text-xl font-semibold",children:(0,r.jsx)(d.Translate,{value:"careers"})}),(0,r.jsx)(u,{animated:!1,smallText:!0})]}):(0,r.jsxs)("section",{className:"xl:container px-4 py-7",children:[(0,r.jsx)("h1",{className:"text-head  font-semibold",children:(0,r.jsx)(d.Translate,{value:"careers"})}),(0,r.jsx)(n.InfiniteLoader,{hasMore:m,loadMore:h,loading:f,children:(0,r.jsx)("div",{className:"flex flex-col gap-3 my-7",children:x?Array.from([,,,,,].keys()).map(e=>(0,r.jsx)("div",{className:"h-20 rounded-button bg-gray-300 animate-pulse"},e)):g?.map(e=>(0,r.jsx)(c.default,{href:`/careers/${e.id}`,className:"border md:border-none border-gray-link rounded-button md:rounded-none",children:(0,r.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-5 md:border-b px-3 md:px-0 border-gray-link py-3 ralative",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-lg font-semibold",children:e.translation?.title}),(0,r.jsx)("span",{className:"text-sm text-gray-field",children:(0,r.jsx)(d.Translate,{value:"role"})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-lg font-semibold",children:e.category?.translation?.title}),(0,r.jsx)("span",{className:"text-sm text-gray-field",children:(0,r.jsx)(d.Translate,{value:"category"})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-lg font-semibold",children:e.translation?.address}),(0,r.jsx)("span",{className:"text-sm text-gray-field",children:(0,r.jsx)(d.Translate,{value:"location"})})]}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(o.default,{style:{rotate:"180deg"}})})]},e.id)}))})})]})}])},322836,e=>{e.v(r=>Promise.all(["static/chunks/3063a9b82d851654.js"].map(r=>e.l(r))).then(()=>r(464193)))}]);