1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2912],{2900:(e,t,r)=>{r.d(t,{Z:()=>k});var a=r(724364),n=r.n(a),l=r(244034),i=r(130911),o=r(794921),s=r(931296),c=r.n(s);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f={budget:!1,free:!1,exchange:!1,displayValue:null,regularPrice:null};function m(e,t,r){var a=c()(e,{key:"price"},void 0),l=n()(a,"value",{}),i=n()(l,"type",""),o=n()(l,"value"),s=n()(l,"currency",""),m=n()(l,"arranged",!1),p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},f),g=n()(l,"converted_value",null),h=n()(l,"converted_currency",null);return p.displayValue=n()(l,"label",null),"exchange"===i?(p.exchange=!0,p):"budget"===i?(p.budget=!0,p):"free"===i||0===o?(p.free=!0,p):void 0!==o&&o>0?g?(p.regularPrice={value:Math.floor(g),currencyCode:h,currencySymbol:n()(t,[h,"symbol"],""),negotiable:m,priceFormatConfig:r},p):(p.regularPrice={value:o,currencyCode:s,currencySymbol:n()(t,[s,"symbol"],""),negotiable:m,priceFormatConfig:r},p):null}var p=r(844074),g=r(130110),h=r(460733),y=r(346491),b=e=>{var t=n()(e,"city.name",null),r=n()(e,"region.name",null),a=n()(e,"district.name",null);return{cityName:t,cityId:n()(e,"city.id",0),cityNormalizedName:n()(e,"city.normalized_name",null),regionName:r,regionId:n()(e,"region.id",0),regionNormalizedName:n()(e,"region.normalized_name",null),districtName:a,districtId:n()(e,"district.id",0),pathName:(0,y.Z)(t,r,a)}},v=r(181091),j=e=>{if(e)return e.reduce((e,t)=>{var r=(0,i._)(t);return r&&e.push(r),e},[])},x=e=>{var t,r;return(null==e||null===(t=e.find(e=>"state"===e.key))||void 0===t||null===(r=t.value)||void 0===r?void 0:r.label)||""};function k(e,t){var r,{id:a,title:i,description:s,category:c,map:d,photos:u,business:f,created_time:y,last_refresh_time:k,url:w,promotion:_,external_url:C,params:S,user:O,shop:M,location:L,contact:P,status:N,delivery:I,protect_phone:F,safedeal:E,searchReason:R,omnibus_pushup_time:T,valid_to_time:A,isGpsrAvailable:D,gpsr:H,payAndShip:K}=e,U=n()(t,"currencies",{}),Z=n()(t,"priceFormat",{}),B=n()(t,"siteCode","");return{id:a,title:i,description:s,category:c,map:d,isBusiness:f,url:w,isHighlighted:(null==_?void 0:_.highlighted)||!1,isPromoted:(null==_?void 0:_.top_ad)||!1,promotion:_,externalUrl:C,delivery:I,protectPhone:null===F?void 0:F,createdTime:y,lastRefreshTime:k||"",pushupTime:T,validToTime:A,isActive:"active"===N,status:N,params:j(S),itemCondition:x(S),price:m(S,U,Z),salary:(0,p.o)(S,U,Z,B),partner:(0,o.v)((null==e||null===(r=e.partner)||void 0===r?void 0:r.code)||""),isJob:"job"===n()(e,"category.type"),photos:(0,g.E)(u),photosSet:(0,g.U)(u),location:L&&b(L),urlPath:w&&v.Z.getInternalAdUrl(w),contact:P&&(0,h.n)(P),user:O&&(0,l.f)(O),shop:M,safedeal:E,searchReason:R,isGpsrAvailable:D,gpsr:H,payAndShip:K}}},130911:(e,t,r)=>{r.d(t,{_:()=>l});var a=r(395325),n=["select","input","date","checkbox","checkboxes"],l=e=>{if(!e||!n.includes(e.type))return null;var{key:t,name:r,type:l}=e;if((e=>e.key===a.U.COMPATIBILITY_LIST)(e))return e.value?{key:t,name:r,type:l,value:e.value,normalizedValue:void 0}:null;var{key:i,checkboxParamKey:o,label:s}=e.value,c=t===a.U.CALENDAR;return s||c?{key:t,name:r,type:l,value:"checkbox"!==e.type?s:null,normalizedValue:i||o}
1:null}},244034:(e,t,r)=>{r.d(t,{f:()=>a});var a=e=>{var{id:t,name:r,photo:a,logo:n,other_ads_enabled:l,social_network_account_type:i,is_online:o,last_seen:s,about:c,logo_ad_page:d,company_name:u,created:f,banner_desktop:m,seller_type:p,uuid:g,verification:h,businessProfiles:y,b2c_business_page:b}=e;return{id:t,name:r,photo:a,logo:n||null,otherAdsEnabled:l,socialNetworkAccountType:i,isOnline:o,lastSeen:s,about:c,bannerDesktopURL:m,logo_ad_page:d,company_name:u,created:f,sellerType:p,uuid:g,verification:h,businessProfiles:y,b2c_business_page:b}}},395325:(e,t,r)=>{r.d(t,{U:()=>a});var a={COMPATIBILITY_LIST:"compatibility_list",COMPATIBILITY_LIST_SOURCE:"compatibility_list_source",SPECIALIZATIONS:"specializations",CALENDAR:"calendar"}},460733:(e,t,r)=>{r.d(t,{n:()=>a});var a=e=>{var{chat:t,courier:r,name:a,negotiation:n,phone:l}=e;return{chat:t,courier:r,name:a,negotiation:n,phone:l}}},794921:(e,t,r)=>{function a(e){return{code:e}}r.d(t,{v:()=>a})},130110:(e,t,r)=>{r.d(t,{E:()=>i,U:()=>o});var a=r(366263),n=r.n(a),l=[{ratio:"1x",width:389,height:272},{ratio:"2x",width:516,height:361},{ratio:"3x",width:1e3,height:700}];function i(e){return e?e.reduce((e,t)=>{var r=t.link||"",a=t.width||0,l=t.height||0;return Number.isInteger(a)&&Number.isInteger(l)&&e.push(n()(r,{width:a,height:l})),e},[]):[]}function o(e){return e?e.reduce((e,t)=>{var r=t.link||"",a=l.map(e=>{var t=e.width||0,a=e.height||0;return"".concat(n()(r,{width:t,height:a})," ").concat(e.ratio)}).join(",");return e.push(a),e},[]):[]}},844074:(e,t,r)=>{r.d(t,{o:()=>o});var a=r(931296),n=r.n(a),l=r(724364),i=r.n(l);function o(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=n()(e,{key:"olxpt"===a?"salario":"salary"},void 0);if(!l)return null;var o=i()(l,"value",{}),s=i()(o,"currency",""),c=i()(o,"converted_currency",""),d=i()(o,"arranged",!1),u=c||s;return{from:Math.round(100*i()(o,c?"converted_from":"from",0))/100,to:Math.round(100*i()(o,c?"converted_to":"to",0))/100,currencyCode:u,currencySymbol:i()(t,[u,"symbol"],""),period:i()(o,"type",""),priceFormatConfig:r,negotiable:d,label:i()(o,"label","")}}},700863:(e,t,r)=>{r.d(t,{j:()=>n});var a=r(57766),n=e=>{var{scrollFraction:t}=e,r=18*t;return(0,a.jsx)("div",{className:"mt-50 flex justify-center p-50","data-testid":"scroll-indicator",children:(0,a.jsx)("div",{className:"bg-border-subtle rounded-small relative h-50",style:{width:"".concat(36,"px")},children:(0,a.jsx)("div",{className:"rounded-small absolute top-1/2 -translate-y-1/2 transform bg-[#7F9799FF]",style:{left:"".concat(r,"px"),height:"5px",width:"".concat(18,"px")},"data-testid":"scroll-thumb"})})})}},767206:(e,t,r)=>{r.d(t,{V:()=>n});var a=r(729136);function n(){var{onScroll:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.useRef)(null),r=(0,a.useRef)(null),[n,l]=(0,a.useState)(0),[i,o]=(0,a.useState)(!1),s=(0,a.useCallback)(()=>{if(t.current){var{scrollLeft:e,scrollWidth:r,clientWidth:a}=t.current,n=r-a;l(n>0?e/n:0)}},[]),c=(0,a.useCallback)(t=>{null==e||e(t),o(!0),null!==r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(s)},[e,s]);return(0,a.useEffect)(()=>()=>{null!==r.current&&cancelAnimationFrame(r.current)},[]),{scrollContainerRef:t,scrollFraction:n,hasScrolled:i,handleScroll:c}}},21064:(e,t,r)=>{r.d(t,{N:()=>s});var a=r(2900),n=r(55581);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t,r,l){var{appConfig:o}=t,s=(null==e?void 0:e.data)||[],c=l?(0,n.n)(null==l?void 0:l.searchReason):{};
1return s.reduce((e,t,n)=>{var s;if(t){var d,u,f,m;if(null!==(d=t.category)&&void 0!==d&&d.id)t=i(i({},t),{},{category:i(i({},t.category),{},{type:null!==(u=null==r||null===(f=r[t.category.id])||void 0===f?void 0:f.type)&&void 0!==u?u:null===(m=t.category)||void 0===m?void 0:m.type})});t.searchReason=null==c?void 0:c[n]}var p=i(i({},(0,a.Z)(t,o)),{},{isNewFavouriteAd:null==l||null===(s=l.favSearchNewAds)||void 0===s?void 0:s.includes(n)});return e.concat(p)},[])}},55581:(e,t,r)=>{r.d(t,{n:()=>a});var a=e=>{if(!e||0===Object.keys(e).length)return{};var t={},r=function(e){if(!Array.isArray(n))return 1;n.forEach(r=>{t[r]=e})};for(var[a,n]of Object.entries(e))r(a);return t}},283296:(e,t,r)=>{r.r(t);var a,n,l,i,o,s,c,d,u,f,m,p,g,h={fragment:{argumentDefinitions:a=[{defaultValue:[],kind:"LocalArgument",name:"searchParameters"}],kind:"Fragment",metadata:null,name:"JobsHubFeaturedAdsQuery",selections:g=[{alias:null,args:[{kind:"Variable",name:"searchParameters",variableName:"searchParameters"}],concreteType:null,kind:"LinkedField",name:"clientCompatibleListings",plural:!1,selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"LegacyAdvert",kind:"LinkedField",name:"data",plural:!0,selections:[l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"Location",kind:"LinkedField",name:"location",plural:!1,selections:[{alias:null,args:null,concreteType:"SubLocation",kind:"LinkedField",name:"city",plural:!1,selections:s=[l,i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"normalized_name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"_nodeId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SubLocation",kind:"LinkedField",name:"district",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"SubLocation",kind:"LinkedField",name:"region",plural:!1,selections:s,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_refresh_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created_time",storageKey:null},{alias:null,args:null,concreteType:"Category",kind:"LinkedField",name:"category",plural:!1,selections:[l,c={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},o],storageKey:null},{alias:null,args:null,concreteType:"ListingContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat",storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"phone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Promotion",kind:"LinkedField",name:"promotion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"highlighted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"top_ad",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"options",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"premium_ad_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"urgent",storageKey:null}],storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,concreteType:"ListingUser",kind:"LinkedField",name:"user",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},o,{alias:null,args:null,kind:"ScalarField",name:"b2c_business_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"banner_desktop",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"banner_mobile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"company_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"logo",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"logo_ad_page",storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"photo",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{alias:null,args:null,concreteType:"AdvertParam",kind:"LinkedField",name:"params",plural:!0,selections:[f={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},i,c,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"value",plural:!1,selections:[n,{kind:"InlineFragment",selections:[f,m={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],type:"GenericParam",abstractKey:null},{kind:"InlineFragment",selections:[m,{alias:"checkboxParamKey",args:null,kind:"ScalarField",name:"key",storageKey:null}],type:"CheckboxesParam",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"from",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"to",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"arranged",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"converted_currency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"converted_from",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"converted_to",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gross",storageKey:null},c],type:"SalaryParam",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"ErrorParam",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"external_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"valid_to_time",storageKey:null},o],storageKey:null},{alias:null,args:null,concreteType:"ListingMetadata",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"search_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null}],storageKey:null}],type:"ListingSuccess",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ListingErrorDetail",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"detail",storageKey:null},u,d,{alias:null,args:null,concreteType:"ListingValidationError",kind:"LinkedField",name:"validation",plural:!0,selections:[p,{alias:null,args:null,kind:"ScalarField",name:"field",storageKey:null},d],storageKey:null}],storageKey:null}],type:"ListingError",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"JobsHubFeaturedAdsQuery",selections:g}
1,params:{cacheID:"54f57fb066201f10bf6e614e39f9596a",id:null,metadata:{},name:"JobsHubFeaturedAdsQuery",operationKind:"query",text:"query JobsHubFeaturedAdsQuery(\n $searchParameters: [SearchParameter!] = []\n) {\n clientCompatibleListings(searchParameters: $searchParameters) {\n __typename\n ... on ListingSuccess {\n __typename\n data {\n id\n location {\n city {\n id\n name\n normalized_name\n _nodeId\n }\n district {\n id\n name\n normalized_name\n _nodeId\n }\n region {\n id\n name\n normalized_name\n _nodeId\n }\n }\n last_refresh_time\n created_time\n category {\n id\n type\n _nodeId\n }\n contact {\n chat\n name\n phone\n }\n promotion {\n highlighted\n top_ad\n options\n premium_ad_page\n urgent\n }\n title\n status\n url\n user {\n id\n uuid\n _nodeId\n b2c_business_page\n banner_desktop\n banner_mobile\n company_name\n created\n logo\n logo_ad_page\n name\n photo\n }\n offer_type\n params {\n key\n name\n type\n value {\n __typename\n ... on GenericParam {\n key\n label\n }\n ... on CheckboxesParam {\n label\n checkboxParamKey: key\n }\n ... on SalaryParam {\n from\n to\n arranged\n converted_currency\n converted_from\n converted_to\n currency\n gross\n type\n }\n ... on ErrorParam {\n message\n }\n }\n }\n description\n external_url\n valid_to_time\n _nodeId\n }\n metadata {\n search_id\n source\n }\n }\n ... on ListingError {\n __typename\n error {\n code\n detail\n status\n title\n validation {\n detail\n field\n title\n }\n }\n }\n }\n}\n"}};h.hash="012aa62de0f062e8d46fd2267d0d5779",t.default=h},432276:(e,t,r)=>{r.d(t,{V:()=>n,Y:()=>l});var a=r(7376),n=(0,a.jZ)("jh_auto_redirect",null!==a.y7&&void 0!==a.y7?a.y7:void 0),l=(0,a.jZ)("jh_just_redirected",null!==a.y7&&void 0!==a.y7?a.y7:void 0)},172705:(e,t,r)=>{r.d(t,{Lg:()=>c,ZJ:()=>l,aH:()=>i,q8:()=>s,wA:()=>o});var a=r(7376),n=r(331853),l=(0,a.jZ)("preferred_landing_page"),i=e=>"REGULAR_HOMEPAGE"===e||"JOBS_HUB"===e,o=()=>{var e;return null===(e=l.getWithTTL())||void 0===e?void 0:e.landingPage},s=()=>{var e;return"JOBS_HUB"===(null===(e=l.getWithTTL())||void 0===e?void 0:e.landingPage)},c=()=>{var e;return(null===(e=l.getWithTTL())||void 0===e?void 0:e.variant)===n.W3.variants.variant}},995325:(e,t)=>{t.Z={event:{sellerListingClick:"seller_listing_click",employerProfileClick:"employer_profile_click",companyInfoClick:"company_info_click"},touchPointButton:{logo:"logo",topLogo:"top_logo",companyName:"company_name",banner:"banner",topLogoName:"top_logo_name",topName:"top_name",topText:"top_text",sellAll:"see_all",bottomLogo:"bottom_logo",bottomName:"bottom_name",bottomText:"bottom_text",learnMore:"learn_more"}}},465235:(e,t,r)=>{r.d(t,{d:()=>i});var a=r(729136),n=r(842349),l=.1;function i(e){var t=(0,a.useRef)(!1),r=(0,a.useRef)(e);r.current=e;var[i,o]=(0,n.o)({threshold:l});return(0,a.useEffect)(()=>{i&&r.current&&!t.current&&(t.current=!0,r.current())},[i]),o}},843688:(e,t,r)=>{r.d(t,{h:()=>w});var a=r(360702),n=r(868968),l=r(136928),i=r(490845),o=r(433365),s=r(729136),c=r(190102),d=r(47857),u=r(7376),f=r(892748),m=r(432276),p=r(941226),g=r(917181),h=r(92397),y=r(489751),b=r(57766),v=(0,u.jZ)("jh_tooltip_dc"),j=(0,u.jZ)("jh_tooltip_lst"),x=e=>{var{onGoHomeClick:t,onGotItClick:r}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-150 ".concat("max-w-[85vw]"),children:[(0,b.jsx)(n.NexusText,{variant:"bodySmall",color:"var(--colorsForegroundOnInverse)",children:(0,b.jsx)(i.FormattedMessage,{id:"homepage.verticalisation.2",defaultMessage:"You searched for job ads in your recent visits, so we brought you to the best place on OLX to search, save, and apply for jobs."})}),(0,b.jsxs)("div",{className:"flex justify-end gap-200",children:[(0,b.jsx)(p.Button,{size:"small",variant:"tertiary",background:"inverse",onClick:t,children:(0,b.jsx)(i.FormattedMessage,{id:"homepage.verticalisation.3",defaultMessage:"Go to homepage"})}),(0,b.jsx)(p.Button,{size:"small",variant:"tertiary",background:"inverse",onClick:r,children:(0,b.jsx)(i.FormattedMessage,{id:"homepage.verticalisation.4",defaultMessage:"Got it"})})]})]})},k=e=>{var{children:t}
1=e,r=(0,c.useHistory)(),[a,n]=(0,s.useState)(!1),{trackEvent:l}=(0,h.rS)();(0,s.useEffect)(()=>{m.Y.get()&&(m.Y.clear(),n(!0))},[]);var i=v.get(),o=j.get(),{isVisible:u,hide:p}=(0,f.h)({intervalMs:864e5,dismissedCount:i,lastSeenTimestamp:o,setDismissedCount:e=>v.set(e),setLastSeenTimestamp:e=>j.set(e),disabled:!a}),k=(0,s.useRef)(u);k.current=u;var w=e=>{k.current&&(k.current=!1,p(e))};(0,s.useEffect)(()=>()=>{w()},[]),(0,s.useEffect)(()=>{u&&l(y.l.jobsHubRedirectPopover)},[u,l]);return(0,b.jsx)(d.J,{visible:u,onClickOutside:()=>w(),placement:"bottom-start",useDefaultTrigger:!1,dataAttributes:{testid:"jobs-hub-auto-redirect-tooltip"},content:(0,b.jsx)(x,{onGoHomeClick:()=>{w(!0),l(y.l.jobsHubRedirectClick),r.push(g.H.main)},onGotItClick:()=>{l(y.l.jobsHubRedirectConfirm),w(!0)}}),children:(0,b.jsx)("span",{className:"inline-flex",children:t})})};function w(e){var{backPath:t,backButtonClassName:r,showAutoRedirectTooltip:s=!1}=e,{formatMessage:c}=(0,i.useIntl)(),d=c({id:"jobsHub.menu",defaultMessage:"Jobs"}),u=(0,b.jsx)(a.Z,{className:(0,o.p)("rounded-medium flex h-500 w-500 items-center justify-center",r),backUrl:t,children:(0,b.jsx)(l.default,{})});return(0,b.jsxs)("div",{className:"flex items-center gap-150",children:[s?(0,b.jsx)(k,{children:u}):u,(0,b.jsx)(n.NexusHeading,{variant:"headlineMedium",color:"var(--colorsForegroundPrimary)",children:d})]})}},947561:(e,t,r)=>{r.d(t,{DP:()=>a,dW:()=>n});var a={id:"JOBS-11533",variants:{trustedCompanies:"b"}},n={id:"OL-20187",variants:{filters:"b"}}},280917:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Qt});var a=r(842349),n=r(25807),l=r(433365),i=r(92397),o=r(545484),s=r(947561),c=r(258560),d=r(349837),u=r(257936),f=r(941226),m=r(167685),p=r(868968),g=r(57766);function h(e){var{title:t,subtitle:r,id:a,titleTestId:n,className:i,style:o,headingClassName:s}=e;return(0,g.jsxs)("div",{className:(0,l.p)("flex min-w-0 flex-col gap-100",i),style:o,children:[(0,g.jsx)(p.NexusHeading,{id:a,variant:"headlineMedium",color:"var(--colorsForegroundPrimary)",className:s,"data-testid":n,children:t}),r&&(0,g.jsx)(p.NexusText,{as:"p",variant:"bodySmall",weight:"regular",color:"var(--colorsForegroundPrimary)",className:"m-0",children:r})]})}var y=r(490845),b=r(229513);function v(e){var{jobsPreferencesUrl:t}=e,{formatMessage:r}=(0,y.useIntl)(),{trackEvent:a}=(0,i.rS)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h,{title:r({id:"jobs.hub.onboarding.entry.section.title",defaultMessage:"Find jobs that fit you"}),subtitle:r({id:"jobs.hub.onboarding.entry.section.description",defaultMessage:"Tell us what kind of job you're looking for so we can tailor the offers we show you"})}),(0,g.jsx)(f.NexusButton,{asChild:!0,variant:"primary",width:"full-width",children:(0,g.jsx)(b.Z,{to:t,onClick:()=>{a(i.tJ.events.setupPreferences,{touch_point_page:i.tJ.touchPointPage})},children:r({id:"jobs.hub.onboarding.entry.section.button",defaultMessage:"Set up job preferences"})})}),(0,g.jsxs)("div",{className:"flex items-center gap-50",children:[(0,g.jsx)(m.kIV,{size:16,className:"text-foreground-primary"}),(0,g.jsx)(p.NexusText,{variant:"bodySmall",color:"var(--colorsForegroundPrimary)",children:r({id:"jobs.hub.onboarding.entry.section.time.info",defaultMessage:"Takes about 1 minute"})})]})]})}var j=r(814209);function x(e){var{jobsPreferencesUrl:t,labels:r}=e,{formatMessage:a}=(0,y.useIntl)(),{trackEvent:n}=(0,i.rS)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex items-start justify-between gap-100",children:[(0,g.jsx)(h,{className:"flex-1",title:a({id:"jobs.hub.onboarding.summary.section.title",defaultMessage:"Your job preferences"}),subtitle:a({id:"jobs.hub.onboarding.summary.section.description",defaultMessage:"All the offers we are recommending right now match what you're looking for."})}),(0,g.jsx)(b.Z,{to:t,onClick:()=>{n(i.tJ.events.editPreferences,{touch_point_page:i.tJ.touchPointPage})},"aria-label":a({id:"common.edit",defaultMessage:"Edit"}),className:"rounded-medium bg-background-action-secondary flex h-500 w-500 shrink-0 items-center justify-center",children:(0,g.jsx)(j.default,{size:18,className:"text-foreground-primary"})})]}),r.length>0&&(0,g.jsxs)(p.NexusText,{variant:"bodyBase",color:"var(--colorsForegroundPrimary)","data-testid":"jobs-hub-preferences-summary",className:"line-clamp-3",children:[(0,g.jsx)("span",{className:"font-medium",children:a({id:"jobs.hub.onboarding.summary.section.matching",defaultMessage:"Preferences:"})})," ",r.join(" · ")]})]})}var k=r(601497),w=r(97237),_=r(427218),C=["workplace","availability"],S=()=>{var e=(0,w.u)(),{readValue:t}=(0,k.ON)(),[r]=(0,o.useCategories)();if(!e)return{isHydrated:!1,labels:null};var a=[],n=t("category"),l=t("location");if(null!=l&&l.title){var i=l.distance?"".concat(l.title," (+").concat(l.distance," km)"):l.title;a.push(i)}if(n){var s=(0,_.h)(r,n.categoryId),c=n.query.trim();if(c){var d=s?"".concat(c," (").concat(s,")"):c;a.push(d)}}for(var u of C){var f=t(u);for(var m of null!=f?f:[])m.label&&a.push(m.label)}return{isHydrated:!0,labels:a}},O=r(757663),M=()=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex flex-col gap-100","data-testid":"jobs-hub-preferences-loader",children:[(0,g.jsx)(O.x,{loading:!0,width:"55%",height:24,className:"rounded-small"}),(0,g.jsx)(O.x,{loading:!0,width:"100%",height:34,className:"rounded-small"})]}),(0,g.jsx)(O.x,{loading:!0,width:"100%",height:48,className:"rounded-medium"}),(0,g.jsx)(O.x,{loading:!0,width:"65%",height:18,className:"rounded-small"})]});function L(e){var{children:t,className:r,"data-testid":a,"aria-labelledby":n}=e;return(0,g.jsx)("section",{className:(0,l.p)("bg-background-secondary text-foreground-primary flex flex-col gap-200 px-200 py-200",r),"data-testid":a,"aria-labelledby":n,children:t})}var P=()=>{var{isFeatureFlag:e}=(0,c.Z)();return e(u.h.jobsHubOnboarding)?(0,g.jsx)(N,{}):null},N=()=>{var e=(0,d.CS)(),t=S(),r="/".concat(e.jobs,"/").concat(e.jobsPreferences,"/");return(0,g.jsx)(L,{"data-testid":"jobs-hub-preferences-section",children:t.isHydrated?t.labels.length>0?(0,g.jsx)(x,{jobsPreferencesUrl:r,labels:t.labels}):(0,g.jsx)(v,{jobsPreferencesUrl:r}):(0,g.jsx)(M,{})})},I=r(917181),F=r(843688),E=r(686324),R=r(822238),T=r(634283);function A(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)(),{trackEvent:a}=(0,i.rS)(),n=(0,d.CS)(),[,l]=(0,o.useCategories)(),s="/".concat(n.jobs,"/"),c=t?l[t]:void 0;return(0,g.jsx)(f.NexusButton,{asChild:!0,variant:"primary",width:"full-width",children:(0,g.jsxs)(E.rU,{to:s,onClick:()=>{a(i.tJ.events.allOffers)},"data-testid":"jobs-hub-browse-all-cta",className:"flex items-center justify-center gap-100 no-underline!",children:[r({id:"jobsHub.category.shortcuts.4",defaultMessage:"Browse all {count, number} jobs"},{count:c}
1),(0,g.jsx)(T.default,{size:20,className:"shrink-0"})]})})}var D="mt-[74px]",H=104,K="https://ireland.apollo.olxcdn.com/v1/files/v1c83kkwebgr-MISC/image";function U(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)(),a=(0,d.CS)();return(0,g.jsxs)("div",{className:"relative z-0 grid items-center gap-150",children:[(0,g.jsx)("img",{src:K,width:H,height:H,alt:"",className:"-z-1 col-start-1 row-start-1 self-start justify-self-center"}),(0,g.jsxs)("div",{className:(0,l.p)(D,"col-start-1 row-start-1 flex flex-col gap-200"),children:[(0,g.jsx)(A,{jobRootCategoryId:t}),(0,g.jsxs)(E.rU,{to:"/".concat(a.jobs,"/search/"),className:"bg-background-primary rounded-medium flex min-h-(--primitivesSizes48) w-full items-center gap-100 overflow-hidden py-100 pr-100 pl-200 text-ellipsis no-underline!",children:[(0,g.jsx)(R.default,{size:20,className:"text-foreground-secondary! shrink-0"}),(0,g.jsx)(p.NexusText,{className:"flex-1 truncate",variant:"bodyBase",color:"var(--colorsForegroundPlaceholder)",weight:"regular",children:r({id:"jobsHub.search",defaultMessage:"Find your dream job"})})]})]})]})}function Z(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsxs)("div",{className:"bg-background-accent-subtle flex flex-col gap-300 px-200 pt-150 pb-400","data-testid":"jobs-hub-hero-section",children:[(0,g.jsx)(F.h,{backPath:I.H.main,backButtonClassName:"bg-background-primary"}),(0,g.jsx)(p.NexusHeading,{variant:"displayLarge",color:"var(--colorsForegroundPrimary)",children:r({id:"jobsHub.header",defaultMessage:"We now have more than 10 000 vacancies at OLX"})}),(0,g.jsx)(U,{jobRootCategoryId:t})]})}function B(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)(),a=(0,d.CS)();return(0,g.jsx)("div",{className:"relative z-0 grid items-center gap-150",children:(0,g.jsxs)("div",{className:"flex flex-col gap-200",children:[(0,g.jsxs)(E.rU,{to:"/".concat(a.jobs,"/search/"),className:"bg-background-primary rounded-medium flex min-h-(--primitivesSizes48) w-full items-center gap-100 overflow-hidden py-100 pr-100 pl-200 text-ellipsis no-underline!",children:[(0,g.jsx)(R.default,{size:20,className:"text-foreground-secondary! shrink-0"}),(0,g.jsx)(p.NexusText,{className:"flex-1 truncate",variant:"bodyBase",as:"span",color:"var(--colorsForegroundPlaceholder)",weight:"regular",children:r({id:"jobsHub.search",defaultMessage:"Find your dream job"})})]}),(0,g.jsx)(A,{jobRootCategoryId:t})]})})}function V(e){var{jobRootCategoryId:t}=e;return(0,g.jsxs)("div",{className:"bg-background-accent-subtle flex flex-col gap-150 px-200 pt-150 pb-200","data-testid":"jobs-hub-new-hero-section",children:[(0,g.jsx)(F.h,{backPath:I.H.main,showAutoRedirectTooltip:!0}),(0,g.jsx)(B,{jobRootCategoryId:t})]})}var z=r(565191);function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach(function(t){G(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W={olxpl:{1449:"https://ireland.apollo.olxcdn.com/v1/files/7zreto7yxzmy1-MISC/image;f=png",4957:"https://ireland.apollo.olxcdn.com/v1/files/ugfpmc634a4v3-MISC/image;f=png",4650:"https://ireland.apollo.olxcdn.com/v1/files/cms01nqsum3y2-MISC/image;f=png",2449:"https://ireland.apollo.olxcdn.com/v1/files/3lgsr626rgqd3-MISC/image;f=png",1529:"https://ireland.apollo.olxcdn.com/v1/files/1gmc1m94lwym1-MISC/image;f=png",4958:"https://ireland.apollo.olxcdn.com/v1/files/1bjf9gjdhgle1-MISC/image;f=png",1443:"https://ireland.apollo.olxcdn.com/v1/files/tablqy7xv13p2-MISC/image;f=png",2450:"https://ireland.apollo.olxcdn.com/v1/files/nrxg63efocnt3-MISC/image;f=png",53:"https://ireland.apollo.olxcdn.com/v1/files/telz9m71xkkr1-MISC/image;f=png",1421:"https://ireland.apollo.olxcdn.com/v1/files/f4oh7t92hcju1-MISC/image;f=png",5422:"https://ireland.apollo.olxcdn.com/v1/files/7957kdcqgddl2-MISC/image;f=png",4956:"https://ireland.apollo.olxcdn.com/v1/files/obi7s2bj2waf2-MISC/image;f=png",2447:"https://ireland.apollo.olxcdn.com/v1/files/sthquo0ii6fd2-MISC/image;
1f=png",2508:"https://ireland.apollo.olxcdn.com/v1/files/d6pjise1bruf-MISC/image;f=png",1447:"https://ireland.apollo.olxcdn.com/v1/files/daczb1pgxu4r1-MISC/image;f=png",4735:"https://ireland.apollo.olxcdn.com/v1/files/er28r5w4gcxu3-MISC/image;f=png",3902:"https://ireland.apollo.olxcdn.com/v1/files/41mn53sla3ur1-MISC/image;f=png",4223:"https://ireland.apollo.olxcdn.com/v1/files/8i8mkhvz1p4g-MISC/image;f=png",1213:"https://ireland.apollo.olxcdn.com/v1/files/n4aj6azgc1ki3-MISC/image;f=png",1425:"https://ireland.apollo.olxcdn.com/v1/files/rrb9iv118653-MISC/image;f=png",1860:"https://ireland.apollo.olxcdn.com/v1/files/o6eij9d6bfvd2-MISC/image;f=png",1453:"https://ireland.apollo.olxcdn.com/v1/files/z6rm7c3aqk1x1-MISC/image;f=png",4651:"https://ireland.apollo.olxcdn.com/v1/files/zj2cv8dqut032-MISC/image;f=png",1710:"https://ireland.apollo.olxcdn.com/v1/files/n0y0wo54mopg1-MISC/image;f=png",4222:"https://ireland.apollo.olxcdn.com/v1/files/ijly7g2krnn02-MISC/image;f=png",2445:"https://ireland.apollo.olxcdn.com/v1/files/irz5eb13hpwd2-MISC/image;f=png",1538:"https://ireland.apollo.olxcdn.com/v1/files/d2lei2rj4r9s2-MISC/image;f=png",1481:"https://ireland.apollo.olxcdn.com/v1/files/cqssy9x0f7he2-MISC/image;f=png",5421:"https://ireland.apollo.olxcdn.com/v1/files/h11mv3k2kp0h3-MISC/image;f=png",1437:"https://ireland.apollo.olxcdn.com/v1/files/a74iylecipbx2-MISC/image;f=png",2446:"https://ireland.apollo.olxcdn.com/v1/files/p0igd293c90l-MISC/image;f=png",1861:"https://ireland.apollo.olxcdn.com/v1/files/35vdziun55no3-MISC/image;f=png",1439:"https://ireland.apollo.olxcdn.com/v1/files/ckeh2iyxw2u3-MISC/image;f=png",1797:"https://ireland.apollo.olxcdn.com/v1/files/tz1xwyukho2b1-MISC/image;f=png",4960:"https://ireland.apollo.olxcdn.com/v1/files/pgk75j6ubxlt3-MISC/image;f=png",2507:"https://ireland.apollo.olxcdn.com/v1/files/z4s1j3stotrw2-MISC/image;f=png",65:"https://ireland.apollo.olxcdn.com/v1/files/r3fqp1vbj82q3-MISC/image;f=png",3899:"https://ireland.apollo.olxcdn.com/v1/files/2uzvtkafbhyh2-MISC/image;f=png",2519:"https://ireland.apollo.olxcdn.com/v1/files/0g04fertygq92-MISC/image;f=png",1712:"https://ireland.apollo.olxcdn.com/v1/files/7ewodcbnn7yl2-MISC/image;f=png",1862:"https://ireland.apollo.olxcdn.com/v1/files/hg8f80ze0x0r2-MISC/image;f=png",5268:"https://ireland.apollo.olxcdn.com/v1/files/osuu6f63a5352-MISC/image;f=png",56:"https://ireland.apollo.olxcdn.com/v1/files/g8936u1tdy4v2-MISC/image;f=png",2451:"https://ireland.apollo.olxcdn.com/v1/files/9ik4jfrlip9t1-MISC/image;f=png"}},Y=(e,t)=>e.reduce((e,r)=>{var a,n=null===(a=W[t])||void 0===a?void 0:a[r.id];return n&&e.push(q(q({},r),{},{imageLink:n})),e},[]),Q="w-[220px]",X="h-[48px] w-[48px]",$="max-w-[160px]",ee=32;function te(e){var{category:t,count:r}=e,{trackEvent:a}=(0,i.rS)(),{formatMessage:n}=(0,y.useIntl)();return(0,g.jsxs)(E.rU,{to:"/".concat(t.path,"/"),onClick:()=>{return e=t.id,void a(i.tJ.events.categoryShortcutClick,{category_id:e});var e},className:(0,l.p)("flex items-center gap-150 no-underline!",Q),children:[(0,g.jsx)("div",{className:(0,l.p)("bg-background-primary rounded-medium border-border-subtle flex items-center justify-center border",X),children:(0,g.jsx)("img",{src:t.imageLink,loading:"lazy",alt:t.name,height:ee,width:ee})}),(0,g.jsxs)("div",{children:[(0,g.jsx)(p.NexusText,{variant:"bodySmall",className:(0,l.p)("truncate",$),color:"var(--colorsForegroundPrimary)",weight:"medium",children:t.name}),r?(0,g.jsx)(p.NexusText,{variant:"bodyExtraSmall",className:(0,l.p)("mt-100 truncate",$),color:"var(--colorsForegroundPrimary)",children:n({id:"jobsHub.category.shortcuts.7",defaultMessage:"{count, plural, one {# ad} few {# ads} many {# ads} other {# ads}}"},{count:r})}):null]})]})}var re=r(700863),ae=r(767206),ne=3,le="[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";function ie(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)(),{appConfig:{siteCode:a}}=(0,d.ZR)(),[n,l]=(0,o.useCategories)(),{scrollContainerRef:i,scrollFraction:s,handleScroll:c}=(0,ae.V)(),u=(0,z.AW)(n,t),f=Y(u,a);if(0===f.length)return null;var m=Math.ceil(f.length/ne);return(0,g.jsxs)(L,{className:"gap-0","data-testid":"jobs-hub-category-shortcuts",children:[(0,g.jsx)(h,{className:"mb-200",title:r({id:"jobsHub.category.shortcuts.3",defaultMessage:"Browse by categories"})}),(0,g.jsx)("div",{className:"mb-150 flex gap-200 overflow-x-auto ".concat(le),ref:i,onScroll:c,"data-testid":"jobs-hub-category-shortcuts-items",children:Array.from({length:m},(e,t)=>{var r=f.slice(t*ne,t*ne+ne);return(0,g.jsx)("div",{className:"flex flex-col gap-200",children:r.map(e=>(0,g.jsx)(te,{category:e,count:l[e.id]},e.id))},t)})}),(0,g.jsx)(re.j,{scrollFraction:s})]})}var oe=r(60545),se=r(86684),ce=290;function de(e){var{children:t,scrollable:r=!0,testId:a}=e;return(0,g.jsx)("div",{className:(0,l.p)("grid grid-flow-col gap-200 px-200",r?"overflow-x-auto":"overflow-x-hidden"),style:{minHeight:"".concat(ce,"px"),gridAutoColumns:"164px"},"data-testid":a?"".concat(a,"-items"):void 0,children:t})}function ue(e){var{ads:t,adReason:r,onVisibilityChange:a,getTrackParams:n,intersectionObserverOptions:l}=e;return t.map(e=>(0,g.jsx)(oe.Z,{ad:e,viewType:se.M.GRID,adReason:r,trackParams:null==n?void 0:n(e),setVisible:a,intersectionObserverOptions:l},e.id))}var fe=10;function me(e){var{count:t=fe,height:r=ce}=e;return(0,g.jsx)("div",{"data-testid":"jobs-carousel-skeleton",className:"contents",children:Array.from({length:t}).map((e,t)=>(0,g.jsx)(O.x,{loading:!0,width:"100%",height:r,className:"rounded-medium"},t))})}var pe=r(729136),ge=r(7676),he=.3,ye=2e3;function be(){var[e,t]=(0,pe.useState)(!1);return(0,ge.KS)(()=>t(!0),ye),(0,pe.useMemo)(()=>({enabled:e,threshold:he}),[e])}var ve=r(299600);function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?je(Object(r),!0).forEach(function(t){ke(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ke(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(e){var{illustration:t,title:r,description:a,action:n}=e;return(0,g.jsxs)("div",{className:"flex w-full flex-col items-center gap-200 px-200 pt-100",children:[(0,g.jsxs)("div",{className:"flex w-full flex-col items-center gap-100 text-center",children:[(0,g.jsx)("div",{className:"flex h-800 items-center justify-center",children:t}),(0,g.jsx)(p.NexusHeading,{as:"h3",variant:"headlineSmall",className:"font-bold",color:"var(--colorsForegroundPrimary)",children:r}),(0,g.jsx)(p.NexusText,{as:"p",variant:"bodySmall",weight:"regular",color:"var(--colorsForegroundPrimary)",children:a})]}),n]})}function _e(e){return(0,g.jsx)(f.NexusButton,xe(xe({},e),{},{size:"medium",variant:"secondary",styleOverrides:{"--nexusButtonBackgroundColor":"var(--colorsBackgroundActionSecondary)"}}))}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach(function(t){Oe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Me=e=>(0,g.jsxs)("svg",Se(Se({width:"48",height:"41",viewBox:"0 0 48 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"none"},e),{},{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6756 29.6235C17.4623 32.7922 12.2522 32.7922 9.0386 29.6235C5.82502 26.4549 5.82502 21.3171 9.0386 18.1482C12.2522 14.9792 17.4623 14.9792 20.6756 18.1482C23.8889 21.3171 23.8889 26.4549 20.6756 29.6235",fill:"#FFD6C9"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.5325 36.709C24.319 39.8777 19.1089 39.8777 15.8953 36.709C12.682 33.5401 12.682 28.4024 15.8953 25.2334C19.1089 22.0648 24.319 22.0648 27.5325 25.2334C30.7458 28.4024 30.7458 33.5401 27.5325 36.709",fill:"#FF5636"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.1998 5.31025L40.6322 2.74268L30.1713 7.91867L14.6284 15.609L22.4809 23.4617L30.3336 31.3141L38.0238 15.7713L43.1998 5.31025Z",fill:"#FFCE32"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1083 39.0858C21.4232 36.1011 20.8635 32.4864 18.4244 30.0408C15.2548 26.8627 10.1164 26.8627 6.94684 30.0408C4.5077 32.4864 3.94798 36.1011 5.26261 39.0858H20.1083Z",fill:"#BF3939"}),(0,g.jsx)("mask",{id:"mask0_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"48",height:"41",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 40.4571L47.7714 40.4571L47.7714 0L0 0L0 40.4571Z",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask0_37677_1843)",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 40.457L35.8857 40.457V38.6284L0 38.6284L0 40.457Z",fill:"#BF3939"})}),(0,g.jsx)("mask",{id:"mask1_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask1_37677_1843)",children:(0,g.jsx)("path",{d:"M19.7715 -0.228516L19.7715 33.6001",
1stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask2_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask2_37677_1843)",children:(0,g.jsx)("path",{d:"M27.0855 -0.228516L27.0855 33.6001",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask3_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask3_37677_1843)",children:(0,g.jsx)("path",{d:"M34.1714 -0.228516L34.1714 33.6001",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask4_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask4_37677_1843)",children:(0,g.jsx)("path",{d:"M41.7144 -0.228516L41.7144 33.6001",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask5_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask5_37677_1843)",children:(0,g.jsx)("path",{d:"M47.7715 5.59964L13.7144 5.59964",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask6_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask6_37677_1843)",children:(0,g.jsx)("path",{d:"M47.7715 12.9141L13.7144 12.9141",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask7_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask7_37677_1843)",children:(0,g.jsx)("path",{d:"M47.7715 20L13.7144 20",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("mask",{id:"mask8_37677_1843",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"14",y:"2",width:"30",height:"29",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1711 7.6488L14.6284 15.2777L22.4809 23.0676L30.3336 30.857L38.0238 15.4387L43.1998 5.06149L40.6325 2.51416",fill:"white"})}),(0,g.jsx)("g",{mask:"url(#mask8_37677_1843)",children:(0,g.jsx)("path",{d:"M47.7715 27.5425L13.7144 27.5425",stroke:"#F8FBCF",strokeWidth:"1.6"})}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0546 20.6304L24.7992 27.8856L22.8569 25.9432L30.1121 18.6879C30.6485 18.1515 31.5182 18.1515 32.0546 18.6879C32.591 19.2246 32.591 20.094 32.0546 20.6304",fill:"#FF5636"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6262 33.3644C20.6262 33.3644 21.8372 38.4119 26.0694 38.4119C29.4447 38.4119 27.6231 39.7711 27.6231 39.7711H1.37109L1.37109 38.4119C1.37109 38.4119 4.60518 37.4843 4.60518 35.0937C6.54944 33.1209 12.622 32.9749 13.4256 33.2467C14.2292 33.5186 20.6262 33.3644 20.6262 33.3644",fill:"#BF3939"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.6823 38.476C29.2993 38.476 29.5688 36.7998 31.1858 36.7998C32.8028 36.7998 33.0337 38.476 33.9964 38.476C34.824 39.3339 33.6113 39.3141 33.6113 39.3141H29.0298C29.0298 39.3141 26.0653 38.476 27.6823 38.476",fill:"#BF3939"})]}));function Le(e){var{onRetry:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsx)(we,{illustration:(0,g.jsx)(Me,{}),title:r({id:"jobsHub.empty.states.100",defaultMessage:"Couldn't load recommendations"}),description:r({id:"jobsHub.empty.states.21",defaultMessage:"Something went wrong on our end. Your preferences are safe â try again in a moment."}),action:(0,g.jsxs)(_e,{onClick:t,children:[(0,g.jsx)(f.NexusButtonIconSlot,{children:(0,g.jsx)(ve.default,{})}),r({id:"jobsHub.empty.states.65",defaultMessage:"Try again"})]})})}function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Pe(Object(r),!0).forEach(function(t){Ie(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ie(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fe=e=>(0,g.jsxs)("svg",Ne(Ne({width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"none"},e),{},{children:[(0,g.jsx)("circle",{cx:32,cy:32,r:28,fill:"#C8F8F6"}),(0,g.jsxs)("g",{transform:"translate(5.2864 15.7056)",children:[(0,g.jsx)("path",{d:"M46.0184 1.53011L41.3945 4.5359L42.2373 5.8324L46.8612 2.82661L46.0184 1.53011Z",fill:"#00A49F"}),(0,g.jsx)("path",{d:"M1.95937 24.5179L6.9793 22.2335L6.33878 20.826L1.31885 23.1104L1.95937 24.5179Z",fill:"#00A49F"}),(0,g.jsx)("path",{d:"M50.6057 7.26075L47.2829 7.85066L47.5532 9.37325L50.8761 8.78333L50.6057 7.26075Z",fill:"#23E5DB"}),(0,g.jsx)("path",{d:"M6.16111 12.1399L3.10151 10.7154L2.44878 12.1173L5.50837 13.5418L6.16111 12.1399Z",fill:"#23E5DB"}),(0,g.jsx)("path",{d:"M50.4366 13.4379L45.7312 13.5603L45.7714 15.1062L50.4768 14.9838L50.4366 13.4379Z",fill:"#FFCE32"}),(0,g.jsx)("path",{d:"M4.70539 16.6636L9.53674e-08 16.7859L0.0402065 18.3319L4.74559 18.2095L4.70539 16.6636Z",fill:"#FFCE32"}),(0,g.jsx)("path",{d:"M30.3061 3.74151L28.5769 4.04871C28.4161 3.14231 27.8017 2.48791 26.7509 2.10271C25.7181 1.72391 24.3213 1.64991 22.9193 1.89871C20.3205 2.36031 17.8769 3.87751 18.2333 5.88511L16.5037 6.19231C16.0945 3.88671 17.8313 1.01871 22.6121 0.16951C25.9085 -0.41569 29.7221 0.45271 30.3061 3.74151Z",fill:"#00A49F"}),(0,g.jsx)("path",{d:"M42.8773 23.3563L39.3337 3.39951C38.4281 2.76711 37.9205 2.41231 37.0149 1.77991L9.52931 6.65991C8.89691 7.56551 8.54211 8.07311 7.90971 8.97871L11.4533 28.9355C12.3589 29.5679 12.8665 29.9227 13.7721 30.5551L41.2577 25.6751C41.8901 24.7695 42.2449 24.2619 42.8773 23.3563Z",fill:"#00A49F"}),(0,g.jsx)("path",{d:"M35.2197 16.2599L16.2001 19.6371C12.7749 20.2451 9.50491 17.9615 8.89651 14.5363L7.90971 8.97951C8.54211 8.07391 8.89691 7.56631 9.52931 6.66071L37.0149 1.78071C37.9205 2.41311 38.4281 2.76791 39.3337 3.40031L40.3205 8.95711C40.9289 12.3819 38.6449 15.6519 35.2197 16.2599Z",fill:"#23E5DB"}),(0,g.jsx)("path",{d:"M27.1156 14.8465L23.3209 15.5201L24.3029 21.0512L28.0976 20.3776L27.1156 14.8465Z",fill:"#FFCE32"})]}),(0,g.jsxs)("g",{transform:"translate(36.608 34.816)",children:[(0,g.jsx)("path",{d:"M17.2498 1.83204L1.3228 0.00127869L0 11.5092L15.927 13.34L17.2498 1.83204Z",fill:"#D2B982"}),(0,g.jsx)("path",{d:"M8.6918 8.096C8.6786 8.0948 8.6658 8.0932 8.6526 8.092C7.689 7.9864 6.829 7.4372 6.2522 6.6584L1.3214 0L17.2478 1.8308L11.3574 7.1636C10.631 7.8212 9.6666 8.1932 8.6918 8.096Z",fill:"#FFCE32"})]})]}));function Ee(e){var{jobsPreferencesUrl:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsx)(we,{illustration:(0,g.jsx)(Fe,{}),title:r({id:"jobsHub.empty.states.12",defaultMessage:"No matches right now"}),description:r({id:"jobsHub.empty.states.35",defaultMessage:"You can broaden your preferences or check back later â new jobs are added every day."}),action:(0,g.jsx)(_e,{asChild:!0,children:(0,g.jsxs)(b.Z,{to:t,children:[(0,g.jsx)(f.NexusButtonIconSlot,{children:(0,g.jsx)(j.default,{size:22})}),r({id:"jobsHub.empty.states.34",defaultMessage:"Adjust preferences"})]})})})}function Re(e){var{jobsPreferencesUrl:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsx)(we,{illustration:(0,g.jsx)(Fe,{}),title:r({id:"jobsHub.empty.states.57",defaultMessage:"No recommendations yet"}),description:r({id:"jobsHub.empty.states.6",defaultMessage:"Set your job preferences and we'll find the roles that actually match what you're looking for."}),action:(0,g.jsx)(_e,{asChild:!0,children:(0,g.jsx)(b.Z,{to:t,children:r({id:"jobsHub.empty.states.60",defaultMessage:"Set preferences"})})})})}var Te,Ae=r(690898),De=r(418305),He=r(144707),Ke=void 0!==Te?Te:Te=r(283296),Ue=r(21064);function Ze(e,t,r,a,n,l,i){try{var o=e[l](i),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(a,n)}function Be(e,t){return(null!=t?t:[]).map((t,r)=>({key:"".concat(e,"[").concat(r,"]"),value:t}))}function Ve(e){var t,r,a,n,l={category_id:e.category.id,query:e.category.query,distance:null===(t=e.location)||void 0===t?void 0:t.distance,region_id:null===(r=e.location)||void 0===r?void 0:r.regionId,city_id:null===(a=e.location)||void 0===a?void 0:a.cityId,district_id:null===(n=e.location)||void 0===n?void 0:n.districtId};return[...Object.entries(l).filter(e=>{var[,t]=e;return null!=t}).map(e=>{var[t,r]=e;return{key:t,value:String(r)}}),...Be("filter_enum_workplace",e.work_environment),...Be("filter_enum_availability",e.availability)]}function ze(){var e;return e=function*(e,t,r){var a,n,l,i={searchParameters:Ve(e)},o=yield(0,He.fetchQuery)(r,Ke,i).toPromise();if(null==o||!o.clientCompatibleListings)throw new Error("Empty clientCompatibleListings response");if("ListingSuccess"!==o.clientCompatibleListings.__typename)throw new Error("Unexpected clientCompatibleListings response");return(0,Ue.N)(o.clientCompatibleListings,t,void 0,{searchId:(null==(a=o.clientCompatibleListings.metadata)?void 0:a.search_id)||"",facets:{},source:(null==a?void 0:a.source)||{},searchReason:{organic:(null==a||null===(n=a.source)||void 0===n?void 0:n.organic)||[],promoted:(null==a||null===(l=a.source)||void 0===l?void 0:l.promoted)||[]}})},ze=function(){var t=this,r=arguments;return new Promise(function(a,n){var l=e.apply(t,r);function i(e){Ze(l,a,n,i,o,"next",e)}function o(e){Ze(l,a,n,i,o,"throw",e)}i(void 0)})},ze.apply(this,arguments)}var Je=r(573137),qe=r(744408);function Ge(e){var{enabled:t,queryParams:r}=e,a=(0,He.useRelayEnvironment)(),n=(0,d.ZR)();return(0,De.a)({enabled:t,queryKey:["jobs-hub-featured-ads",r],queryFn:()=>function(e,t,r){return ze.apply(this,arguments)}(r,n,a),retry:(e,t)=>{var r=e<1;return r||qe.default.captureExceptionNewRelic({exception:t,capability:Je.C.JobsAndServicesSourcingExperience}),r}})}var We=r(414892),Ye=r(238751);function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Qe(Object(r),!0).forEach(function(t){$e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $e(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var et=10,tt={page_nb:1,ad_impressions:[],recommendation_sources:[]};var rt="jobs_hub|featured_jobs";function at(e){var{jobRootCategoryId:t}=e,r=function(e){var t,r,a,n,l,{isFeatureFlag:i}=(0,c.Z)(),{readValue:o}=(0,k.ON)(),s=S(),d=i(u.h.jobsHubOnboarding),f=s.isHydrated,m=d&&f&&0===s.labels.length,p=o("category"),g=null!==(t=null==p?void 0:p.categoryId)&&void 0!==t?t:e,h=null!==(r=null===(a=o("workplace"))||void 0===a?void 0:a.map(e=>e.value))&&void 0!==r?r:[],y=null!==(n=null===(l=o("availability"))||void 0===l?void 0:l.map(e=>e.value))&&void 0!==n?n:[],b=o("location")||{},v={category:{id:g,query:null==p?void 0:p.query},work_environment:h.toSorted(),availability:y.toSorted(),location:b},{data:j,isFetching:x,isError:w,refetch:_}=Ge({enabled:f&&!m,queryParams:v}),C=void 0!==j,{enhancedAds:O,isLoading:M}=(0,Ae.D2)(null!=j?j:[]);return m?{status:"setup_required"}:f?C?M?{status:"loading"}:0===O.length?{status:"empty"}:{status:"ready",ads:O}:w&&!x?{status:"error",refetch:_}:{status:"loading"}:{status:"loading"}}(t),a=(0,d.CS)(),n=be(),l="ready"===r.status?r.ads:void 0,o="empty"===r.status,{handleAdVisibilityChange:s,getTrackParams:f}=function(e,t){var{trackEvent:r}=(0,i.rS)(),[a,n]=(0,pe.useState)({start:0,end:0});return(0,pe.useEffect)(()=>{if(t)r(i.tJ.events.recommendationsViewed,tt);else if(e&&!(a.start>=a.end)){var l=e.slice(a.start,a.end),[o,s]=l.reduce((e,t)=>(e[0].push(t.id),e[1].push((0,Ye.q)(t)?i.tJ.searchReasons.promoted:i.tJ.searchReasons.organic),e),[[],[]]),c=Math.floor((a.end+et)/et);r(i.tJ.events.recommendationsViewed,{page_nb:c,ad_impressions:o,recommendation_sources:s}),n(e=>Xe(Xe({},e),{},{start:a.end}))}},[e,t,r,a.start,a.end]),{handleAdVisibilityChange:(0,pe.useCallback)((t,r)=>{var a;if(r&&e){var l=null!==(a=new Map(e.map((e,t)=>[e.id,t])).get(t))&&void 0!==a?a:0;n(e=>l>=e.end?Xe(Xe({},e),{},{end:l+1}):e)}},[e]),getTrackParams:(0,pe.useCallback)(e=>({touch_point_page:i.tJ.touchPointPage,touch_point_button:i.tJ.touchPointPage,search_reason:(0,Ye.q)(e)?i.tJ.searchReasons.promoted:i.tJ.searchReasons.organic}),[])}}(l,o),m="/".concat(a.jobs,"/").concat(a.jobsPreferences,"/");switch(r.status){case"setup_required":return(0,g.jsx)(Re,{jobsPreferencesUrl:m});case"loading":return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(de,{scrollable:!1,testId:"featured-jobs-carousel",children:(0,g.jsx)(me,{})}),(0,g.jsx)(We._,{variants:["ads"]})]});case"error":return(0,g.jsx)(Le,{onRetry:r.refetch});case"empty":return(0,g.jsx)(Ee,{jobsPreferencesUrl:m});case"ready":return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(de,{testId:"featured-jobs-carousel",children:(0,g.jsx)(ue,{ads:r.ads,adReason:rt,onVisibilityChange:s,getTrackParams:f,intersectionObserverOptions:n})}),(0,g.jsx)(We._,{variants:["ads"]})]});default:return null}}function nt(e){var{jobRootCategoryId:t}=e,{formatMessage:r}=(0,y.useIntl)(),a=r({id:"jobsHub.recommended",defaultMessage:"Recommended jobs"});return(0,g.jsxs)(L,{className:"px-0","data-testid":"featured-jobs-carousel",children:[(0,g.jsx)(h,{title:a,className:"px-200",titleTestId:"featured-jobs-carousel-title"}),(0,g.jsx)(at,{jobRootCategoryId:t})]})}var lt=r(483563),it=r(366263),ot=r.n(it),st=r(731969),ct=r(727698);function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?dt(Object(r),!0).forEach(function(t){ft(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ft(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mt=e=>(0,g.jsxs)("svg",ut(ut({width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"none"},e),{},{children:[(0,g.jsxs)("g",{clipPath:"url(#saved-jobs-briefcase-clip)",children:[(0,g.jsx)("rect",{width:64,height:64,rx:32,fill:"#F2F4F5"}),(0,g.jsx)("path",{d:"M40.4272 22.7078H37.4964V16.8815L36.5232 15.9083L27.4772 15.9083L26.504 16.8815V22.7078H23.5732V15.6678L26.2635 12.9775L37.7369 12.9775L40.4272 15.6678V22.7078Z",fill:"#1D3C81"}),(0,g.jsx)("path",{d:"M51.5275 51.0227H12.4729L10.6411 49.1909L10.6411 22.636L12.4729 20.8042L51.5275 20.8042L53.3593 22.636V49.1909L51.5275 51.0227Z",fill:"#3A77FF"}),(0,g.jsx)("path",{d:"M51.5271 20.8042L21.3086 51.0227H51.5271L53.3589 49.1909V22.636L51.5271 20.8042Z",fill:"#CEDDFF"}),(0,g.jsx)("path",{d:"M42.7127 40.6867C42.7127 40.0008 42.1567 39.4448 41.4708 39.4448C40.785 39.4448 40.229 40.0008 40.229 40.6867C40.229 41.3725 40.785 41.9285 41.4708 41.9285C42.1567 41.9285 42.7127 41.3725 42.7127 40.6867Z",fill:"#002F34"}),(0,g.jsx)("path",{d:"M46.7381 40.6867C46.7381 40.0008 46.1821 39.4448 45.4962 39.4448C44.8104 39.4448 44.2544 40.0008 44.2544 40.6867C44.2544 41.3725 44.8104 41.9285 45.4962 41.9285C46.1821 41.9285 46.7381 41.3725 46.7381 40.6867Z",fill:"#002F34"}),(0,g.jsx)("path",{d:"M43.6387 45.454C42.5479 45.454 41.4741 45.0545 40.6997 44.2806L41.4769 43.5034C42.4807 44.5068 44.1818 44.6472 45.433 43.8284L46.0346 44.7482C45.3095 45.2223 44.4693 45.454 43.6387 45.454Z",fill:"#002F34"}),(0,g.jsx)("path",{d:"M57.5067 23.9274L53.124 19.5447L57.5067 15.1621L61.8893 19.5447L57.5067 23.9274ZM55.9734 19.5447L57.5067 21.078L59.0399 19.5447L57.5067 18.0115L55.9734 19.5447Z",fill:"#FFCE32"}
1),(0,g.jsx)("path",{d:"M5.87264 49.6032L2.11035 45.8409L5.87264 42.0786L9.63492 45.8409L5.87264 49.6032ZM4.96018 45.8409L5.87264 46.7534L6.78509 45.8409L5.87264 44.9284L4.96018 45.8409Z",fill:"#FFCE32"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"saved-jobs-briefcase-clip",children:(0,g.jsx)("rect",{width:64,height:64,rx:32,fill:"white"})})})]}));function pt(){var{formatMessage:e}=(0,y.useIntl)(),t=(0,d.CS)();return(0,g.jsx)(we,{illustration:(0,g.jsx)(mt,{}),title:e({id:"jobsHub.empty.states.72",defaultMessage:"No saved jobs yet"}),description:e({id:"jobsHub.empty.states.30",defaultMessage:"Tap the heart on any job to save it here â we'll keep it safe across all your devices."}),action:(0,g.jsx)(_e,{asChild:!0,children:(0,g.jsx)(b.Z,{to:"/".concat(t.jobs,"/"),children:e({id:"jobsHub.empty.states.82",defaultMessage:"Browse all jobs"})})})})}function gt(e){var{onLoginRedirect:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsx)(we,{illustration:(0,g.jsx)(mt,{}),title:r({id:"jobsHub.empty.states.91",defaultMessage:"Keep track of jobs you like"}),description:r({id:"jobsHub.empty.states.83",defaultMessage:"Save offers while browsing and compare them later â synced across all your devices."}),action:(0,g.jsx)(_e,{onClick:t,children:r({id:"jobsHub.empty.states.18",defaultMessage:"Log in to save jobs"})})})}var ht="jh|observed",yt={ad_impressions:[]};function bt(){var e,t=function(){var{authenticated:e,loading:t}=(0,pe.useContext)(st.Vo),r=(0,w.u)(),a=(0,ct.g)(),n=(0,d.CS)(),l=ot()(I.H.jobsHub,n);return!r||t?{status:"loading"}:e?{status:"authenticated"}:{status:"login_wall",handleLoginRedirect:()=>{a(l)}}}(),{ads:r}=(0,pe.useContext)(lt.hE),a=be(),n=null!==(e=null==r?void 0:r.filter(e=>e.isJob))&&void 0!==e?e:[],l="loading"===t.status||"authenticated"===t.status&&null===r,o=function(e){var{trackEvent:t}=(0,i.rS)();return(0,pe.useEffect)(()=>{e&&t(i.tJ.events.observedAdsViewed,yt)},[e,t]),(0,pe.useCallback)((e,r)=>{r&&t(i.tJ.events.observedAdsViewed,{ad_impressions:[e]})},[t])}("authenticated"===t.status&&!l&&0===n.length);return"login_wall"===t.status?(0,g.jsx)(gt,{onLoginRedirect:t.handleLoginRedirect}):l?(0,g.jsx)(de,{scrollable:!1,children:(0,g.jsx)(me,{})}):0===n.length?(0,g.jsx)(pt,{}):(0,g.jsx)(de,{children:(0,g.jsx)(ue,{ads:n,adReason:ht,onVisibilityChange:o,intersectionObserverOptions:a,getTrackParams:()=>({touch_point_page:i.tJ.touchPointPage})})})}function vt(){var{formatMessage:e}=(0,y.useIntl)(),t=e({id:"jobsHub.savedJobs",defaultMessage:"Saved jobs"});return(0,g.jsxs)(L,{className:"px-0",children:[(0,g.jsx)(h,{title:t,className:"px-200"}),(0,g.jsx)(bt,{})]})}var jt=r(750156),xt=r(853635),kt=r(264027),wt=r(194254),_t=r(157468),Ct={[jt.SITE_CODE.OLXPL]:[{href:"https://www.olx.pl/zawodowo/kalkulator-wynagrodzen/",testId:"jobs-hub-seeker-tools-salary-calculator",titleId:"jobsHub.jobTools.1",titleDefault:"Salary calculator",descriptionId:"jobsHub.jobTools.2",descriptionDefault:"Calculate your net and gross salary based on your contract",trackingKey:i.tJ.events.toolsSalaryCalculatorEntry,Icon:kt.default},{href:"https://www.olx.pl/zawodowo/porownywarka-wynagrodzen/",testId:"jobs-hub-seeker-tools-salary-comparison",titleId:"jobsHub.jobTools.3",titleDefault:"Salary comparison",descriptionId:"jobsHub.jobTools.4",descriptionDefault:"Compare salaries across industries in Poland",trackingKey:i.tJ.events.toolsSalaryComparisonEntry,Icon:wt.default},{href:"https://www.olx.pl/zawodowo/?pagename=kreator-cv",testId:"jobs-hub-seeker-tools-cv",titleId:"jobsHub.jobTools.5",titleDefault:"CV creator",descriptionId:"jobsHub.jobTools.6",descriptionDefault:"Choose a template, fill in your details, and download your CV in minutes",trackingKey:i.tJ.events.toolsCvCreatorEntry,Icon:_t.default}]};function St(){var{formatMessage:e}=(0,y.useIntl)(),{siteCode:t}=(0,d.MG)(),{trackEvent:r}=(0,i.rS)(),[n,o]=(0,a.o)({threshold:.1});(0,pe.useEffect)(()=>{n&&r(i.tJ.events.toolsViewed)},[n,r]);var s=Ct[t];return s?(0,g.jsxs)(L,{"data-testid":"jobs-hub-seeker-tools",children:[(0,g.jsx)(h,{id:"jobs-hub-seeker-tools-heading",title:e({id:"jobsHub.jobTools",defaultMessage:"Job search tools"})}),(0,g.jsx)("ul",{className:"m-0 flex list-none flex-col gap-100 p-0",ref:o,children:s.map(t=>{var{href:a,testId:n,titleId:i,titleDefault:o,descriptionId:s,descriptionDefault:c,trackingKey:d,Icon:u}=t;return(0,g.jsx)("li",{children:(0,g.jsxs)(b.Z,{to:a,fullReload:!0,onClick:()=>r(d),className:(0,l.p)("bg-background-primary text-foreground-primary rounded-medium","flex w-full items-center gap-150 p-200 no-underline"),"data-testid":n,children:[(0,g.jsx)(u,{size:24,color:"var(--colorsForegroundPrimary)",className:"shrink-0","aria-hidden":!0}),(0,g.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-100 text-left",children:[(0,g.jsx)(p.NexusText,{as:"span",variant:"bodyBase",weight:"bold",color:"var(--colorsForegroundPrimary)",children:e({id:i,defaultMessage:o})}),(0,g.jsx)(p.NexusText,{as:"span",variant:"bodySmall",weight:"regular",color:"var(--colorsForegroundSecondary)",className:"text-pretty",children:e({id:s,defaultMessage:c})})]}),(0,g.jsx)(xt.default,{size:20})]})},a)})})]}):null}var Ot=r(252978);function Mt(e,t,r,a,n,l,i){try{var o=e[l](i),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(a,n)}var Lt={limit:5};function Pt(){var e;return e=function*(e,t,r){var a,n,l,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lt,s=(0,Ot.OK)({apiEnv:t,siteCode:r,locale:e,persistedQueriesEnabled:!0}),c=yield s.JobsHubTrustedCompanies({limit:o.limit});if(null==c||null===(a=c.TrustedCompanies)||void 0===a||null===(n=a.trustedCompanies)||void 0===n||!n.profiles)throw new Error("No trusted companies returned from API");return null==c||null===(l=c.TrustedCompanies)||void 0===l||null===(i=l.trustedCompanies)||void 0===i?void 0:i.profiles},Pt=function(){var t=this,r=arguments;return new Promise(function(a,n){var l=e.apply(t,r);function i(e){Mt(l,a,n,i,o,"next",e)}function o(e){Mt(l,a,n,i,o,"throw",e)}i(void 0)})},Pt.apply(this,arguments)}function Nt(){var e=(0,w.u)(),{appConfig:{apiEnv:t,siteCode:r}}=(0,d.ZR)(),{selectedLanguage:{locale:a}}=(0,y.useLocalisationContext)(),n=(0,De.a)({queryKey:["jobs-hub-trusted-companies"],queryFn:()=>function(e,t,r){return Pt.apply(this,arguments)}(a,t,r),enabled:e,retry:(e,t)=>{var r=e<1;return r||qe.default.captureExceptionNewRelic({exception:t,capability:Je.C.JobsAndServicesSourcingExperience}),r}});return{data:n.data||[],isLoading:n.isLoading||n.isPending,isError:n.isError}}var It=r(465235),Ft=r(995325);function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Et(Object(r),!0).forEach(function(t){Tt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var At=e=>(0,g.jsxs)("svg",Rt(Rt({width:133.579,height:133.579,viewBox:"0 0 133.579 133.579",xmlns:"http://www.w3.org/2000/svg",role:"none"},e),{},{children:[(0,g.jsx)("rect",{width:"133.579",height:"133.579",fill:"#c7dcff"}),(0,g.jsxs)("g",{children:[(0,g.jsx)("path",{d:"m117.632,105.756c0-.03.005-.06.005-.09,0-3.131-2.538-5.668-5.668-5.668-.646,0-1.264.113-1.843.312-.714-.655-1.593-1.129-2.571-1.35.493-.841.781-1.816.781-2.861,0-3.131-2.538-5.668-5.668-5.668h-11.082v22.987h21.936c.783.679,1.795,1.1,2.912,1.1,2.466,0,4.464-1.999,4.464-4.464,0-2.049-1.383-3.772-3.265-4.297Z",fill:"#00a49f"}),(0,g.jsx)("path",{d:"m38.488,112.513v-11.102c.679-.783,1.1-1.795,1.1-2.912,0-2.466-1.999-4.464-4.464-4.464-2.049,0-3.772,1.383-4.297,3.265-.03,0-.06-.005-.09-.005-3.131,0-5.668,2.538-5.668,5.668,0,.646.113,1.264.312,1.843-.655.714-1.129,1.593-1.35,2.571-.841-.493-1.816-.781-2.861-.781-3.131,0-5.668,2.538-5.668,5.668v.249h22.987Z",fill:"#00a49f"}),(0,g.jsxs)("g",{children:[(0,g.jsx)("rect",{x:"27.545",y:"45.054",width:"40.648",height:"66.359",fill:"#1d3c81"}),(0,g.jsx)("rect",{x:"31.388",y:"50.212",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"58.545",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"66.879",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"75.213",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"83.547",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"91.881",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"50.212",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"58.545",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"66.879",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"75.213",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"83.547",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"91.881",width:"32.961",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"31.388",y:"99.919",width:"5.669",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"39.152",y:"99.919",width:"5.669",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"46.915",y:"99.919",width:"5.669",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"54.436",y:"99.919",width:"5.669",height:"5.669",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"69.666 97.55 69.666 91.881 51.856 91.881 50.648 97.55 69.666 97.55",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"55.407 75.213 54.199 80.882 69.666 80.882 69.666 75.213 55.407 75.213",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"53.631 83.547 52.423 89.216 69.666 89.216 69.666 83.547 53.631 83.547",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"52.585 105.588 52.585 99.919 50.143 99.919 48.935 105.588 52.585 105.588",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"60.742 50.17 59.525 55.881 69.666 55.881 69.666 50.17 60.742 50.17",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"58.958 58.545 57.75 64.215 69.666 64.215 69.666 58.545 58.958 58.545",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"57.182 66.879 55.974 72.549 69.666 72.549 69.666 66.879 57.182 66.879",fill:"#3a77ff"})]}),(0,g.jsx)("rect",{x:"5.356",y:"110.755",width:"122.866",height:"3.862",fill:"#1d3c81"}),(0,g.jsxs)("g",{children:[(0,g.jsx)("rect",{x:"58.68",y:"27.333",width:"43.987",height:"84.08",fill:"#1d3c81"}),(0,g.jsx)("rect",{x:"62.523",y:"33.544",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"41.878",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"50.212",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"58.545",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"66.879",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"75.213",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"83.547",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"91.881",width:"36.301",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"62.523",y:"99.919",width:"5.669",height:"5.669",fill:"#c7dcff"}),(0,g.jsx)("rect",{x:"93.155",y:"99.919",width:"5.669",height:"5.669",fill:"#3a77ff"}
1),(0,g.jsx)("rect",{x:"71.471",y:"99.919",width:"18.404",height:"11.494",fill:"#c7dcff"}),(0,g.jsx)("polygon",{points:"85.74 66.921 84.559 72.532 98.824 72.532 98.824 66.921 85.74 66.921",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"98.824 97.55 98.824 91.964 80.472 91.964 79.298 97.55 98.824 97.55",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"83.981 75.28 82.803 80.882 98.824 80.882 98.824 75.28 83.981 75.28",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"98.824 39.13 98.824 33.544 92.759 33.544 91.585 39.13 98.824 39.13",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"82.225 83.631 81.05 89.216 98.824 89.216 98.824 83.631 82.225 83.631",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"87.483 58.629 86.318 64.173 98.824 64.173 98.824 58.629 87.483 58.629",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"71.471 99.919 71.471 111.413 76.382 111.413 78.8 99.919 71.471 99.919",fill:"#c7dcff"}),(0,g.jsx)("polygon",{points:"89.876 99.919 78.8 99.919 76.382 111.413 89.876 111.413 89.876 99.919",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"91.007 41.878 89.823 47.505 98.824 47.505 98.824 41.878 91.007 41.878",fill:"#3a77ff"}),(0,g.jsx)("polygon",{points:"89.245 50.254 88.061 55.881 98.824 55.881 98.824 50.254 89.245 50.254",fill:"#3a77ff"})]}),(0,g.jsx)("path",{d:"m41.748,28.505c.001-.068.01-.134.01-.202,0-5.159-4.182-9.341-9.341-9.341-4.669,0-8.526,3.429-9.219,7.904-.041,0-.081-.006-.122-.006-5.159,0-9.341,4.182-9.341,9.341h35.304c-.596-3.838-3.523-6.903-7.292-7.696Z",fill:"#fff"})]})]})),Dt=r(413572),Ht=()=>{var{formatMessage:e}=(0,y.useIntl)();return(0,pe.useCallback)(t=>t?{[Ot.mM.AGRICULTURE_FORESTRY_AND_FISHING]:e({id:"comp.industry.agriculture_forestry_and_fishing",defaultMessage:"Agriculture, Forestry and Fishing"}),[Ot.mM.ARTS_MEDIA_AND_ENTERTAINMENT]:e({id:"comp.industry.arts_media_and_entertainment",defaultMessage:"Arts, Media and Entertainment"}),[Ot.mM.AUTOMOTIVE]:e({id:"comp.industry.automotive",defaultMessage:"Automotive"}),[Ot.mM.CARE]:e({id:"comp.industry.care",defaultMessage:"Care"}),[Ot.mM.CONSTRUCTION]:e({id:"comp.industry.construction",defaultMessage:"Construction"}),[Ot.mM.EDUCATION]:e({id:"comp.industry.education",defaultMessage:"Education"}),[Ot.mM.ENERGY_MINING_AND_UTILITIES]:e({id:"comp.industry.energy_mining_and_utilities",defaultMessage:"Energy, Mining, and Utilities"}),[Ot.mM.ENVIRONMENTAL_PROTECTION]:e({id:"comp.industry.environmental_protection",defaultMessage:"Environmental Protection"}),[Ot.mM.FINANCIAL_SERVICES]:e({id:"comp.industry.financial_services",defaultMessage:"Financial Services"}),[Ot.mM.GOVERNMENT_AND_PUBLIC_ADMINISTRATION]:e({id:"comp.industry.government_and_public_administration",defaultMessage:"Government & Public Administration"}),[Ot.mM.HEALTH_AND_BEAUTY]:e({id:"comp.industry.health_and_beauty",defaultMessage:"Health and beauty"}),[Ot.mM.HEALTHCARE]:e({id:"comp.industry.healthcare",defaultMessage:"Healthcare"}),[Ot.mM.HUMANRESOURCES_AND_RECRUITMENT]:e({id:"comp.industry.humanresources_and_recruitment",defaultMessage:"Human Resources & Recruitment"}),[Ot.mM.INFORMATION_TECHNOLOGY]:e({id:"comp.industry.information_technology",defaultMessage:"Information Technology"}),[Ot.mM.INSURANCE]:e({id:"comp.industry.insurance",defaultMessage:"Insurance"}),[Ot.mM.LEGAL_SERVICES]:e({id:"comp.industry.legal_services",defaultMessage:"Legal Services"}),[Ot.mM.MAINTENANCE_SERVICES]:e({id:"comp.industry.maintenance_services",defaultMessage:"Maintenance Services"}),[Ot.mM.MANAGEMENT_AND_CONSULTING]:e({id:"comp.industry.management_and_consulting",defaultMessage:"Management & Consulting"}),[Ot.mM.MANUFACTURING]:e({id:"comp.industry.manufacturing",defaultMessage:"Manufacturing"}),[Ot.mM.MARKETING]:e({id:"comp.industry.marketing",defaultMessage:"Marketing"}),[Ot.mM.NONPROFIT_AND_NGOS]:e({id:"comp.industry.nonprofit_and_ngos",defaultMessage:"Nonprofit & NGOs"}),[Ot.mM.PHARMACEUTICAL_AND_BIOTECHNOLOGY]:e({id:"comp.industry.pharmaceutical_and_biotechnology",defaultMessage:"Pharmaceutical & Biotechnology"}),[Ot.mM.REAL_ESTATE]:e({id:"comp.industry.real_estate",defaultMessage:"Real Estate"}),[Ot.mM.RESTAURANTS_AND_FOOD_SERVICE]:e({id:"comp.industry.restaurants_and_food_service",defaultMessage:"Restaurants & Food Service"}),[Ot.mM.RETAIL_AND_WHOLESALE]:e({id:"comp.industry.retail_and_wholesale",defaultMessage:"Retail & Wholesale"}),[Ot.mM.SECURITY]:e({id:"comp.industry.security",defaultMessage:"Security"}),[Ot.mM.TELECOMMUNICATIONS]:e({id:"comp.industry.telecommunications",defaultMessage:"Telecommunications"}),[Ot.mM.TOURISM]:e({id:"comp.industry.tourism",defaultMessage:"Tourism"}),[Ot.mM.TRANSPORTATION_AND_LOGISTICS]:e({id:"comp.industry.transportation_and_logistics",defaultMessage:"Trans
1portation & Logistics"})}[t]:"",[e])},Kt=r(635294),Ut=r(223912);function Zt(e){var{company:t,onCompanyClick:r}=e,{companyName:a,logoUrl:n,slug:l,industry:i,counters:o}=t,s=Ht(),{formatMessage:c}=(0,y.useIntl)(),{profilePublic:d}=(0,Dt.U)(),u=d({uuidOrSlug:l}),f=c({id:"comp.alt.company_logo",defaultMessage:"{company_name} logo"},{company_name:a});return(0,g.jsx)("li",{children:(0,g.jsxs)(b.Z,{to:u,onClick:r,className:"bg-background-primary text-foreground-primary rounded-medium flex w-full min-w-0 items-center gap-150 p-200 no-underline",children:[(0,g.jsx)("div",{className:"border-border-subtle bg-background-primary rounded-medium flex aspect-4/3 h-full w-[80px] items-center justify-center border",children:(0,g.jsx)("div",{className:"flex h-full max-h-800 w-full max-w-800 justify-center overflow-hidden",children:n?(0,g.jsx)("img",{src:n,alt:f,className:"h-full w-full object-contain"}):(0,g.jsx)("div",{className:"flex items-center justify-center",children:(0,g.jsx)(At,{className:"h-full w-full"})})})}),(0,g.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-100 text-left",children:[(0,g.jsx)(p.NexusText,{as:"span",variant:"bodyBase",color:"var(--colorsForegroundPrimary)",className:"text-headline-medium! leading-headline-medium! truncate",children:a}),(0,g.jsxs)(p.NexusText,{as:"span",variant:"bodyExtraSmall",weight:"regular",color:"var(--colorsForegroundPrimary)",className:"ml-50 flex flex-col gap-100 truncate",children:[(0,g.jsxs)("span",{className:"flex items-center gap-50",children:[(0,g.jsx)(Kt.default,{size:12,color:"var(--colorsForegroundPrimary)"}),(0,g.jsx)(y.FormattedMessage,{id:"comp.employers.label.industry",defaultMessage:"Industry: <strong>{industry}</strong>",values:{industry:s(i),strong:e=>(0,g.jsx)("strong",{children:e})}})]}),(0,g.jsxs)("span",{className:"flex items-center gap-50",children:[(0,g.jsx)(Ut.default,{size:12,color:"var(--colorsForegroundPrimary)"}),(0,g.jsx)(y.FormattedMessage,{id:"comp.employers.label.job_offers",defaultMessage:"<strong>{count}</strong> {count, plural, one {job offer} other {job offers}}",values:{count:o.ads,strong:e=>(0,g.jsx)("strong",{children:e})}})]})]})]})]})})}var Bt=5,Vt=92;function zt(){var{trackEvent:e}=(0,i.rS)(),{data:t,isLoading:r,isError:a}=Nt();return a||!r&&0===(null==t?void 0:t.length)?null:r?(0,g.jsx)(Jt,{}):(0,g.jsx)(qt,{companies:t,onCompanyClick:function(){e(Ft.Z.event.employerProfileClick)}})}function Jt(){return(0,g.jsx)(Gt,{children:(0,g.jsx)(Wt,{})})}function qt(e){var{companies:t,onCompanyClick:r}=e,{trackEvent:a}=(0,i.rS)(),n=(0,It.d)(()=>{a(i.tJ.events.trustedEmployersViewed)});return(0,g.jsx)(Gt,{children:(0,g.jsx)("ul",{ref:n,className:"m-0 flex list-none flex-col gap-100 p-0",children:t.map(e=>(0,g.jsx)(Zt,{company:e,onCompanyClick:r},e.slug))})})}function Gt(e){var{children:t}=e,{formatMessage:r}=(0,y.useIntl)();return(0,g.jsxs)(L,{"data-testid":"jobs-hub-trusted-companies","aria-labelledby":"jobs-hub-trusted-companies-heading",children:[(0,g.jsx)(h,{id:"jobs-hub-trusted-companies-heading",title:r({id:"jobsHub.trustedEmployers.title",defaultMessage:"Trusted employers"}),subtitle:r({id:"jobsHub.trustedEmployers.subtitle",defaultMessage:"Verified companies with active job offers"})}),t]})}function Wt(){return(0,g.jsx)("ul",{className:"m-0 flex list-none flex-col gap-100 p-0",children:Array.from({length:Bt},(e,t)=>(0,g.jsx)("li",{children:(0,g.jsx)(O.x,{loading:!0,width:"100%",height:Vt,className:"rounded-medium"})},t))})}var Yt=r(172705);function Qt(){var{trackPageView:e}=(0,i.rS)(),[t]=(0,o.useCategories)(),r=(0,Yt.Lg)(),c=(0,o.getRootCategories)(t).find(e=>"job"===e.type),d=(0,n.useExperiment)(s.DP.id)===s.DP.variants.trustedCompanies;(0,a.l)(()=>{(0,l.k)(),e(i.tJ.pageView)},[]);var u=r?V:Z;return(0,g.jsxs)("div",{className:"bg-background-secondary flex min-h-full flex-1 flex-col","data-testid":"jobs-hub",children:[(0,g.jsx)(u,{jobRootCategoryId:null==c?void 0:c.id}),(0,g.jsxs)("div",{className:"my-100 flex flex-1 flex-col",children:[(0,g.jsx)(ie,{jobRootCategoryId:null==c?void 0:c.id}),(0,g.jsx)(P,{}),c&&(0,g.jsx)(nt,{jobRootCategoryId:c.id}),(0,g.jsx)(St,{}),(0,g.jsx)(vt,{}),d&&(0,g.jsx)(zt,{})]})]})}},601497:(e,t,r)=>{r.d(t,{ON:()=>g});var a=r(729136),n=r(718930),l=r(731443);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=l.IMB(l.Z_8(),l._4T()).catch(()=>({})),d=l.Ryn({value:l.Z_8(),label:l.Z_8()}),u=l.IXX(d),f=l.Ryn({categoryId:l.Rxh(),query:l.Z_8()}).nullable(),m=l.Ryn({city:l.Z_8().optional(),cityId:l.Rxh().nullable(),description:l.Z_8().nullable().optional(),district:l.Z_8().nullable().optional(),districtId:l.Rxh().nullable(),region:l.Z_8().nullable().optional(),regionId:l.Rxh().nullable().optional(),title:l.Z_8().optional(),lat:l.Rxh().nullable().optional(),lon:l.Rxh().nullable().optional(),geoDescription:l.Z_8().optional(),radius:l.Rxh().nullable().optional(),zoom:l.Rxh().nullable().optional(),distance:l.Rxh().nullable().optional()}).nullable().transform(e=>{var t,r,a,n;return e?{city:e.city,cityId:e.cityId,description:e.description,district:e.district,districtId:null!==(t=e.districtId)&&void 0!==t?t:null,region:null!==(r=e.region)&&void 0!==r?r:void 0,regionId:e.regionId,title:null!==(a=e.title)&&void 0!==a?a:void 0,lat:e.lat,lon:e.lon,geoDescription:e.geoDescription,radius:e.radius,distance:null!==(n=e.distance)&&void 0!==n?n:null}:null}),p={category:f,workplace:u.nullable(),availability:u.nullable(),location:m},g=()=>((e,t)=>{var[r,l,i]=(0,n.Rr)(e,{},{getServerSnapshot:()=>null}),s=(0,a.useCallback)(e=>{var r=o({},e);for(var a of Object.keys(t)){var n;if(a in e){var l=null===(n=t[a])||void 0===n?void 0:n.safeParse(e[a]);null!=l&&l.success?r[a]=l.data:delete r[a]}}return r},[t]);return{readValue:(0,a.useCallback)(e=>{var a,n=null===(a=t[e])||void 0===a?void 0:a.safeParse(r[e]);return null!=n&&n.success?n.data:null},[t,r]),saveValue:(0,a.useCallback)((r,a)=>{var n,i={};try{var d=window.localStorage.getItem(e);d&&(i=c.parse(JSON.parse(d)))}catch(f){}var u=null===(n=t[r])||void 0===n?void 0:n.safeParse(a);null!=u&&u.success&&l(o(o({},s(i)),{},{[r]:u.data}))},[s,t,l,e]),saveValues:(0,a.useCallback)(r=>{var a={};try{var n=window.localStorage.getItem(e);n&&(a=c.parse(JSON.parse(n)))}catch(m){}var i=o({},s(a));for(var d of Object.keys(r)){var u,f=null===(u=t[d])||void 0===u?void 0:u.safeParse(r[d]);null!=f&&f.success&&(i[d]=f.data)}l(i)},[s,t,l,e]),removeAllValues:i}})("jobs-preferences",p)},427218:(e,t,r)=>{r.d(t,{h:()=>n});var a=r(545484),n=(e,t)=>{var r=e[t];if(r)return(0,a.getAncestors)(e,r).map(e=>e.name).reverse().join(" / ").trim()}},360702:(e,t,r)=>{r.d(t,{Z:()=>a.Z,x:()=>a.Z});var a=r(926505)},489751:(e,t,r)=>{r.d(t,{l:()=>a});var a={jobsGenomeUser:"jobs_genome_user",jobsHubRedirectPopover:"jobs_hub_redirect_popover",jobsHubRedirectClick:"jobs_hub_redirect_click",jobsHubRedirectConfirm:"jobs_hub_redirect_confirm"}},346491:(e,t,r)=>{var a=r(252215),n=r.n(a);t.Z=function(e,t,r){return n()([t,e,r].filter(e=>e)).join(", ")}},146960:(e,t,r)=>{r.d(t,{ZP:()=>w,J9:()=>h,_t:()=>p,wO:()=>g,Ps:()=>f,HW:()=>m});var a=function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.create;Object.create;var n=r(213349),l=new Map,i=new Map,o=!0,s=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function d(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var a=e.name.value,n=c((s=e.loc).source.body.substring(s.start,s.end)),l=i.get(a);l&&!l.has(n)?o&&console.warn("Warning: fragment with name "+a+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):l||i.set(a,l=new Set),l.add(n),t.has(n)||(t.add(n),r.push(e))}else r.push(e);var s}),a(a({},e),{definitions:r})}function u(e){var t=c(e);if(!l.has(t)){var r=(0,n.Qc)(e,{experimentalFragmentVariables:s,allowLegacyFragmentVariables:s});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");l.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var a=e[r];a&&"object"==typeof a&&t.add(a)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(d(r)))}return l.get(t)}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var a=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?a+=t.loc.source.body:a+=t,a+=e[r+1]}),u(a)}function m(){l.clear(),i.clear()}function p(){o=!1}
1function g(){s=!0}function h(){s=!1}var y,b=f,v=m,j=p,x=g,k=h;(y=f||(f={})).gql=b,y.resetCaches=v,y.disableFragmentWarnings=j,y.enableExperimentalFragmentVariables=x,y.disableExperimentalFragmentVariables=k,f.default=f;var w=f}}]); 2//# sourceMappingURL=olxeuweb.jobs-hub.c5eb91159.chunk.js.map
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.