module.exports=[312806,a=>{"use strict";a.s(["extractDataFromPagination",0,a=>a?.reduce((a,b)=>a.concat(b.data),[])])},603925,701187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(277032);a.s(["InfiniteLoader",0,({hasMore:a,loadMore:e,loading:f=!1,children:g})=>{let h=(({threshold:a=.1,root:b=null,rootMargin:d="50%",enabled:e=!1,onScreen:f=()=>null})=>{let g=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let c=g?.current;if(!e||!c)return;let h=new IntersectionObserver(a=>a.forEach(a=>{a.isIntersecting&&f()}),{threshold:a,root:b,rootMargin:d});return h.observe(c),()=>{h.unobserve(c)}},[g?.current,e]),g})({enabled:!!a&&!f,onScreen:()=>{e()},rootMargin:"30px",threshold:.2});return(0,b.jsxs)(b.Fragment,{children:[g,f&&(0,b.jsx)("div",{className:"flex justify-center my-7",children:(0,b.jsx)(d.default,{})}),(0,b.jsx)("span",{"aria-label":"bottom",ref:h,style:{visibility:"hidden"}})]})}],701187),a.s([],603925)},163384,a=>{"use strict";var b=a.i(187924);a.s(["default",0,({size:a,...c})=>(0,b.jsx)("svg",{width:a||"30",height:a||"30",...c,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,b.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"})})])},205107,a=>{"use strict";var b=a.i(75708),c=a.i(993209),d=a.i(395940);a.i(353010);var e=a.i(774412);a.s(["infoService",0,{terms:a=>(0,b.default)((0,c.buildUrlQueryParams)("v1/rest/term",a),{redirectOnError:!0,cache:"no-cache"}),privacy:a=>(0,b.default)((0,c.buildUrlQueryParams)("v1/rest/policy",a),{redirectOnError:!0}),faq:a=>(0,b.default)((0,c.buildUrlQueryParams)("v1/rest/faqs/paginate",a),{cache:"no-cache"}),referrals:a=>fetch(`${e.BASE_URL}${(0,c.buildUrlQueryParams)("v1/rest/referral",a)}`,{headers:{"Content-Type":"application/json",Authorization:(0,d.getCookie)("token"),METHOD:"GET"}}).then(a=>a.json()).catch(a=>a),getPages:a=>(0,b.default)((0,c.buildUrlQueryParams)("v1/rest/pages/paginate",a)),careerList:a=>(0,b.default)((0,c.buildUrlQueryParams)("v1/rest/careers/paginate",a)),getCareer:(a,d)=>(0,b.default)((0,c.buildUrlQueryParams)(`v1/rest/careers/${a}`,d))}])},346608,a=>{"use strict";var b=a.i(187924),c=a.i(434012),d=a.i(846997),e=a.i(205107),f=a.i(819721),g=a.i(312806);a.i(603925);var h=a.i(701187);a.i(733937);var i=a.i(280656),j=a.i(238246),k=a.i(163384);let l=(0,f.default)(()=>a.A(211020).then(a=>({default:a.Empty})),{loadableGenerated:{modules:[464193]}});a.s(["default",0,()=>{let{language:a}=(0,d.useSettings)(),{data:f,isLoading:m,hasNextPage:n,fetchNextPage:o,isFetchingNextPage:p}=(0,c.useInfiniteQuery)(["careers",a?.locale],({pageParam:b})=>e.infoService.careerList({lang:a?.locale,page:b}),{getNextPageParam:a=>a.links.next&&a.meta.current_page+1}),q=(0,g.extractDataFromPagination)(f?.pages);return q&&0===q.length?(0,b.jsxs)("section",{className:"xl:container px-4 py-7",children:[(0,b.jsx)("h1",{className:"md:text-head text-xl font-semibold",children:(0,b.jsx)(i.Translate,{value:"careers"})}),(0,b.jsx)(l,{animated:!1,smallText:!0})]}):(0,b.jsxs)("section",{className:"xl:container px-4 py-7",children:[(0,b.jsx)("h1",{className:"text-head  font-semibold",children:(0,b.jsx)(i.Translate,{value:"careers"})}),(0,b.jsx)(h.InfiniteLoader,{hasMore:n,loadMore:o,loading:p,children:(0,b.jsx)("div",{className:"flex flex-col gap-3 my-7",children:m?Array.from([,,,,,].keys()).map(a=>(0,b.jsx)("div",{className:"h-20 rounded-button bg-gray-300 animate-pulse"},a)):q?.map(a=>(0,b.jsx)(j.default,{href:`/careers/${a.id}`,className:"border md:border-none border-gray-link rounded-button md:rounded-none",children:(0,b.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,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-lg font-semibold",children:a.translation?.title}),(0,b.jsx)("span",{className:"text-sm text-gray-field",children:(0,b.jsx)(i.Translate,{value:"role"})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-lg font-semibold",children:a.category?.translation?.title}),(0,b.jsx)("span",{className:"text-sm text-gray-field",children:(0,b.jsx)(i.Translate,{value:"category"})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-lg font-semibold",children:a.translation?.address}),(0,b.jsx)("span",{className:"text-sm text-gray-field",children:(0,b.jsx)(i.Translate,{value:"location"})})]}),(0,b.jsx)("div",{className:"hidden md:block",children:(0,b.jsx)(k.default,{style:{rotate:"180deg"}})})]},a.id)}))})})]})}])},211020,a=>{a.v(b=>Promise.all(["server/chunks/ssr/components_2bfd8ae6._.js","server/chunks/ssr/public_lottie_empty_review_json_650bb03c._.js"].map(b=>a.l(b))).then(()=>b(626739)))}];

//# sourceMappingURL=_a439c3f4._.js.map