1"use strict";(globalThis.webpackChunk_jobcloud_b2c_frontend=globalThis.webpackChunk_jobcloud_b2c_frontend||[]).push([["src_common_modules_meta-data_reducers_metaDataReducer_ts-src_common_modules_vacancy-detail_ac-2fac69"],{3696(e,t,n){n.d(t,{B:()=>s});var o=n(53133),r=n(49242),a=n(55566);const s=()=>{const e=(0,o.B)();return(0,r.A)("distance-filter")&&a.zB&&"CH"===e}},26894(e,t,n){n.d(t,{N:()=>a});var o=n(47538),r=n(74438);const a=(0,o.k)(null,r.A)},91838(e,t,n){n.d(t,{A:()=>d});var o=n(62939),r=n(67014),a=n(94956),s=n(18474),i=n(18960);const l="semanticSearchQuery",c=(e,t)=>["cv-based-search-query",e,t],d=(e,t)=>{const n=(0,a.A)().get("core.fetch");return(0,o.I)({enabled:!1,initialData:()=>{const t=(0,r.Gq)(l,"localStorage");if(t?.cvId===e&&t?.term)return t},queryKey:c(e,t),queryFn:async()=>{if(!e)throw new Error("No CV available");const o=(0,s.A)(await n.fetch(`user/candidate/skill-extract/${e}`)),a=(0,s.A)(await n.fetch(`${i.Ok.AI_PROXY}cv-to-search-query`,{body:{cvText:o.result.extractedContent.slice(0,1e4),locale:t},credentials:"include",method:"POST"})).result.term;return(0,r.SO)({cvId:e,term:a},l,"localStorage"),{cvId:e,term:a}}})}},37184(e,t,n){n.d(t,{x:()=>r});var o=n(77099);const r=e=>({type:o.b.ADD_GEO_TAG,payload:e})}
1,7865(e,t,n){n.d(t,{IZ:()=>i,P1:()=>l,Qt:()=>c});n(78944),n(50750);var o=n(55594),r=n(18960),a=n(90701),s=n(77099);const i=(0,n(8037).m)(s.m.SYNONYM),l=(e,t=5)=>(0,o.Ay)("public/meta/typeahead",(0,o.Gv)(s.m.SYNONYM),{query:{query:e,limit:t},attrs:{input:e}}),c=async e=>{if(e){const t=await fetch(`${r.Ok.PLATFORM}public/meta/typeahead?limit=1&query=${encodeURIComponent(e)}`);if(t?.ok&&200===t?.status){const n=await t.json();if(Array.isArray(n))return n.some((t=>(0,a.Yv)(t.name_display)===(0,a.Yv)(e)))}}return!1}},47386(e,t,n){n.d(t,{O:()=>s});var o=n(41711),r=n(96356),a=n(93982);const s=()=>{const{fetchSuggestions:e,suggestionLoading:t,suggestionGroupsParser:n,onClear:s}=(0,a.A)(),{suggestionLoading:i,suggestionGroupsParser:l,onClear:c}=(0,r.A)();return{fetchSuggestions:(0,o.useCallback)((t=>e(t)),[e]),onClear:(0,o.useCallback)((()=>{s(),c()}),[c,s]),suggestionLoading:i||t||!1,suggestionGroupsParser:(0,o.useCallback)((e=>[...n(e),...l(e)]),[l,n])}}},93982(e,t,n){n.d(t,{A:()=>p});n(78944),n(97512),n(18910);var o=n(41711),r=n(79410),a=n(1444),s=n(70119),i=n(96777),l=n(7865);const c=[],d=e=>r.Mz.withTypes()([t=>t[e]&&"recent"in t[e]?t[e].recent:c],((e=[])=>[...new Set(e.filter((e=>!!e.term)).map((e=>e.term)).reverse())].slice(0,5))),u={vacancy:d("vacancy"),salary:d("salary")},p=(e="vacancy")=>{const t=(0,i.A)(),n=(0,a.A)(),r=(0,s.A)((e=>e.typeahead?.synonym?.data)),c=(0,s.A)(u[e]);return{onClear:(0,o.useCallback)((()=>n((0,l.IZ)())),[n]),fetchSuggestions:(0,o.useCallback)((e=>n((0,l.P1)(e))),[n]),suggestionLoading:(0,s.A)((e=>e.typeahead?.synonym?.loading))||!1,suggestionGroupsParser:n=>[...n?[{..."vacancy"===e?{label:t("typeahead.synonym.synonym_label")}:{},suggestions:r||[]}]:"vacancy"===e?[{label:t("typeahead.synonym.recent_label"),suggestions:c}]:[]]}}},22342(e,t,n){n.d(t,{A:()=>i});var o=n(64897),r=n(69462),a=n(77099);const s=(0,r.A)({},{[a.b.ADD_GEO_TAG]:(e,t)=>({...e,[t.payload.id]:t.payload})}),i=(0,o.HY)({geoTags:s})},45185(e,t,n){n.d(t,{Y:()=>d,P:()=>u});n(84775),n(78944),n(97512),n(27025),n(18910);var o=n(37184),r=n(18960),a=n(40976);const s=async(e,t,n)=>{const o=await e.fetch(r.Ok.METADATA_API+"gis-tag/"+t);if(o.ok)return(0,a.OJ)(n)(o.result)},i=["city-","canton-","region-","zip-"],l=e=>i.some((t=>e.startsWith(t))),c=e=>["city","canton"].includes(e.subType),d=async(e,t)=>Promise.all(t.filter(l).map((async t=>{const n=Object.values(e.get("core.redux").getState().metaData.geoTags).filter(c).find((e=>e.tag.current===t));if(n)return{geoTag:t,locationShape:n};const r=await s(e.get("core.fetch"),t,e.get("core.locale"));return r&&"canton"===r.subType?(e.get("core.redux").dispatch((0,o.x)(r)),{geoTag:t,locationShape:r}):void 0}))),u=(e,t)=>{if(e)return"city"===e.subType||"region"===e.subType?e.name.current:"canton"===e.subType?e.name.current+" ("+t("typeahead.location.subtype.canton")+")":"zip"===e.subType?`${e.shortName.current} (${e.code})`:void 0}},79018(e,t,n){n.d(t,{D:()=>o});const o="recentSearches"},80825(e,t,n){n.d(t,{Qd:()=>A,U3:()=>j,iB:()=>I,ok:()=>v,r:()=>_});n(78944),n(97512),n(18910);var o=n(6799),r=n(41711),a=n(67014),s=n(94956),i=n(73128),l=n(45185),c=n(1428),d=n(18960),u=n(42253),p=n(53352),m=n(90701),h=n(49975),y=n(96777),g=n(37184),b=n(40976),f=n(79018),x=n(63348);const S=()=>{const e=(0,a.Gq)(f.D,"localStorage",[]);return(0,c.L8)(e).map(c.nS)},v=()=>{const e=(0,o.c)(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],e[0]=t):t=e[0];const[n,s]=(0,r.useState)(t);let i,l,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{s(S());const e=e=>{e.storageArea===window.localStorage&&e.key===f.D&&s(S())};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},l=[],e[1]=i,e[2]=l):(i=e[1],l=e[2]),(0,r.useEffect)(i,l),e[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{s([]),(0,a.Ai)(f.D,"localStorage")},e[3]=c):c=e[3];const d=c;let u;return e[4]!==n?(u=[n,d],e[4]=n,e[5]=u):u=e[5],u},_=e=>{const t=(0,o.c)(10),{date:n,query:a}=e,i=(0,s.A)(),[l,c]=(0,r.useState)();let d;t[0]!==i?(d=i.wire(x.T),t[0]=i,t[1]=d):d=t[1];const m=d;let h;e:{if(a.publicationDate){const e=24*parseInt(a.publicationDate,10)*60*60*1e3,o=new Date(n).getTime();let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(new Date).getTime(),t[2]=r):r=t[2];const s=r-e;if(o<s){let e;t[3]!==s?(e=(0,p.Y)(s,u.h.EN,"date_api"),t[3]=s,t[4]=e):e=t[4],h=e;break e}}h=n}const y=h;let g,b;return t[5]!==y||t[6]!==a||t[7]!==m?(g=()=>{(async()=>{const{publicationDate:e,...t}=a,n=await m.search(t,{publicationDateFrom:y,publicationDateTo:(0,p.Y)((new Date).setUTCHours(23,0,0,0),u.h.EN,"date_api")});n.ok&&c(n.result)})()},b=[y,a,m],t[5]=y,t[6]=a,t[7]=m,t[8]=g,t[9]=b):(g=t[8],b=t[9]),(0,r.useEffect)(g,b),l},A=e=>{const t=(0,o.c)(8),{query:n}=e,a=(0,s.A)(),i=(0,h.A)();let l;t[0]!==a?(l=a.get("core.redux"),t[0]=a,t[1]=l):l=t[1];const{dispatch:c}=l;let u,p;t[2]!==a||t[3]!==c||t[4]!==i||t[5]!==n.geoShapeIds?(u=()=>{(async()=>{n.geoShapeIds&&n.geoShapeIds.length&&await Promise.all(n.geoShapeIds.map((async e=>{const t=await a.get("core.fetch").fetch(d.Ok.METADATA_API+"gis/"+e);if(!t.ok)return;const n=(0,b.OJ)(i)(t.result);c((0,g.x)(n))})))})()},p=[a,c,i,n.geoShapeIds],t[2]=a,t[3]=c,t[4]=i,t[5]=n.geoShapeIds,t[6]=u,t[7]=p):(u=t[6],p=t[7]),(0,r.useEffect)(u,p)},j=(e,t)=>{const n=(0,o.c)(6),r=(0,y.A)();let a;return n[0]!==t||n[1]!==e.query.geoShapeIds||n[2]!==e.query.locations||n[3]!==e.query.regionIds||n[4]!==r?(a=[...e.query.regionIds.map((e=>r(`regions.${e}`))),...e.query.locations.map(C),...(e.query.geoShapeIds||[]).map((e=>t[e])).map((e=>
1(0,l.P)(e,r))).filter(Boolean)].join(", ")||r("recent_searches.all_locations"),n[0]=t,n[1]=e.query.geoShapeIds,n[2]=e.query.locations,n[3]=e.query.regionIds,n[4]=r,n[5]=a):a=n[5],a},I=e=>{const t=(0,o.c)(33),n=(0,y.A)();let r,a;if(t[0]!==e.query.employmentGrades[0]||t[1]!==e.query.employmentGrades[1]?(r=0!==e.query.employmentGrades[0]||100!==e.query.employmentGrades[1]?[`${e.query.employmentGrades[0]||0} - ${e.query.employmentGrades[1]||100}%`]:[],t[0]=e.query.employmentGrades[0],t[1]=e.query.employmentGrades[1],t[2]=r):r=t[2],t[3]!==e.query.benefitIds||t[4]!==e.query.categoryIds[0]||t[5]!==e.query.categoryIds.length||t[6]!==e.query.employmentTypeIds||t[7]!==e.query.industryIds||t[8]!==e.query.languageIds||t[9]!==e.query.positionIds||t[10]!==e.query.publicationDate||t[11]!==e.query.segmentIds||t[12]!==n||t[13]!==r){let o,s,l,c,d,u,p;t[15]!==n?(o=e=>n(`employment_type.${e}`),t[15]=n,t[16]=o):o=t[16],t[17]!==e.query.categoryIds[0]||t[18]!==e.query.categoryIds.length||t[19]!==n?(s=e.query.categoryIds.length?[n(`categories.${e.query.categoryIds[0]}`)]:[],t[17]=e.query.categoryIds[0],t[18]=e.query.categoryIds.length,t[19]=n,t[20]=s):s=t[20],t[21]!==n?(l=e=>n(`industries.${e}`),t[21]=n,t[22]=l):l=t[22],t[23]!==e.query.publicationDate||t[24]!==n?(c=e.query.publicationDate?[`${n("quick_filter.publication_date.title")} ${n(`publication_dates.${e.query.publicationDate}`)}`]:[],t[23]=e.query.publicationDate,t[24]=n,t[25]=c):c=t[25],t[26]!==n?(d=e=>n(`company_segments_badge.${e}`),t[26]=n,t[27]=d):d=t[27],t[28]!==n?(u=e=>n(`employment_position_${e}`),t[28]=n,t[29]=u):u=t[29],t[30]!==e.query.benefitIds||t[31]!==n?(p=i.j5.is("jobup")?[...new Set(e.query.benefitIds.map((e=>n(`benefit.${e}`))))]:[],t[30]=e.query.benefitIds,t[31]=n,t[32]=p):p=t[32],a=[...r,...e.query.employmentTypeIds.map(o),...i.j5.is("jobs")?e.query.languageIds.map((e=>n(`language_skills.${e}`))):[],...s,...e.query.industryIds.map(l),...c,...e.query.segmentIds.map(d),...e.query.positionIds.map(u),...p],t[3]=e.query.benefitIds,t[4]=e.query.categoryIds[0],t[5]=e.query.categoryIds.length,t[6]=e.query.employmentTypeIds,t[7]=e.query.industryIds,t[8]=e.query.languageIds,t[9]=e.query.positionIds,t[10]=e.query.publicationDate,t[11]=e.query.segmentIds,t[12]=n,t[13]=r,t[14]=a}else a=t[14];return a.join(", ")};function C(e){return(0,m.ip)(e)}},1428(e,t,n){n.d(t,{L8:()=>d,nG:()=>u,nS:()=>h});n(82822),n(78944),n(97512),n(18910);var o=n(67014),r=n(99930),a=n(50253),s=n(19357),i=n(42253),l=n(53352),c=n(79018);const d=e=>{if(!e)return[];try{const t="string"==typeof e?JSON.parse(e):e;return Array.isArray(t)?t:[]}catch{return[]}},u=e=>{const t=e.get("core.redux").getState().vacancy?.query;if(!t||!(0,s.oM)(t))return;const n=(0,o.Gq)(c.D,"localStorage"),r=d(n).map(h),a=p(t,r);(0,o.SO)(JSON.stringify(a),c.D,"localStorage"),"undefined"!=typeof window&&window.dispatchEvent(new StorageEvent("storage",{key:c.D,storageArea:window.localStorage}))},p=(e,t,n=new Date)=>{const o=m(e),r=t.filter((e=>m(e.query)!==o));return[{query:e,date:(0,l.Y)(n,i.h.EN,"date_api")},...r.slice(0,2)]},m=e=>(0,s.Te)(e),h=e=>({date:e.date,query:(0,a._e)(r.A.of(e.query))})},95262(e,t,n){n.d(t,{A:()=>q});var o=n(67014),r=n(94956),a=n(53221),s=n(70580),i=n(18960),l=n(1444),c=n(49975),d=n(14503),u=n(96777),p=n(91838),m=(n(78944),n(18910),n(62939)),h=n(18474),y=n(29154);const g=e=>["profile-based-search-query",e],b=e=>{const t=(0,r.A)().get("core.fetch"),{data:{careers:n=[],languages:o=[],skills:a=[]}={}}=(0,y.B9)();return(0,m.I)({enabled:!1,queryKey:g(e),queryFn:async()=>({term:(0,h.A)(await t.fetch(`${i.Ok.AI_PROXY}candidate-to-search-query`,{body:{careers:n.map((({title:e,description:t,institution:n})=>({...e&&{title:e},...t&&{description:t},...n&&{institution:n}}))),languages:o.map((({iso:e,level:t})=>({isoCode:e,...void 0!==t&&{level:t.toString()}}))),locale:e,skills:a.map((({name:e})=>e))},credentials:"include",method:"POST"})).result.term})})};var f=n(44916),x=n(64244),S=n(8916),v=n(33845),_=n(59033),A=n(16206),j=n(20658),I=n(54228),C=n(74871),w=n(86147),k=n(52695);const T=({color:e="white"})=>{const t=(0,u.A)();return(0,k.jsx)(A.A,{direction:"down",tip:t("search.form.search_with_my_profile_tooltip"),children:(0,k.jsx)(C.A,{color:e,iconSize:"sm"})})},q=({applyFilterValues:e,onTermFetched:t,onLoadingChange:n,variant:m="row"})=>{const h=(0,u.A)(),y=(0,r.A)(),g=(0,l.A)(),{isSet:A,setFlag:C}=(0,S.Ay)("job_search_prompt_from_profile_opt_in"),q=!A,{data:E}=(0,d.Qg)(),D=(0,c.A)(),{isFetching:N,refetch:F}=(0,p.A)(E?.id||"",D),{isFetching:L,refetch:P}=b(D),R=(0,f.A)(),O=(0,x.qk)(),{trackingCollector:$}=y.get("core.trackingCollector"),M=async()=>
1{q&&z(),O({event_component_type:"generate_prompt_from_profile",...$([(0,s.A)("experiment_search_with_profile_click")],I.r.Tealium)}),n?.(!0);try{const n=await F();if(n.data?.term){const r=n.data.term;(0,o.SO)(r,j.Y,"localStorage"),t?t(r):e?.({term:r},"none")}else{const n=await P();if(n.data?.term){const r=n.data.term;(0,o.SO)(r,j.Y,"localStorage"),t?t(r):e?.({term:r},"none")}}}finally{n?.(!1)}},z=()=>{C(!0),g((0,v.tj)("TextSnackbar",{data:{text:(0,a.A)({mixedString:h("search.search_with_my_profile.snackbar"),components:{settings:(0,k.jsx)(_.N_,{eventData:{event_component_type:"profile_to_search_settings"},to:{route:i.JZ.USER_SETTINGS}})}})},severity:"info",timeout:v.Q9}))};return"cta"===m?(0,k.jsxs)(_.mz,{buttonColor:"default",buttonState:N||L?"pending":"default",buttonType:"outlined","data-cy":"search-with-profile-button-cta",onClick:()=>{R(),M()},children:[(0,k.jsx)(w.A,{iconSize:"sm",mr:"s8"}),h("search.form.search_with_my_profile")]}):"pill"===m?(0,k.jsxs)(_.so,{alignItems:"center",gap:"s8",justifyContent:"center",mt:"s24",width:"[100%]",children:[(0,k.jsxs)(_.mz,{buttonColor:"white",buttonState:N||L?"pending":"default",buttonType:"outlined","data-cy":"search-with-profile-button-pill",onClick:()=>{M()},width:{base:"100%",sm:"auto"},children:[(0,k.jsx)(w.A,{iconSize:"sm",mr:"s8"}),h("search.form.search_with_my_profile")]}),(0,k.jsx)(T,{})]}):(0,k.jsxs)(_.so,{alignItems:"center",gap:"s8",pb:"s0",pt:"s12",px:"s4",children:[(0,k.jsxs)(_.mz,{buttonColor:"default",buttonSize:"sm",buttonState:N||L?"pending":"default",buttonType:"blended","data-cy":"search-with-profile-button-row",onClick:()=>{M()},children:[(0,k.jsx)(w.A,{iconSize:"sm",mr:"s8"}),h("search.form.search_with_my_profile")]}),(0,k.jsx)(T,{color:"purple.700"})]})}},33176(e,t,n){n.d(t,{A:()=>S});n(84775),n(78944),n(97512),n(18910);var o=n(6799),r=n(62939),a=n(41711),s=n(94956),i=n(69424),l=n(96777),c=n(59033),d=n(9905),u=n(41131),p=n(63348),m=n(42776),h=n(52695);const y=()=>{},g=e=>{const t=(0,o.c)(12),{companyId:n,onUncheck:r}=e,{data:a,isLoading:s}=(0,i.bW)(n),u=(0,l.A)();let p;t[0]!==n||t[1]!==r?(p=e=>{e.stopPropagation(),r(n)},t[0]=n,t[1]=r,t[2]=p):p=t[2];const m=p;if(s){let e;t[3]!==u?(e=u("accessibility.action.loading"),t[3]=u,t[4]=e):e=t[4];const o="checkbox-"+n;let r;return t[5]!==e||t[6]!==o?(r=(0,h.jsx)(c.so,{columnGap:"s4",py:"s8",children:(0,h.jsx)(d.A,{checked:!0,disabled:!0,label:e,name:o,onChange:y})}),t[5]=e,t[6]=o,t[7]=r):r=t[7],r}const g=a?.name,b="checkbox-"+n;let f;return t[8]!==m||t[9]!==g||t[10]!==b?(f=(0,h.jsx)(c.so,{columnGap:"s4",py:"s8",children:(0,h.jsx)(d.A,{checked:!0,label:g,name:b,onChange:m})}),t[8]=m,t[9]=g,t[10]=b,t[11]=f):f=t[11],f},b=e=>{const t=(0,o.c)(10),{company:n,add:r}=e;let a;t[0]!==r||t[1]!==n.id?(a=e=>{e.stopPropagation(),r(n.id)},t[0]=r,t[1]=n.id,t[2]=a):a=t[2];const s=a,i=n?.name,l="checkbox-"+n.id;let u,p;return t[3]!==s||t[4]!==i||t[5]!==l?(u=(0,h.jsx)(d.A,{checked:!1,label:i,name:l,onChange:s}),t[3]=s,t[4]=i,t[5]=l,t[6]=u):u=t[6],t[7]!==n.id||t[8]!==u?(p=(0,h.jsx)(c.so,{columnGap:"s4",py:"s8",children:u},n.id),t[7]=n.id,t[8]=u,t[9]=p):p=t[9],p},f=e=>({id:e.company.id,name:e.company.name||""}),x=(e,t,n)=>n.findIndex((t=>t.id===e.id))===t,S=({companyIds:e=[],hideInitialSuggestions:t,setCompanyIds:n,feSearchQuery:i})=>{const d=(0,s.A)(),y=d.wire(p.T),S=(0,l.A)(),[v,_]=(0,a.useState)(""),[A,j]=(0,a.useState)([]),{data:I}=(0,r.I)(y.getFetchConfiguration({...i,companyIds:[]},{rows:20})),C=(0,a.useMemo)((()=>(I?.results||[]).map(f).filter((({id:e})=>!!e)).filter(x)),[I]),w=((e,t)=>{const n=(0,o.c)(4),[r,s]=(0,a.useState)(e);let i,l;return n[0]!==e||n[1]!==t?(i=()=>{const n=setTimeout((()=>{s(e)}),t);return()=>{clearTimeout(n)}},l=[e,t],n[0]=e,n[1]=t,n[2]=i,n[3]=l):(i=n[2],l=n[3]),(0,a.useEffect)(i,l),r})(v,300);(0,a.useEffect)((()=>{if(!w)return void j([]);let e=!1;return d.get("core.fetch").fetch("public/company/type-ahead",{query:{term:w,limit:15}}).then((t=>{t.ok&&!e&&j(t.result)})),()=>{e=!0}}),[w,d]);const k=!!w,T=(0,a.useMemo)((()=>(k?A:t?[]:C).filter((({id:t})=>!e.includes(t))).filter(((t,n)=>n<15-e.length))),[k,A,t,C,e]),q=(0,a.useCallback)((t=>{const o=[...new Set([...e,t])];n({companyIds:o})}),[e,n]),E=(0,a.useCallback)((t=>{n({companyIds:e?.filter((e=>e!==t))||[]})}),[e,n]);return(0,h.jsxs)(c.i,{width:"100%",children:[(0,h.jsx)(u.A,{mb:"s16",name:"Company",onChange:e=>_(e.target.value),placeholder:S("quick_filter.company.placeholder"),secondaryAction:v?(0,h.jsx)(c.K0,{buttonSize:"sm",buttonType:"blended",icon:(0,h.jsx)(m.A,{color:"purple.900",iconSize:"sm"}),mr:"s2",mt:"s2",onClick:e=>{e.stopPropagation(),_("")},position:"absolute",right:"s0",tabIndex:-1,title:S("accessibility.action.clear_input"),top:"s0",type:"button"}):void 0,value:v}),(0,h.jsx)(c.so,{flexDirection:"column",children:e?.map((e=>e&&(0,h.jsx)(g,{companyId:e,onUncheck:E},e)))}),(0,h.jsx)(c.so,{flexDirection:"column",children:T?.map((e=>(0,h.jsx)(b,{add:q,company:e},e.id)))})]})}}
1,23267(e,t,n){n.d(t,{A:()=>i});var o=n(6799),r=n(96777),a=n(59033),s=n(52695);const i=e=>{const t=(0,o.c)(22);let n,i,l;t[0]!==e?(({selectAll:l,removeAll:n,...i}=e),t[0]=e,t[1]=n,t[2]=i,t[3]=l):(n=t[1],i=t[2],l=t[3]);const c=(0,r.A)();let d,u,p,m,h,y;return t[4]===Symbol.for("react.memo_cache_sentinel")?(d={sm:"s2"},t[4]=d):d=t[4],t[5]!==c?(u=c("vacancy.advanced_filter.select"),t[5]=c,t[6]=u):u=t[6],t[7]!==u?(p=(0,s.jsx)(a.L9,{color:"gray.500",mr:"s8",children:u}),t[7]=u,t[8]=p):p=t[8],t[9]!==n||t[10]!==l||t[11]!==c?(m=l&&(0,s.jsx)(a.VS,{...n?{borderRight:"[1px solid {colors.gray.700}]",pr:"s8"}:{},onClick:()=>l(),children:c("vacancy.advanced_filter.select.all")}),t[9]=n,t[10]=l,t[11]=c,t[12]=m):m=t[12],t[13]!==n||t[14]!==l||t[15]!==c?(h=n&&(0,s.jsx)(a.VS,{onClick:()=>n(),...l?{pl:"s8"}:{},children:c("vacancy.advanced_filter.select.none")}),t[13]=n,t[14]=l,t[15]=c,t[16]=h):h=t[16],t[17]!==i||t[18]!==p||t[19]!==m||t[20]!==h?(y=(0,s.jsxs)(a.i,{pt:d,...i,children:[p,m,h]}),t[17]=i,t[18]=p,t[19]=m,t[20]=h,t[21]=y):y=t[21],y}},20658(e,t,n){n.d(t,{Y:()=>o});const o="searchGeneratedTerm"},36992(e,t,n){n.d(t,{u:()=>i});var o=n(49242),r=n(38496),a=n(45542),s=n(36809);const i=()=>{const e=(0,o.A)("semantic-search"),t=(0,r.U)(),n=(0,a.W)();return e&&t&&n!==s.K}},44916(e,t,n){n.d(t,{A:()=>a});var o=n(6799),r=(n(41711),n(45542));const a=()=>{const e=(0,o.c)(2),t=(0,r.W)();let n;return e[0]!==t?(n=()=>{"semantic"===t?document.querySelector("#term")?.focus():document.querySelector("#synonym-typeahead-text-field")?.focus()},e[0]=t,e[1]=n):n=e[1],n}},21300(e,t,n){n.d(t,{s:()=>l});var o=n(94956),r=n(14503),a=n(49242),s=n(29154),i=n(2739);const l=()=>{const e=(0,a.A)("profile-to-search"),t=(0,o.A)().get("core.cookie"),n="profile-to-search-prompt"===(0,i.a)(t.get("ab_experiments"),"FIAP-3069-profile-to-search-prompt"),{data:l}=(0,r.Qg)(),{data:{careers:c=[],languages:d=[],skills:u=[]}={}}=(0,s.B9)(),p=!!(l||c.length||d.length||u.length);return e&&p&&n}},2900(e,t,n){n.d(t,{A:()=>r});var o=n(19404);const r=(e,t)=>(0,o.A)(e,t,{steps:10,units:"kilometers"}).geometry.coordinates},8916(e,t,n){n.d(t,{Ay:()=>u,F1:()=>l,Mc:()=>d,Us:()=>s,nX:()=>c,oK:()=>i});n(92567);var o=n(41711),r=n(94956),a=n(18218);const s=()=>{const{data:{flags:e}={flags:{}}}=(0,a.sg)();return e},i=async(e,t,n)=>{const o=n.getQueryData(a.qv);if(!o)return{ok:!1,error:"No user found"};const r={...o.flags},s={...o.flags,[e]:(new Date).toDateString()};n.setQueryData(a.qv,{...o,flags:s});const i=await t.fetch(`${a.WT}/flag`,{body:{flag:e},method:"PUT"});return i.ok||n.setQueryData(a.qv,{...o,flags:r}),i},l=async(e,t,n)=>{const o=n.getQueryData(a.qv);if(!o)return{ok:!1,error:"No user found"};const r={...o.flags},{[e]:s,...i}=o.flags;n.setQueryData(a.qv,{...o,flags:i});const l=await t.fetch(`${a.WT}/flag/${e}`,{method:"DELETE"});return l.ok||n.setQueryData(a.qv,{...o,flags:r}),l},c=()=>{const e=(0,r.A)();return{setFlag:async t=>i(t,e.get("core.fetch"),e.get("query.client"))}},d=()=>{const e=(0,r.A)();return{deleteFlag:async t=>l(t,e.get("core.fetch"),e.get("query.client"))}},u=e=>{const{data:{flags:t}={}}=(0,a.sg)(),n=!!t?.[e],{setFlag:r}=c(),{deleteFlag:s}=d();return(0,o.useMemo)((()=>({isSet:n,setFlag:(t=!0)=>t?r?.(e):s?.(e)})),[s,e,n,r])}},89016(e,t,n){n.d(t,{R1:()=>s,pC:()=>r,uB:()=>a});var o=n(20902);const r=e=>({type:o.g.SET_ADJOINING_POINTER,payload:e}),a=(e,t,n=!1)=>({type:o.g.ADD_ADJOINING_VACANCY_LIST,prepend:n,pageNumber:t,payload:e}),s=()=>({type:o.g.RESET_LAST_POSITION})},28022(e,t,n){n.d(t,{A:()=>ft});var o=n(82026),r=n(50253),a=n(18960),s=n(70119),i=n(20255),l=n(36992),c=n(45589),d=n(45542),u=(n(46978),n(6799)),p=n(73128),m=n(3696),h=n(62285),y=n(49242),g=n(55629),b=n(60468),f=n(20736),x=n(96777),S=n(33176),v=n(22230),_=n(59033),A=n(52695);const j=({committedValue:e=[],onExecute:t,onSearch:n,onCancel:o,value:r=[],feSearchQuery:a})=>{const s=(0,x.A)(),i=!!e.length;return(0,A.jsx)(v.A,{buttonText:null,dataCy:"company-filter",filterButtonTitle:s("quick_filter.company.title"),filterTitleCounter:e.length,isActive:i,onCancel:o,onExecute:t,onReset:()=>t({companyIds:[]}),title:s("quick_filter.company.popover.title"),triggerId:"companyQuickFilterModal",children:(0,A.jsx)(_.so,{alignItems:"center",px:{base:"s16",sm:"s24"},width:{base:"[100%]",sm:"[406px]"},children:(0,A.jsx)(S.A,{companyIds:r,feSearchQuery:a,setCompanyIds:n})})})};n(78944),n(18910);var I=n(41711),C=n(2900);const w=()=>{const e=(0,I.useRef)(!1);(0,I.useEffect)((()=>{const t=()=>setTimeout((()=>{e.current=!1}),100);return document.addEventListener("mouseup",t),()=>document.removeEventListener("mouseup",t)}),[]);return{onSaveCancel:t=>{!e.current&&t()},sliderContainerProps:{onMouseDownCapture:()=>{e.current=!0}}}};var k=n(55566),T=n(52508);const q=({committedValue:e,onCancel:t,onExecute:n,onSearch:o,value:r=0})=>{const[a,s]=(0,I.useState)(e),[i,l]=(0,I.useState)();(0,I.useEffect)((()=>{(async()=>{const e=await(0,k.KW)();if(e instanceof GeolocationPositionError)return e;e?.coords?.longitude&&l([e.coords.longitude,e.coords.latitude])})()}),[]);const c=(0,x.A)(),d=e?`0-${a} km`:null,{onSaveCancel:u,sliderContainerProps:p}=w();return(0,A.jsx)(v.A,{buttonText:d,dataCy:"distance-quick-filter",isActive:!!e,onCancel:t,onExecute:()=>{n()},onReset:()=>{s(""),n({distance:"",geoShapePoints:[]})},onSaveCancel:u,title:c("quick_filter.distance.title"),triggerId:"distanceModal",children:(0,A.jsx)(_.i,{...p,px:{base:"s24",sm:"s40",md:"s24"},py:"s24",width:{base:"[100%]",sm:"[406px]"},children:(0,A.jsx)(T.Ay,{max:40,min:0,onChange:e=>{i&&(s(Array.isArray(e)?e[1]:e),(async(e,t)=>{const n=(r=(0,C.A)(e,t)[0],r.map((e=>[...e].reverse()))).map((e=>e.join(", ")));var r;o({distance:t.toString(),geoShapePoints:n})})(i,Array.isArray(e)?e[1]:e))},step:5,value:[0,r]})})})};n(97512);var E=n(48724),D=n(92645);const N=({cardinalities:e,committedValue:t=[],onCancel:n,onExecute:o,onSearch:r,value:a=[]})=>{const s=(0,x.A)(),i=!!t.length,l=t.length>0?t.map((e=>s(`employment_position_${e}`))):null,c="semantic"===(0,d.W)();return(0,A.jsx)(v.A,{buttonText:l,dataCy:"employment-position-filter",isActive:i,onCancel:n,onExecute:o,onReset:()=>o({positionIds:[]}),title:s("quick_filter.employment_position.title"),triggerId:"employmentPositionModal",children:(0,A.jsx)(_.i,{pb:"s24",px:{base:"s8",sm:"s16",md:"s0"},width:{base:"[100%]",sm:"[406px]"},children:(0,A.jsx)(E.A,{activeFacets:a,facetCardinalities:e,facetKey:"employment-position",facets:D.A,hideCardinalities:c,onCheck:e=>{r({positionIds:[...new Set([...a,e])]})},onUncheck:e=>{r({positionIds:a.filter((t=>t!==e))})},translate:e=>s(`employment_position_${e}`)})})})};var F=n(37208);const L="employmentTypeModal",P=e=>{const t=(0,u.c)(38),{cardinalities:n,committedValue:o,onCancel:r,onExecute:a,onSearch:s,value:i}=e,l=(0,x.A)(),c=!!o.length,p="semantic"===(0,d.W)();let m;if(t[0]!==o||t[1]!==l){let e;
1t[3]!==l?(e=e=>l(`employment_type.${e}`),t[3]=l,t[4]=e):e=t[4],m=o.map(e),t[0]=o,t[1]=l,t[2]=m}else m=t[2];const h=m;let y;t[5]!==i||t[6]!==s?(y=e=>{s({employmentTypeIds:[...new Set([...i,e])]})},t[5]=i,t[6]=s,t[7]=y):y=t[7];const g=y;let b;t[8]!==i||t[9]!==s?(b=e=>{s({employmentTypeIds:i.filter((t=>t!==e))})},t[8]=i,t[9]=s,t[10]=b):b=t[10];const f=b;let S;t[11]!==l?(S=l("quick_filter.employment_type.title"),t[11]=l,t[12]=S):S=t[12];const j=o.length;let I,C,w,k,T,q,D;return t[13]!==a?(I=()=>a({employmentTypeIds:[]}),t[13]=a,t[14]=I):I=t[14],t[15]!==l?(C=l("quick_filter.employment_type.title"),t[15]=l,t[16]=C):C=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(w={base:"s8",sm:"s16",md:"s0"},k={base:"[100%]",sm:"[406px]"},t[17]=w,t[18]=k):(w=t[17],k=t[18]),t[19]!==l?(T=e=>l("employment_type."+e),t[19]=l,t[20]=T):T=t[20],t[21]!==n||t[22]!==i||t[23]!==p||t[24]!==g||t[25]!==f||t[26]!==T?(q=(0,A.jsx)(_.i,{pb:"s24",px:w,width:k,children:(0,A.jsx)(E.A,{activeFacets:i,facetCardinalities:n,facetKey:L,facets:F.A,hideCardinalities:p,onCheck:g,onUncheck:f,translate:T})}),t[21]=n,t[22]=i,t[23]=p,t[24]=g,t[25]=f,t[26]=T,t[27]=q):q=t[27],t[28]!==h||t[29]!==o.length||t[30]!==c||t[31]!==r||t[32]!==a||t[33]!==q||t[34]!==S||t[35]!==I||t[36]!==C?(D=(0,A.jsx)(v.A,{buttonText:h,dataCy:"employmentType-filter",filterButtonTitle:S,filterTitleCounter:j,isActive:c,onCancel:r,onExecute:a,onReset:I,title:C,triggerId:L,children:q}),t[28]=h,t[29]=o.length,t[30]=c,t[31]=r,t[32]=a,t[33]=q,t[34]=S,t[35]=I,t[36]=C,t[37]=D):D=t[37],D};n(84775);var R=n(60323);const O=e=>e.includes(r.ln)||e.includes(r.N8),$=({value:e=[],onExecute:t,committedValue:n})=>{const o=(0,x.A)();return(0,A.jsx)(R.A,{active:O(n),"data-cy":"homeoffice-filter",filterTitle:o("quick_filter.homeoffice.title"),onClear:()=>{t({benefitIds:e.filter((e=>e!==r.ln&&e!==r.N8))})},onClick:()=>{t({benefitIds:O(e)?e.filter((e=>e!==r.ln&&e!==r.N8)):[...e,r.ln]})},title:o("quick_filter.homeoffice.title")})};var M=n(51440);const z="languageModal",B=e=>{const t=(0,u.c)(38),{cardinalities:n,committedValue:o,onExecute:r,onSearch:a,onCancel:s,value:i}=e,l=(0,x.A)(),c=!!o.length;let p;if(t[0]!==o||t[1]!==l){let e;t[3]!==l?(e=e=>l(`language_skills.${e}`),t[3]=l,t[4]=e):e=t[4],p=o.map(e),t[0]=o,t[1]=l,t[2]=p}else p=t[2];const m=p;let h;t[5]!==i||t[6]!==a?(h=e=>{a({languageIds:[...new Set([...i,e])]})},t[5]=i,t[6]=a,t[7]=h):h=t[7];const y=h;let g;t[8]!==i||t[9]!==a?(g=e=>{a({languageIds:i.filter((t=>t!==e))})},t[8]=i,t[9]=a,t[10]=g):g=t[10];const b=g,f="semantic"===(0,d.W)();let S;t[11]!==l?(S=l("quick_filter.language.title"),t[11]=l,t[12]=S):S=t[12];const j=o.length;let I,C,w,k,T,q,D;return t[13]!==r?(I=()=>r({languageIds:[]}),t[13]=r,t[14]=I):I=t[14],t[15]!==l?(C=l("quick_filter.language.popover.title"),t[15]=l,t[16]=C):C=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(w={base:"s8",sm:"s16",md:"s0"},k={base:"[100%]",sm:"[406px]"},t[17]=w,t[18]=k):(w=t[17],k=t[18]),t[19]!==l?(T=e=>l(`language_skills.${e}`),t[19]=l,t[20]=T):T=t[20],t[21]!==n||t[22]!==f||t[23]!==i||t[24]!==y||t[25]!==b||t[26]!==T?(q=(0,A.jsx)(_.i,{pb:"s24",px:w,width:k,children:(0,A.jsx)(E.A,{activeFacets:i,facetCardinalities:n,facetKey:z,facets:M.A,hideCardinalities:f,onCheck:y,onUncheck:b,translate:T})}),t[21]=n,t[22]=f,t[23]=i,t[24]=y,t[25]=b,t[26]=T,t[27]=q):q=t[27],t[28]!==m||t[29]!==o.length||t[30]!==c||t[31]!==s||t[32]!==r||t[33]!==q||t[34]!==S||t[35]!==I||t[36]!==C?(D=(0,A.jsx)(v.A,{buttonText:m,dataCy:"language-filter",filterButtonTitle:S,filterTitleCounter:j,isActive:c,onCancel:s,onExecute:r,onReset:I,title:C,triggerId:z,children:q}),t[28]=m,t[29]=o.length,t[30]=c,t[31]=s,t[32]=r,t[33]=q,t[34]=S,t[35]=I,t[36]=C,t[37]=D):D=t[37],D};var G=n(68614),Q=n(79836);const V=e=>{const t=(0,u.c)(25),{onExecute:n,onCancel:o,onSearch:r,value:a,committedValue:s}=e,i=(0,x.A)();let l;t[0]!==s||t[1]!==i?(l=s?i(`publication_dates.${s}`):null,t[0]=s,t[1]=i,t[2]=l):l=t[2];const c=l,d=!!s;let p,m,h,y,g;t[3]!==n?(p=()=>n({publicationDate:void 0}),t[3]=n,t[4]=p):p=t[4],t[5]!==i?(m=i("quick_filter.publication_date.title"),t[5]=i,t[6]=m):m=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(h={base:"s24",sm:"s40",md:"s24"},y={base:"[100%]",sm:"[406px]"},t[7]=h,t[8]=y):(h=t[7],y=t[8]),t[9]!==r?(g=e=>{r({publicationDate:""===e?void 0:e})},t[9]=r,t[10]=g):g=t[10];const b=a||"";
1let f,S,j;return t[11]!==i?(f=Q.A.map((e=>{const{id:t}=e;return(0,A.jsx)(G.I,{label:i(`publication_dates.${t}`),value:t},`publication-date-${t}`)})),t[11]=i,t[12]=f):f=t[12],t[13]!==g||t[14]!==b||t[15]!==f?(S=(0,A.jsx)(_.i,{px:h,width:y,children:(0,A.jsx)(G.d,{emptiable:!0,name:"pubDate",onChange:g,value:b,children:f})}),t[13]=g,t[14]=b,t[15]=f,t[16]=S):S=t[16],t[17]!==c||t[18]!==o||t[19]!==n||t[20]!==S||t[21]!==d||t[22]!==p||t[23]!==m?(j=(0,A.jsx)(v.A,{buttonText:c,dataCy:"publication-date-filter",isActive:d,onCancel:o,onExecute:n,onReset:p,title:m,triggerId:"publicationDateModal",children:S}),t[17]=c,t[18]=o,t[19]=n,t[20]=S,t[21]=d,t[22]=p,t[23]=m,t[24]=j):j=t[24],j},W=([e,t])=>0!==e||100!==t,H=e=>{const t=(0,u.c)(29),{committedValue:n,onCancel:o,onExecute:r,onSearch:a,value:s}=e,i=(0,x.A)(),l=W(n)?`${n[0]}-${n[1]}%`:null,{onSaveCancel:c,sliderContainerProps:d}=w();let p,m,h,y,g,b,f,S,j,I,C;return t[0]!==i?(p=i("quick_filter.workload.accessibility_label"),t[0]=i,t[1]=p):p=t[1],t[2]!==n?(m=W(n),t[2]=n,t[3]=m):m=t[3],t[4]!==r?(h=()=>{r()},y=()=>{r({employmentGrades:[0,100]})},t[4]=r,t[5]=h,t[6]=y):(h=t[5],y=t[6]),t[7]!==i?(g=i("quick_filter.workload.title"),t[7]=i,t[8]=g):g=t[8],t[9]===Symbol.for("react.memo_cache_sentinel")?(b={base:"s8",sm:"s40",md:"s24"},t[9]=b):b=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(f={base:"[100%]",sm:"[406px]"},t[10]=f):f=t[10],t[11]!==a?(S=e=>{a({employmentGrades:e})},t[11]=a,t[12]=S):S=t[12],t[13]!==S||t[14]!==s?(j=(0,A.jsx)(T.Ay,{max:100,min:0,onChange:S,step:5,value:s}),t[13]=S,t[14]=s,t[15]=j):j=t[15],t[16]!==d||t[17]!==j?(I=(0,A.jsx)(_.i,{...d,px:b,py:"s24",width:f,children:j}),t[16]=d,t[17]=j,t[18]=I):I=t[18],t[19]!==l||t[20]!==o||t[21]!==c||t[22]!==p||t[23]!==I||t[24]!==m||t[25]!==h||t[26]!==y||t[27]!==g?(C=(0,A.jsx)(v.A,{accessibilityLabel:p,buttonText:l,dataCy:"workload-filter",isActive:m,onCancel:o,onExecute:h,onReset:y,onSaveCancel:c,title:g,triggerId:"workloadModal",children:I}),t[19]=l,t[20]=o,t[21]=c,t[22]=p,t[23]=I,t[24]=m,t[25]=h,t[26]=y,t[27]=g,t[28]=C):C=t[28],C},K=()=>{const e=(0,u.c)(15),t=(0,y.A)("homeoffice"),n=(0,y.A)("language-skills"),o=(0,m.B)();let r;if(e[0]!==o||e[1]!==t||e[2]!==n){let a,s,i,l,c,d,u,m;if(r=[],e[4]===Symbol.for("react.memo_cache_sentinel")?(a=["publicationDate",V],s=["employmentGrades",H],e[4]=a,e[5]=s):(a=e[4],s=e[5]),r.push(a,s),o){let t;e[6]===Symbol.for("react.memo_cache_sentinel")?(t=["distance",q],e[6]=t):t=e[6],r.push(t)}if(e[7]===Symbol.for("react.memo_cache_sentinel")?(i=["categoryIds",f.A],e[7]=i):i=e[7],r.push(i),e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["employmentTypeIds",P],e[8]=l):l=e[8],r.push(l),t){let t;e[9]===Symbol.for("react.memo_cache_sentinel")?(t=["benefitIds",$],e[9]=t):t=e[9],r.push(t)}if(n&&p.j5.is("jobs")){let t;e[10]===Symbol.for("react.memo_cache_sentinel")?(t=["languageIds",B],e[10]=t):t=e[10],r.push(t)}e[11]===Symbol.for("react.memo_cache_sentinel")?(c=["companyIds",j],e[11]=c):c=e[11],r.push(c),e[12]===Symbol.for("react.memo_cache_sentinel")?(d=["positionIds",N],e[12]=d):d=e[12],r.push(d),e[13]===Symbol.for("react.memo_cache_sentinel")?(u=["industryIds",g.A],e[13]=u):u=e[13],r.push(u),e[14]===Symbol.for("react.memo_cache_sentinel")?(m=["segmentIds",b.A],e[14]=m):m=e[14],r.push(m),e[0]=o,e[1]=t,e[2]=n,e[3]=r}else r=e[3];return r},U=K;var Y=n(98881),J=n(88402),X=n(71646),Z=n(47386),ee=n(94574),te=n(37744),ne=n(94956),oe=n(80825),re=n(38496),ae=n(44007),se=n(29916),ie=n(90701),le=n(49975),ce=n(5138);const de=e=>{e.preventDefault()},ue=e=>{const t=(0,u.c)(25),{onClick:n,search:o}=e,i=(0,x.A)(),l=(0,le.A)();(0,oe.Qd)(o);const c=(0,s.A)(pe);let d;t[0]!==l||t[1]!==o.query?(d=(0,se.C)({route:a.JZ.VACANCY_SEARCH_PARAMS,query:{term:"",...(0,r.a7)(o.query)}},l),t[0]=l,t[1]=o.query,t[2]=d):d=t[2];const p=d,m=(0,oe.U3)(o,c);let h,y,g,b,f,S,v,j,I,C,w;return t[3]!==n?(h=()=>n?.(),t[3]=n,t[4]=h):h=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(y=(0,A.jsx)(_.so,{flexShrink:0,children:(0,A.jsx)(ce.A,{iconSize:"sm"})}),t[5]=y):y=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(g={event_component_type:"recent_searches_dropdown"},t[6]=g):g=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(b=(0,ae.gO)(),t[7]=b):b=t[7],t[8]!==o.query?.term||t[9]!==i?(f=(0,ie.BB)(o.query?.term)||i("recent_searches.all_jobs"),t[8]=o.query?.term,t[9]=i,t[10]=f):f=t[10],t[11]!==f?(S=(0,A.jsx)(_.L9,{className:b,children:f}),t[11]=f,t[12]=S):S=t[12],t[13]!==S||t[14]!==p?(v=(0,A.jsx)(_.N_,{eventData:g,onClick:de,textStyle:"body2",to:p,visited:"none",children:S}),t[13]=S,t[14]=p,t[15]=v):v=t[15],t[16]===Symbol.for("react.memo_cache_sentinel")?(j=(0,ae.gO)(),t[16]=j):j=t[16],t[17]!==m?(I=(0,A.jsx)(_.so,{alignItems:"center",children:(0,A.jsx)(_.L9,{className:j,color:"gray.500",textStyle:"caption1",children:m})}),t[17]=m,t[18]=I):I=t[18],t[19]!==I||t[20]!==v?(C=(0,A.jsxs)(_.so,{alignItems:"center",gap:"s12",children:[y,(0,A.jsxs)(_.so,{flexDirection:"column",flexGrow:1,children:[v,I]})]}),t[19]=I,t[20]=v,t[21]=C):C=t[21],t[22]!==C||t[23]!==h?(w=(0,A.jsx)(_.Li,{listStyleType:"none",onClick:h,px:"s16",py:"s12",children:C}),t[22]=C,t[23]=h,t[24]=w):w=t[24],w};function pe(e){return e.metaData.geoTags}const me=e=>{const t=(0,u.c)(18),{feSearchQuery:n,applyFilterValues:o}=e,r=(0,x.A)(),a=(0,ne.A)(),s=(0,re.U)(),i="LANDINGPAGE_RICO"===a.get("core.location").getRouteKey(),[l,c]=(0,oe.ok)();if(!(!!l.length&&(s||i)&&!n.term))return null;let d,p,m,h,y,g;if(t[0]!==r?(d=r("recent_searches.dropdown"),t[0]=r,t[1]=d):d=t[1],t[2]!==d?(p=(0,A.jsx)(_.L9,{color:"gray.700",pointerEvents:"none",pr:"s8",textStyle:"caption1",textTransform:"uppercase",children:d}),t[2]=d,t[3]=p):p=t[3],t[4]!==r?(m=r("recent_searches.clear_button"),t[4]=r,t[5]=m):m=t[5],t[6]!==c||t[7]!==m?(h=(0,A.jsx)(_.$n,{buttonSize:"sm",buttonType:"blended","data-cy":"recent-searches-clear-button",onClick:c,children:m}),t[6]=c,t[7]=m,t[8]=h):h=t[8],t[9]!==p||t[10]!==h?(y=(0,A.jsxs)(_.Li,{alignItems:"baseline",borderBottom:"b300",display:"flex",flexGrow:1,flexShrink:0,hyphens:"auto",justifyContent:"space-between",overflowWrap:"break-word",position:"relative",px:"s16",py:"s8",wordWrap:"break-word",children:[p,h]}
1,"recent-searches-header"),t[9]=p,t[10]=h,t[11]=y):y=t[11],t[12]!==o||t[13]!==l||t[14]!==y){let e;t[16]!==o?(e=e=>(0,A.jsx)(ue,{onClick:()=>{o(e.query,"immediate",{suppressNavigationEvent:!0})},search:e},`recent-search-${e.date}`),t[16]=o,t[17]=e):e=t[17],g=[y,...l.map(e)],t[12]=o,t[13]=l,t[14]=y,t[15]=g}else g=t[15];return g};var he=n(78978),ye=n(42092),ge=n(47217),be=n(86321);const fe=e=>{const t=(0,u.c)(41),{applyFilterValues:n,feSearchQuery:o,status:r}=e,a=(0,x.A)(),s=(0,Z.O)(),i=(0,h.kb)(),l=(0,h.Js)(),c=i||l;let d;t[0]!==n?(d=()=>{n({},"immediate")},t[0]=n,t[1]=d):d=t[1];const p=d;let m,y,g,b,f,S,v,_,j,I,C,w,k,T,q,E;return t[2]!==n||t[3]!==o?(m=(0,A.jsx)(me,{applyFilterValues:n,feSearchQuery:o}),t[2]=n,t[3]=o,t[4]=m):m=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(y=(0,J.AH)({minWidth:{base:"[300px]",sm:"[425px]"}}),t[5]=y):y=t[5],t[6]!==c?(g=c?{dropdownTop:`calc(100% + ${(0,X.S)("spacing.s4")})`}:{},t[6]=c,t[7]=g):g=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(b=(0,A.jsx)(be.A,{}),t[8]=b):b=t[8],t[9]!==a?(f=a("typeahead.profession.label_short"),t[9]=a,t[10]=f):f=t[10],t[11]!==n?(S=e=>{n({term:e},"none")},v=()=>n({},"immediate"),t[11]=n,t[12]=S,t[13]=v):(S=t[12],v=t[13]),t[14]!==o.term||t[15]!==s||t[16]!==m||t[17]!==g||t[18]!==f||t[19]!==S||t[20]!==v?(_=(0,A.jsx)(he.A,{bottomAction:m,dropdownMinWidth:y,...g,id:"synonym-typeahead",inputColor:"accent",inputIcon:b,isInlineLabel:!0,label:f,maxLength:120,onChange:S,onSubmit:v,repeatInput:!0,showDropdownShadow:!0,showErrorAsLabel:!0,value:o.term,...s}),t[14]=o.term,t[15]=s,t[16]=m,t[17]=g,t[18]=f,t[19]=S,t[20]=v,t[21]=_):_=t[21],t[22]===Symbol.for("react.memo_cache_sentinel")?(j=(0,ye.h)("synonym-typeahead"),t[22]=j):j=t[22],t[23]!==c?(I=c?{dropdownTop:`calc(100% + ${(0,X.S)("spacing.s4")})`}:{},t[23]=c,t[24]=I):I=t[24],t[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,A.jsx)(ge.A,{}),t[25]=C):C=t[25],t[26]!==n?(w=e=>n(e,"immediate"),k=e=>n(e,"none"),t[26]=n,t[27]=w,t[28]=k):(w=t[27],k=t[28]),t[29]!==o.locations||t[30]!==o.regionIds||t[31]!==I||t[32]!==w||t[33]!==k?(T=(0,A.jsx)(ee.A,{...I,inputColor:"accent",inputIcon:C,isInlineLabel:!0,locations:o.locations,maxLength:120,onSubmit:w,onUpdateLocationAndRegion:k,regionIds:o.regionIds,showDropdownShadow:!0,storeKey:"vacancy"}),t[29]=o.locations,t[30]=o.regionIds,t[31]=I,t[32]=w,t[33]=k,t[34]=T):T=t[34],t[35]===Symbol.for("react.memo_cache_sentinel")?(q=(0,ye.h)(ee.W),t[35]=q):q=t[35],t[36]!==p||t[37]!==r||t[38]!==T||t[39]!==_?(E=(0,A.jsx)(te.A,{primaryInput:_,primaryInputId:j,secondaryInput:T,secondaryInputId:q,status:r,submit:p}),t[36]=p,t[37]=r,t[38]=T,t[39]=_,t[40]=E):E=t[40],E};var xe=n(50279),Se=n(21300);const ve=(e,t={})=>{const{typeDuration:n=1800,deleteDuration:o=500,pauseAfterType:r=2500,pauseAfterDelete:a=500,startDelay:s=400,isPaused:i=!1}=t,[l,c]=(0,I.useState)(""),d=(0,I.useRef)(null),u=()=>{d.current&&(clearTimeout(d.current),d.current=null)};return(0,I.useEffect)((()=>{if(0===e.length)return;if(u(),i)return;let t=0,l=0,p=!1;const m=()=>{const s=e[t];if(p)if(l>0){l-=1,c(s.substring(0,l));const e=o/s.length;d.current=setTimeout(m,e)}else d.current=setTimeout((()=>{p=!1,t=(t+1)%e.length,m()}),a);else if(l<s.length){l+=1,c(s.substring(0,l));const e=n/s.length;d.current=setTimeout(m,e)}else d.current=setTimeout((()=>{p=!0,m()}),r)};return d.current=setTimeout((()=>{m()}),s),()=>u()}),[e,n,o,r,a,s,i]),l};var _e=n(31214),Ae=n(95262),je=n(67014),Ie=n(68436),Ce=n(93491);const we=(0,I.forwardRef)(((e,t)=>{const n=(0,u.c)(20);let o,r,a;n[0]!==e?(({applyFilterValues:o,feSearchQuery:r,...a}=e),n[0]=e,n[1]=o,n[2]=r,n[3]=a):(o=n[1],r=n[2],a=n[3]);const s=(0,re.U)(),[i]=(0,oe.ok)(),l=!!i.length&&s,[c,d]=(0,I.useState)(!1);let p,m,h;n[4]!==a?(p=e=>{a.onBlur?.(e),d(!1)},m=e=>{a.onFocus?.(e),d(!0)},n[4]=a,n[5]=p,n[6]=m):(p=n[5],m=n[6]),n[7]!==t||n[8]!==p||n[9]!==m||n[10]!==a?(h=(0,A.jsx)(Ie.A,{...a,onBlur:p,onFocus:m,ref:t}),n[7]=t,n[8]=p,n[9]=m,n[10]=a,n[11]=h):h=n[11];const y=h;if(!l)return y;let g,b;return n[12]!==o||n[13]!==r?(g=(0,A.jsx)(me,{applyFilterValues:o,feSearchQuery:r}),n[12]=o,n[13]=r,n[14]=g):g=n[14],n[15]!==c||n[16]!==g||n[17]!==y||n[18]!==a.onEnterSubmit?(b=(0,A.jsx)(Ce.A,{dropdownTop:"100%",id:"textarea-recent-searches",input:y,inputColor:"default",isFocus:c,isSeamless:!0,isWrapperRelative:!1,minChars:0,onSubmit:a.onEnterSubmit,setIsFocus:d,showDropdownShadow:!0,children:g}),n[15]=c,n[16]=g,n[17]=y,n[18]=a.onEnterSubmit,n[19]=b):b=n[19],b}));
1we.displayName="TextAreaWithRecentSearches";const ke=we;var Te=n(72045),qe=n(20658);const Ee=e=>{const t=(0,u.c)(62),{applyFilterValues:n,errors:o,feSearchQuery:r,onBlur:a,onFocus:s,onLoadingChange:i,onSubmit:l,textareaRef:c}=e,d=(0,x.A)(),p=(0,Se.s)(),[m,h]=(0,I.useState)(!1),[y,g]=(0,I.useState)(!1);let b;t[0]!==n||t[1]!==o||t[2]!==l?(b=()=>{h(!0);const e=o?.includes("location-incomplete-error");e||(l?.(),n({},"immediate"))},t[0]=n,t[1]=o,t[2]=l,t[3]=b):b=t[3];const f=b;let S,v,j,C,w,k;t[4]!==d?(S=d("typeahead.profession.label_ai_1"),t[4]=d,t[5]=S):S=t[5],t[6]!==d?(v=d("typeahead.profession.label_ai_2"),t[6]=d,t[7]=v):v=t[7],t[8]!==d?(j=d("typeahead.profession.label_ai_3"),t[8]=d,t[9]=j):j=t[9],t[10]!==d?(C=d("typeahead.profession.label_ai_4"),t[10]=d,t[11]=C):C=t[11],t[12]!==d?(w=d("typeahead.profession.label_ai_5"),t[12]=d,t[13]=w):w=t[13],t[14]!==S||t[15]!==v||t[16]!==j||t[17]!==C||t[18]!==w?(k=[S,v,j,C,w],t[14]=S,t[15]=v,t[16]=j,t[17]=C,t[18]=w,t[19]=k):k=t[19];const T=k;let q;t[20]!==y?(q={isPaused:y},t[20]=y,t[21]=q):q=t[21];const E=ve(T,q),D=r.term||y?"":E;let N;t[22]===Symbol.for("react.memo_cache_sentinel")?(N=e=>{e.target instanceof HTMLElement&&"term"===e.target.id&&g(!0)},t[22]=N):N=t[22];const F=N;let L;t[23]===Symbol.for("react.memo_cache_sentinel")?(L=e=>{e.target instanceof HTMLElement&&"term"===e.target.id&&g(!1)},t[23]=L):L=t[23];const P=L;let R,O,$;t[24]===Symbol.for("react.memo_cache_sentinel")?(R=()=>(document.addEventListener("focusin",F),document.addEventListener("focusout",P),()=>{document.removeEventListener("focusin",F),document.removeEventListener("focusout",P)}),O=[F,P],t[24]=R,t[25]=O):(R=t[24],O=t[25]),(0,I.useEffect)(R,O),t[26]!==o?($=o?.includes("location-incomplete-error"),t[26]=o,t[27]=$):$=t[27];const M=$;let z,B,G;t[28]!==m||t[29]!==M?(z=()=>{!M&&m&&h(!1)},B=[M,m],t[28]=m,t[29]=M,t[30]=z,t[31]=B):(z=t[30],B=t[31]),(0,I.useEffect)(z,B),t[32]!==s?(G=e=>{"term"===e?.target.id&&g(!0),s?.(e)},t[32]=s,t[33]=G):G=t[33];const Q=G;let V;t[34]!==a?(V=e=>{"term"===e?.target.id&&g(!1),a?.(e)},t[34]=a,t[35]=V):V=t[35];const W=V;let H,K,U,Y,J,X,Z,ee;return t[36]===Symbol.for("react.memo_cache_sentinel")?(H=(0,ae.IR)(),t[36]=H):H=t[36],t[37]!==d?(K=d("typeahead.profession.label_ai_1"),t[37]=d,t[38]=K):K=t[38],t[39]!==K?(U=(0,A.jsx)(_.JU,{className:H,htmlFor:"term",children:K}),t[39]=K,t[40]=U):U=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,A.jsx)(Te.A,{htmlFor:"term"}),t[41]=Y):Y=t[41],t[42]!==n?(J=e=>{e.target.value||(0,je.Ai)(qe.Y,"localStorage"),n({term:e.target.value},"none")},t[42]=n,t[43]=J):J=t[43],t[44]!==n||t[45]!==r||t[46]!==W||t[47]!==Q||t[48]!==D||t[49]!==f||t[50]!==J||t[51]!==c?(X=(0,A.jsx)(ke,{applyFilterValues:n,bg:"[none]",feSearchQuery:r,isBorderHidden:!0,label:"",name:"term",onBlur:W,onChange:J,onEnterSubmit:f,onFocus:Q,placeholder:D,ref:c,rows:2,value:r.term}),t[44]=n,t[45]=r,t[46]=W,t[47]=Q,t[48]=D,t[49]=f,t[50]=J,t[51]=c,t[52]=X):X=t[52],t[53]!==n||t[54]!==r.term||t[55]!==p||t[56]!==i?(Z=!r.term&&p&&(0,A.jsx)(_.so,{justifyContent:"flex-start",position:"relative",children:(0,A.jsx)(Ae.A,{applyFilterValues:n,onLoadingChange:i,variant:"row"})}),t[53]=n,t[54]=r.term,t[55]=p,t[56]=i,t[57]=Z):Z=t[57],t[58]!==U||t[59]!==X||t[60]!==Z?(ee=(0,A.jsxs)(A.Fragment,{children:[U,Y,X,Z]}),t[58]=U,t[59]=X,t[60]=Z,t[61]=ee):ee=t[61],ee};var De=n(38849),Ne=(n(27025),n(58968),n(50750),n(62939)),Fe=n(26051),Le=n(1444),Pe=n(68651),Re=n(46572),Oe=n(65496),$e=n(37184),Me=n(40976),ze=n(46744);const Be=e=>{const t=(0,u.c)(2),{children:n}=e;let o;return t[0]!==n?(o=(0,A.jsx)(_.i,{display:"flex",flexDirection:"column",p:"s16",children:(0,A.jsx)(_.P,{children:n})}),t[0]=n,t[1]=o):o=t[1],o};var Ge=n(90195);n(45853);const Qe=({items:e,containerRef:t,defaultStateRef:n,triggerRef:o,onSelect:r,onSubmit:a,onChangeInput:s,preserveInputOnClose:i=!1,shouldStayOpenAfterSelect:l})=>{const[c,d]=(0,I.useState)(!1),[u,p]=(0,I.useState)(-1),[m,h]=(0,I.useState)(""),[y,g]=(0,I.useState)(!1);(0,I.useEffect)((()=>{e.length&&u>=e.length&&p(e.length-1)}),[e,u]),(0,I.useEffect)((()=>{p(-1)}),[m]),(0,xe.A)((()=>c&&d(!1)),[t,n]);const b=(0,I.useCallback)((e=>{e?.stopPropagation(),c||(d(!0),h(""),p(-1),g(!0))}),[c]),f=(0,I.useCallback)((()=>{d(!1),g(!1),i||(h(""),s?.("")),requestAnimationFrame((()=>{document.activeElement!==o.current&&n.current?.focus()}))}),[n,i,s,o]),x=(0,I.useCallback)((e=>{h(e),s?.(e),e.length>0&&!c&&(d(!0),g(!0))}),[s,c]),S=(0,I.useCallback)((t=>{r?.(t),h(""),p(-1);const a=Math.max(e.length-1,0),s=!l||l({remainingSuggestionCount:a,selectedItem:t});requestAnimationFrame((()=>{s?(o.current?.focus(),d(!0),g(!0)):(d(!1),g(!1),document.activeElement===o.current&&o.current?.blur(),n.current?.focus())}))}),[r,o,e.length,l,n]),v=(0,I.useCallback)((t=>{if(c){if(0===e.length&&"Escape"===t.key)return t.preventDefault(),void f();if(0!==e.length)switch(t.key){case"ArrowDown":t.preventDefault(),p((t=>t<e.length-1?t+1:0));break;case"ArrowUp":t.preventDefault(),p((t=>t>0?t-1:e.length-1));break;case"Enter":t.preventDefault(),u>=0&&u<e.length?S(e[u]):a&&a();break;case"Escape":t.preventDefault(),f()}}}),[c,e,u,S,a,f]),_=(0,I.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),h(""),s?.(""),requestAnimationFrame((()=>{o.current&&o.current.focus()}))}),[s,o]),A=(0,I.useCallback)((()=>{g(!1)}),[]),j=(0,I.useCallback)((()=>{g(!0),m.length>0&&!c&&d(!0)}),[m,c]),C=(0,I.useCallback)(((e,t)=>{e(),t?(c||d(!0),g(!0),o.current?.focus()):(d(!1),g(!1),o.current&&o.current===document.activeElement&&o.current.blur(),requestAnimationFrame((()=>{n.current?.focus()})))}),[c,o,n]);return{isOpen:c,setIsOpen:d,selectIndex:u,setSelectIndex:p,input
1:m,setInputValue:x,open:b,close:f,chooseItem:S,handleKeyDown:v,handleClearInput:_,handleBlur:A,handleFocus:j,handlePillRemove:C,isActivelyFocused:y}};var Ve=n(54074),We=n(41131),He=n(42776);const Ke=({error:e,id:t,isBorderHidden:n=!1,items:o,label:r,onRemove:a,onSelect:s,onChange:i,onClear:l,onTextUpdate:c,onSubmit:d,onFocus:u,onBlur:p,renderItem:m,renderTag:h,selected:y,topAction:g,suggestionAction:b,suggestionEmpty:f,preserveInputOnClose:S=!1,hasErrorStyling:v=!1,forceOpen:j=!1,isSeamless:C=!1,shouldStayOpenAfterSelect:w,requestClose:k})=>{const T=(0,I.useRef)(null),q=(0,I.useRef)(null),E=(0,I.useRef)(null),D=(0,I.useRef)(null),N=(0,x.A)(),{isOpen:F,selectIndex:L,input:P,setInputValue:R,open:O,close:$,chooseItem:M,handleKeyDown:z,handleClearInput:B,handleBlur:G,handleFocus:Q,handlePillRemove:V,isActivelyFocused:W}=Qe({items:o,containerRef:T,defaultStateRef:q,triggerRef:E,onSelect:s,onSubmit:d,preserveInputOnClose:S,shouldStayOpenAfterSelect:w?({remainingSuggestionCount:e,selectedItem:t})=>w({remainingSuggestionCount:e}):void 0,onChangeInput:(0,I.useCallback)((e=>{i?.(e),c?.(e)}),[i,c])}),H=(0,I.useCallback)((e=>{e.stopPropagation(),B(e),l?l():a&&y.forEach((e=>{a(e)}))}),[B,l,a,y]),K=(0,I.useCallback)((e=>{e?.preventDefault(),e?.stopPropagation(),E.current&&E.current.focus(),O()}),[O,E]);(0,I.useEffect)((()=>{k&&$()}),[k]);const U=!F&&!j&&!W,Y=!!P||!!y.length;return(0,A.jsxs)(_.i,{className:"notranslate",position:C?void 0:"relative",ref:T,width:"100%",children:[(0,A.jsxs)(_.i,{position:"relative",width:"100%",children:[(0,A.jsx)(_.i,{className:U&&y.length>0?(0,J.AH)({position:"relative",width:"100%","& label":{display:"none"}}):void 0,position:"relative",width:"100%",children:(0,A.jsx)(We.A,{"aria-autocomplete":"both","aria-controls":t,"aria-expanded":F,"aria-owns":t,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",error:v?r:void 0,id:`${t}-trigger`,inputMode:"text",isBorderHidden:n,isInlineLabel:!0,label:r,onBlur:()=>{G(),p?.()},onChange:e=>{const t=e.target.value;R(t),c?.(t)},onClick:()=>{U&&O()},onFocus:()=>{Q(),u?.(),U&&O()},onKeyDown:z,pr:Y?"s48":"s16",ref:E,role:"combobox",showErrorAsLabel:!0,value:P})}),U&&y.length>0&&(0,A.jsx)(_.i,{className:(0,ae.gO)(),height:"[48px]",left:"s0",onClick:K,onPointerDown:e=>{K(e)},pl:"s16",pointerEvents:"none",position:"absolute",pr:"s48",pt:"s12",top:"s0",width:"100%",children:y.map(((e,t)=>(0,A.jsx)(I.Fragment,{children:(0,A.jsxs)(_.L9,{color:"colorPalette.inputMain",lineHeight:2,position:"relative",top:"ns4",children:[h(e,N),t<y.length-1&&", "]})},t)))}),Y&&(0,A.jsx)(_.K0,{buttonSize:"sm",buttonType:"blended",icon:(0,A.jsx)(He.A,{color:"purple.900",iconSize:"sm"}),onClick:H,position:"absolute",right:"s8",tabIndex:-1,title:N("accessibility.action.clear_input"),top:"s4",type:"button"})]}),(0,A.jsx)(_.i,{position:C?void 0:"relative",children:(0,A.jsxs)(_.i,{"aria-labelledby":`${t}-trigger`,bg:"white",borderBottomLeftRadius:"r24",borderBottomRightRadius:"r24",borderTop:"none",borderTopLeftRadius:{base:"r0",md:"r24"},borderTopRightRadius:{base:"r0",md:"r24"},borderWidth:"[1px]",boxShadow:"bs50",clipPath:{base:"inset(0px -24px -24px -24px)",md:"inset(-24px -24px -24px -24px)"},contentVisibility:"auto","data-cy":"item-container",id:t,left:"s0",minWidth:{base:"100%",md:"3/4"},onMouseDown:e=>{e.preventDefault()},opacity:F?1:0,overflowX:"hidden",overflowY:"auto",pointerEvents:F||j?"auto":"none",position:"absolute",role:"listbox",transform:{base:"[translateY(0)]",md:"[translateY(token(spacing.s16))]"},transitionDuration:"d125",transitionProperty:"border-color,opacity",transitionTimingFunction:"ease-out",willChange:"border-color,opacity",zIndex:"z2",children:[g&&(0,A.jsx)(_.Ul,{children:g}),!!y.length&&(0,A.jsx)(_.so,{flexWrap:"wrap",gap:"s16",mb:"s16",p:"s16",children:y.map(((e,t)=>(0,A.jsx)(_.ab,{icon:"remove",onClick:t=>{t.stopPropagation();const n=y.length>1;V((()=>a?.(e)),n)},children:h(e,N)},t)))}),(0,A.jsxs)(_.Ul,{ref:D,children:[o.length>0?o.map(((e,t)=>(0,A.jsx)(Ve.kt,{active:!1,"aria-selected":t===L,onClick:()=>M(e),role:"option",selected:t===L,children:m(e,N)},t))):!!P&&f&&(0,A.jsx)("li",{children:f}),b]})]})})]})};var Ue=n(59772),Ye=n(80924),Je=n(4782);const Xe=(e,t)=>{switch(t){case"city":return e("typeahead.location.subtype.city");case"region":return e("typeahead.location.subtype.region");case"canton":return e("typeahead.location.subtype.canton");case"zip":return e("typeahead.location.subtype.zip");default:return}},Ze=(e,t)=>{const n=tt(e,t);return(0,A.jsxs)(_.so,{alignItems:"center",justifyContent:"space-between",children:[(0,A.jsx)(_.L9,{flex:"1",children:n}),(0,A.jsx)(_.L9,{color:"gray.500",fontSize:"f12",children:Xe(t,e.subType)})]})},et=(e,t)=>{const n=tt(e,t);return"canton"===e.subType?n+" ("+t("typeahead.location.subtype.canton")+")":n},tt=(e,t)=>"city"===e.subType?e.name.current:"region"===e.subType?t("regions."+e.regionId):"canton"===e.subType?t("canton."+e.code.toLowerCase()):"zip"===e.subType?Str
1ing(e.code):"",nt=[],ot=(e,t,n)=>async({signal:o,queryKey:r})=>{const[,s]=r;if(!s)return[];if(await(0,Fe.y)(200),o.aborted)throw new Error("aborted");const i=a.Ok.METADATA_API+"gis/type-ahead",l=["city",p.j5.get()+"_region"];n&&l.push("canton");const c=await e.fetch(i,{query:{term:s,rows:10,"subTypes[]":l}});return c.ok?c.result.result.map((e=>(0,Me.OJ)(t)(e))).reduce(((e,t)=>e.find((e=>"city"===e.subType&&"city"===t.subType&&e.name.current===t.name.current))?e:[...e,t]),[]):void 0},rt=({applyFilterValues:e,errors:t,handleError:n,value:{regionIds:o,locations:r,geoShapeIds:a=nt},...i})=>{const l=(0,ne.A)(),c=(0,x.A)(),{isMobile:d}=(0,Re.A)(),[u,p]=(0,I.useState)(0),[m,h]=(0,I.useState)(""),[g,b]=(0,I.useState)(""),[f,S]=(0,I.useState)(!1),[v,j]=(0,I.useState)(!1),C=(0,s.A)((e=>e.metaData.geoTags)),w=(0,y.A)("vacancy-search-cantons"),k=(0,Le.A)(),{openModal:T}=(0,Oe.A)("search_region"),{currentLocation:q,hasGeoLocation:E,runGeolocation:D}=(0,Pe.A)();(0,I.useEffect)((()=>{m.length>0&&m!==g&&(b(m),j(!1)),0===m.length&&!v&&g.length>0&&b("")}),[m,g,v]);const{data:N=[],isFetching:F,isLoading:L}=(0,Ne.I)({queryKey:["metadata/gis/type-ahead",g],queryFn:ot(l.get("core.fetch"),l.get("core.locale"),w),enabled:g.length>0}),P=(0,I.useMemo)((()=>((e,t,n,o)=>e.filter((e=>"city"===e.subType?!t.includes(e.name.current):"region"===e.subType?!n.includes(e.regionId):"canton"===e.subType?!o.includes(e.id):"zip"!==e.subType||!t.includes(String(e.code)))))(N,r,o,a)),[a,r,o,N]),R=(0,I.useMemo)((()=>(({locations:e,regionIds:t,geoShapeIds:n,availableGeoShapes:o})=>[...e.map((e=>({id:e,name:{current:(0,ie.ip)(e),de:(0,ie.ip)(e),fr:(0,ie.ip)(e),en:(0,ie.ip)(e)},subType:"city",tag:{current:e,de:e,fr:e,en:e},centroid:{lat:0,long:0}}))),...t.map((e=>({id:e,level:"0",name:{current:e,de:e,fr:e,en:e},regionId:e,subType:"region"}))),...n.map((e=>{const t=o[e];if(t)return t;throw new Error("could not map geo shape id to typeahead item")}))])({locations:r,regionIds:o,geoShapeIds:a,availableGeoShapes:C})),[C,a,r,o]),O=(0,I.useCallback)((t=>{"city"!==t.subType?"region"!==t.subType?"canton"!==t.subType||e({geoShapeIds:a.filter((e=>e!==t.id)),locations:r,regionIds:o},"none"):e({regionIds:o.filter((e=>e!==t.regionId)),locations:r,geoShapeIds:a},"none"):e({regionIds:o,locations:r.filter((e=>e!==t.tag.current)),geoShapeIds:a},"none")}),[e,a,r,o]),$=(0,I.useCallback)((()=>{h(""),b(""),e({regionIds:[],locations:[],geoShapeIds:[]},"none"),n?.("location-incomplete-error","remove")}),[e,n]),M=(0,I.useCallback)((t=>{e({regionIds:t,locations:r,geoShapeIds:a},"none"),d&&p((e=>e+1))}),[e,a,d,r]),z=(0,I.useCallback)((t=>{h("");const s=Math.max(P.length-1,0)>0;if(j(s),s||b(""),n?.("location-incomplete-error","remove"),"region"!==t.subType)if("zip"!==t.subType){if("canton"===t.subType)return k((0,$e.x)(t)),void e({regionIds:o,locations:r,geoShapeIds:[...a,t.id]},"none");if("city"!==t.subType)throw new Error("cannot select item of unknown type");e({regionIds:o,locations:[...r,t.name.current],geoShapeIds:a},"none")}else e({regionIds:o,locations:[...r,String(t.code)],geoShapeIds:a},"none");else e({regionIds:[...o,t.regionId],locations:r,geoShapeIds:a},"none")}),[e,k,a,n,r,o,P.length]),B=(0,I.useCallback)((()=>e({regionIds:o,locations:r},"immediate")),[e,o,r]),G=(0,I.useCallback)((()=>{S(!0)}),[]),Q=(0,I.useCallback)((()=>{S(!1);const e=m.length>0,t=R.some((e=>"city"===e.subType&&e.name.current.toLowerCase()===m.toLowerCase())),o=e&&!t;n?.("location-incomplete-error",o?"add":"remove")}),[n,m,R]),V=(0,I.useCallback)((e=>{h(e),0===e?.length&&n?.("location-incomplete-error","remove")}),[n]),W=!!t?.find((e=>["location-incomplete-error"].includes(e))),H=(0,I.useCallback)((()=>T({triggerId:d?void 0:"location-pill-trigger"})),[d,T]),K=(0,I.useCallback)((()=>{D((t=>{r.includes(t)||(e({regionIds:o,locations:[...r,t],geoShapeIds:a},"none"),n?.("location-incomplete-error","remove"))}))}),[e,a,n,r,o,D]),U=E?(0,A.jsx)(Ge.A,{onClick:K,onKeyDown:e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),K())},children:(0,A.jsxs)(_.L9,{color:"purple.900",display:"block",children:[(0,A.jsx)(Ue.A,{mr:"s8"}
1),c(q?"typeahead.location.update_my_location":"typeahead.location.use_my_location")]})}):void 0,Y=(0,A.jsx)(Ge.A,{hasDividerTop:!0,onClick:H,onKeyDown:e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),H())},children:(0,A.jsxs)(_.L9,{color:"purple.900",display:"block",children:[(0,A.jsx)(Je.A,{mr:"s8"}),c("typeahead.location.choose_from_list_button")]})});return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(_.so,{alignItems:"center",color:f?"colorPalette.inputMain":"colorPalette.labelMain",colorPalette:"input.default",display:"flex",pl:"s12",position:"relative",...i,children:[(0,A.jsx)(Te.A,{bottom:{base:"s0",md:"ns8"},htmlFor:"location-pill-trigger",left:"ns16",right:{base:"ns16",md:"ns24"},top:"ns8"}),W?(0,A.jsx)(Ye.A,{color:"red.700",flexShrink:0}):(0,A.jsx)(ge.A,{flexShrink:0}),(0,A.jsx)(Ke,{forceOpen:W&&0===R.length,hasErrorStyling:W,id:"location-pill",isBorderHidden:!0,isSeamless:!0,items:P,label:c(W?"typeahead.location.label_error":"typeahead.location.label"),onBlur:Q,onClear:$,onFocus:G,onRemove:O,onSelect:z,onSubmit:B,onTextUpdate:V,preserveInputOnClose:m.length>0&&0===P.length,renderItem:Ze,renderTag:et,requestClose:u,selected:R,shouldStayOpenAfterSelect:({remainingSuggestionCount:e})=>!d&&e>0,suggestionAction:Y,suggestionEmpty:m.length>0&&0===P.length&&!F&&!L?(0,A.jsx)(Be,{children:c("typeahead.location.hint.not_found")}):void 0,topAction:U})]}),(0,A.jsx)(ze.A,{onSubmit:M,regions:o})]})};var at=n(86147);const st=e=>{const t=(0,u.c)(29),{applyFilterValues:n,errors:o,handleError:r,feSearchQuery:a,status:s}=e,i=(0,x.A)(),l=(0,De.xW)(),[c,d]=(0,I.useState)(!1),p=(0,Se.s)();let m;t[0]!==n||t[1]!==o||t[2]!==a||t[3]!==l?(m=()=>{d(!0);const e=o?.includes("location-incomplete-error");e||(l?l.handleSubmit((e=>{n(e,"immediate")}))():n(a,"immediate"))},t[0]=n,t[1]=o,t[2]=a,t[3]=l,t[4]=m):m=t[4];const h=m;let y;t[5]!==o?(y=o?.includes("location-incomplete-error"),t[5]=o,t[6]=y):y=t[6];const g=y,b=c&&g?"error":s;let f,S,v,j,C,w,k,T,q;return t[7]!==c||t[8]!==g?(f=()=>{!g&&c&&d(!1)},S=[g,c],t[7]=c,t[8]=g,t[9]=f,t[10]=S):(f=t[9],S=t[10]),(0,I.useEffect)(f,S),t[11]===Symbol.for("react.memo_cache_sentinel")?(v={base:"s16",md:"s24"},j={base:"[auto]",md:"[1fr auto]"},C={base:"s0",md:"s8"},t[11]=v,t[12]=j,t[13]=C):(v=t[11],j=t[12],C=t[13]),t[14]===Symbol.for("react.memo_cache_sentinel")?(w={base:"s16",md:"s0"},t[14]=w):w=t[14],t[15]!==n||t[16]!==o||t[17]!==a||t[18]!==r?(k=(0,A.jsx)(rt,{applyFilterValues:n,errors:o,handleError:r,value:a}),t[15]=n,t[16]=o,t[17]=a,t[18]=r,t[19]=k):k=t[19],t[20]!==b||t[21]!==a||t[22]!==h||t[23]!==p||t[24]!==i?(T=p&&!a.term?null:(0,A.jsxs)(_.mz,{buttonColor:"default",buttonState:b,buttonType:"plain",minWidth:"[150px]",onClick:h,order:{base:2,md:1},children:[(0,A.jsx)(at.A,{iconSize:"sm",mr:"s8"}),i("search.form.submit")]}),t[20]=b,t[21]=a,t[22]=h,t[23]=p,t[24]=i,t[25]=T):T=t[25],t[26]!==T||t[27]!==k?(q=(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(_.xA,{gap:v,gridTemplateColumns:j,mb:C,mt:"s8",pb:w,children:[k,T]})}),t[26]=T,t[27]=k,t[28]=q):q=t[28],q},it=210,lt=({applyFilterValues:e,children:t,errors:n,feSearchQuery:o,handleError:r,onExpandChange:a,showProfilePill:s=!1,status:i})=>{const l=(0,x.A)(),c=(0,Se.s)(),d=!!o.term,[u,p]=(0,I.useState)(d),[m,h]=(0,I.useState)(d),{setIsProfileSearchLoading:y}=(0,_e.X)(),g=(0,I.useRef)(null),b=(0,I.useRef)(null),f=(0,I.useRef)(!1),S=(0,I.useRef)(null),v=(0,I.useRef)(null),j=(0,I.useMemo)((()=>[l("typeahead.profession.label_ai_1"),l("typeahead.profession.label_ai_2"),l("typeahead.profession.label_ai_3"),l("typeahead.profession.label_ai_4"),l("typeahead.profession.label_ai_5")]),[l]),C=ve(j,{isPaused:u}),w=`${l("accessibility.action.expand")} ${l("accessibility.landmark.search")}`,k=u?{}:{"aria-expanded":!1,"aria-label":w,role:"button",tabIndex:0},T=(0,I.useCallback)((()=>{b.current&&(clearTimeout(b.current),b.current=null),p(!0),h(!0)}),[]),q=(e=>e.locations.length>0||e.regionIds.length>0||(e.geoShapeIds?.length??0)>0)(o),E=(0,I.useCallback)((()=>{o.term||q||(h(!1),b.current=setTimeout((()=>{p(!1),b.current=null}),it))}),[o.term,q]),D=(0,I.useCallback)((()=>{f.current=!0,requestAnimationFrame((()=>{g.current?.focus(),requestAnimationFrame((()=>{f.current=!1}))}))}),[]),N=(0,I.useCallback)((()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),b.current=setTimeout((()=>{p(!1),b.current=null,D()}),it)}),[D]);(0,I.useEffect)((()=>{a?.(u)}),[u,a]),(0,I.useEffect)((()=>{o.term&&!u&&T()}),[o.term]),(0,I.useEffect)((()=>()=>{b.current&&clearTimeout(b.current)}),[]),(0,I.useEffect)((()=>{S.current=document.getElementById("modal-root")}),[]);(0,xe.A)((()=>{u&&E()}),[g,S]);const F=(0,I.useCallback)((e=>{var t;"Escape"!==e.key?u||e.target!==e.currentTarget||"Enter"!==(t=e.key)&&" "!==t&&"Spacebar"!==t||(e.preventDefault(),T(),requestAnimationFrame((()=>{v.current?.focus()}))):N()}),[N,T,u]),L=(0,I.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),N())}),[N]);(0,I.useEffect)((()=>{const e=v.current;if(e)return e.addEventListener("keydown",L),()=>e.removeEventListener("keydown",L)}),[L]);return(0,A.jsxs)(_.i,{...k,onBlur:e=>{const t=e.relatedTarget;t&&(e.currentTarget.contains(t)||t.contains(e.currentTarget)||S.current?.contains(t)||E())},onFocus:e=>{(({isExpanded:e,suppressExpandOnFocus:t,target:n})=>!t&&!e&&(e=>{const t=e;return"string"==typeof t?.id&&"term"===t.id})(n))({isExpanded:u,suppressExpandOnFocus:f.current,target:e.target})&&T()},onKeyDown:F,position:"relative",ref:g,zIndex:"z1",children:[(0,A.jsxs)(_.i,{bg:"white",borderColor:"gray.400",borderRadius:u?"r24":"r40",borderStyle:"solid",borderWidth:"[1px]",position:"relative",transitionDuration:"d400",transitionProperty:"border-radius",transitionTimingFunction:"[cubic-bezier(0.4, 0, 0.2, 1)]",children:[!u&&(0,A.jsxs)(_.i,{alignItems:"center",bottom:"s0",color:"gray.700",display:"flex",gap:"s8",left:"s0",position:"absolute",px:"s24",py:"s16",right:"s0",style:{pointerEvents:"none",zIndex:1},top:"s0",children:[(0,A.jsx)(be.A,{iconSize:"sm"}),(0,A.jsx)(_.L9,{className:(0,ae.gO)(),flex:"1",children:C})]}),(0,A.jsxs)(_.i,{position:"relative",style:u?void 0:{maxHeight:"56px",overflow:"hidden"},children:[!u&&(0,A.jsx)(Te.A,{htmlFor:"term"}),(0,A.jsxs)(_.i,{style:{opacity:m?1:0,transform:m?"translateY(0)":"translateY(-8px)",transition:u?"opacity 210ms ease, transform 210ms cubic-bezier(0.4, 0, 0.2, 1)":"none",willChange:u?"opacity, transform":void 0},children:[(0,A.jsx)(_.i,{p:"s16",position:"relative",children:(0,A.jsx)(Ee,{applyFilterValues:e,errors:n,feSearchQuery:o,onLoadingChange:y,textareaRef:v})}),u&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(_.i,{borderTop:"[1px solid {colors.gray.100}]",position:"relative",px:"s16",children:(0,A.jsx)(st,{applyFilterValues:e,errors:n,feSearchQuery:o,handleError:r,status:i})}),t&&(0,A.jsx)(_.i,{pb:{base:"s16",md:"s0"},position:"relative",px:"s16",children:t})]})]})]})]}),s&&!u&&!o.term&&c&&(0,A.jsx)(_.i,{mt:"s12",px:"s4",children:(0,A.jsx)(Ae.A,{applyFilterValues:e,onLoadingChange:y,variant:"pill"})})]})},ct=e=>{const t=(0,u.c)(7),{children:n}=e,o=(0,y.A)("semantic-search");let r,a,s;return t[0]!==o?(r=o?{}:{px:{base:"s16",md:"s0"}},t[0]=o,t[1]=r):r=t[1],t[2]!==n?(a=(0,A.jsx)(_.i,{gridArea:"1 /1",children:n}),t[2]=n,t[3]=a):a=t[3],t[4]!==r||t[5]!==a?(s=(0,A.jsx)(_.xA,{gap:"s16",position:"relative",...r,children:a}),t[4]=r,t[5]=a,t[6]=s):s=t[6],s};var dt=n(53221),ut=n(42253),pt=n(16166),mt=n(99434),ht=n(77372),yt=n(74871);const gt=()=>{const e=(0,u.c)(12),t=(0,le.A)(),{isMobile:n}=(0,Re.A)(),o=t===ut.h.FR&&n,r=(0,x.A)(),a=(0,re.U)(),{handleToggleSearch:s,isSemantic:i}=(0,pt.c)(),l=a,[c,d]=(0,I.useState)(!1);let p,m;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{d(!0)},m=[],e[0]=p,e[1]=m):(p=e[0],m=e[1]),(0,I.useLayoutEffect)(p,m);const[h,y]=(0,I.useState)(!1);let g,b;return e[2]!==l||e[3]!==s||e[4]!==c||e[5]!==h||e[6]!==o||e[7]!==i||e[8]!==r?(g=l&&(0,A.jsxs)(_.so,{alignItems:"center",gap:"s0",justifyContent:"flex-end",mb:"s8",children:[(0,A.jsxs)(_.z2,{alignItems:"center",borderRadius:"r32",className:(0,J.AH)({_active:{bg:"purpleAlphaLight.500"},"@media (hover: hover)":{_hover:{bg:"purpleAlphaLight.500"}}}),color:"white",display:"flex",minHeight:"[40px]",onClick:s,px:"s16",children:[(0,A.jsx)(_.L9,{fontSize:o?"[15px]":{},children:r(i?"vacancy.semantic_search.action_back":"vacancy.semantic_search.banner_title")}),(0,A.jsx)(ht.A,{flexShrink:0,ml:"s8"})]}),i?(0,A.jsx)(mt.A,{id:"isHelpBasicPopover",isOpen:c&&h,onClose:()=>y(!1),onOpen:()=>y(!0),trigger:(0,A.jsx)(_.K0,{alignItems:"center",buttonSize:"sm",className:(0,J.AH)({bg:"[transparent!important]",color:"white","@media (hover: hover)":{_hover:{bg:"[var(--colors-purple-alpha-light-500)!important]",color:"white"}},_active:{bg:"[var(--colors-purple-alpha-light-500)!important]",color:"white"}}),icon:(0,A.jsx)(yt.A,{}),title:r("vacancy.regular_search.info_bubble.content")}),children:(0,A.jsxs)(_.so,{flexDirection:"column",p:"s24",textStyle:"caption1",width:{base:"[340px]",sm:"[410px]"},children:[(0,A.jsx)(_.P,{textStyle:"caption1",children:r("vacancy.regular_search.info_bubble.content")}),(0,A.jsx)(_.so,{alignItems:"flex-start",flexDirection:{base:"column",sm:"row"},gap:"s16",mt:"s16",width:{base:"100%",sm:"auto"},children:(0,A.jsx)(_.$n,{alignItems:"center",buttonSize:"sm",buttonType:"blended",onClick:()=>y(!1),children:r("vacancy.semantic_search.info_bubble.button_close")})})]})}
1):(0,A.jsx)(mt.A,{id:"isHelpSemanticPopover",isOpen:c&&h,onClose:()=>y(!1),onOpen:()=>y(!0),trigger:(0,A.jsx)(_.K0,{alignItems:"center",buttonSize:"sm",className:(0,J.AH)({bg:"[transparent!important]",color:"white",_active:{bg:"[var(--colors-purple-alpha-light-500)!important]",color:"white"},"@media (hover: hover)":{_hover:{bg:"[var(--colors-purple-alpha-light-500)!important]",color:"white"}}}),icon:(0,A.jsx)(yt.A,{}),title:r("vacancy.semantic_search.info_bubble.title")}),children:(0,A.jsxs)(_.so,{flexDirection:"column",p:"s24",textStyle:"caption1",width:{base:"[340px]",sm:"[410px]"},children:[(0,A.jsxs)(_.so,{alignItems:"center",mb:"s8",children:[(0,A.jsx)(at.A,{color:"yellow.300"}),(0,A.jsx)(_.L9,{fontWeight:"bold",pl:"s8",children:r("vacancy.semantic_search.info_bubble.title")})]}),(0,A.jsx)(_.P,{textStyle:"caption1",children:r("vacancy.semantic_search.info_bubble.content.header")}),(0,A.jsxs)(_.Ul,{listStyleType:"disc",mb:"s24",mt:"s24",pl:"s16",children:[(0,A.jsx)(_.Li,{lineHeight:"1.5",mb:"s8",children:r("vacancy.semantic_search.info_bubble.content.item_1")}),(0,A.jsx)(_.Li,{lineHeight:"1.5",mb:"s8",children:r("vacancy.semantic_search.info_bubble.content.item_2")}),(0,A.jsx)(_.Li,{lineHeight:"1.5",children:r("vacancy.semantic_search.info_bubble.content.item_3")})]}),(0,A.jsxs)(_.so,{alignItems:"center",children:[(0,A.jsx)(yt.A,{color:"gray.700",flexShrink:0,iconSize:"xs",mr:"s8"}),(0,A.jsx)(_.P,{color:"gray.700",textStyle:"caption1",children:(0,dt.A)({mixedString:r("vacancy.semantic_search.info_bubble.warning"),components:{b:(0,A.jsx)(_.L9,{fontWeight:"bold"})}})})]}),(0,A.jsxs)(_.so,{alignItems:"center",flexDirection:{base:"column",sm:"row"},gap:"s16",justifyContent:{base:"initial",sm:"space-between"},mt:"s16",width:{base:"100%",sm:"auto"},children:[(0,A.jsx)(_.$n,{alignItems:"center",buttonSize:"sm",buttonType:"blended",onClick:()=>y(!1),children:r("vacancy.semantic_search.info_bubble.button_close")}),(0,A.jsx)(_.mz,{onClick:s,children:r("vacancy.semantic_search.info_bubble.button")})]})]})})]}),e[2]=l,e[3]=s,e[4]=c,e[5]=h,e[6]=o,e[7]=i,e[8]=r,e[9]=g):g=e[9],e[10]!==g?(b=(0,A.jsx)(_.xA,{gap:"s16",children:g}),e[10]=g,e[11]=b):b=e[11],b},bt={sm:0,md:0,lg:0,xl:0},ft=({isLimitedQuickFilter:e=!1,executeImmediate:t,hideActiveFilterUI:n,initialFeSearchQuery:p})=>{const m=(0,s.A)((e=>e.vacancy?.query))||void 0,{applyFilterValues:y,errors:g,feSearchQuery:b,handleError:f,status:x}=(0,c.A)(p||m,a.JZ.VACANCY_SEARCH_PARAMS,"vacancy_search",t),S=U(),v=(e=>{const t=(0,u.c)(3),n=(0,h.kb)(),o=(0,h.Js)(),r=(0,h.Bw)(),a=(0,h.ay)(),s=K();let i=0;if(n&&(i=e.sm),o&&(i=e.md),r&&(i=e.lg),a&&(i=e.xl),i){let e;return t[0]!==i||t[1]!==s?(e=s.slice(0,i),t[0]=i,t[1]=s,t[2]=e):e=t[2],e}return s})(bt),j=n?(0,r.S)():b,I="semantic"===(0,d.W)(),C=(0,l.u)(),w="HOME"===(0,o.Q1)((0,i.z)().pathname),k=()=>(0,A.jsx)(Y.A,{applyFilterValues:y,feSearchQuery:j,hideActiveFilterUI:n,quickFilters:e?v:S,showSelectionPreview:!0});return(0,A.jsxs)(A.Fragment,{children:[I?(0,A.jsxs)(_.mc,{containerSize:C?"sm":"lg",px:"s0",children:[(0,A.jsx)(gt,{}),(0,A.jsx)(lt,{applyFilterValues:y,errors:g,feSearchQuery:b,handleError:f,showProfilePill:w,status:x,children:!w&&(0,A.jsx)(_.i,{display:{base:"block",md:"none"},children:k()})})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(gt,{}),(0,A.jsxs)(ct,{children:[(0,A.jsxs)(_.i,{bg:"white",borderRadius:{base:"r32",md:"r48"},boxShadow:{base:"[none]",md:"bs25"},p:"s16",position:"relative",children:[(0,A.jsx)(fe,{applyFilterValues:y,feSearchQuery:b,status:x}),!w&&!I&&(0,A.jsx)(_.i,{display:{base:"block",md:"none"},pt:"s16",children:k()})]}),!w&&!I&&(0,A.jsx)(_.i,{display:{base:"none",md:"flex"},justifyContent:"center",pt:"s16",children:k()})]})]}),!w&&I&&(0,A.jsx)(_.i,{display:{base:"none",md:"flex"},justifyContent:"center",pt:"s24",children:k()})]})}},20736(e,t,n){n.d(t,{V:()=>x,A:()=>S});n(84775),n(78944),n(83871),n(97512),n(18910),n(50750);var o=n(6799),r=n(41711),a=n(26894),s=n(96777),i=n(46572),l=n(45542),c=n(83989),d=n(74438);const u=()=>{const e=(0,o.c)(2),t=(0,s.A)();let n;return e[0]!==t?(n=(0,c.Zv)(d.A,1).map((e=>({...e,label:t(`categories.${e.id}`)}))),e[0]=t,e[1]=n):n=e[1],n};var p=n(96048),m=n(23267),h=n(22230),y=n(59033),g=n(19615),b=n(52695);const f="categoryModal",x=e=>{const t=(0,o.c)(47),{parentId:n,onSearch:r,categories:i,cardinalities:c}=e,d=(0,s.A)(),u="semantic"===(0,l.W)();let h;t[0]!==i||t[1]!==r?(h=e=>{let t=[...i,e];const n=a.N[e].siblings;n.every((e=>t.includes(e)))&&(t=[...i.filter((e=>!n.includes(e))),a.N[e].parent]),r({categoryIds:t})},t[0]=i,t[1]=r,t[2]=h):h=t[2];const g=h;let x;t[3]!==i||t[4]!==r?(x=e=>{if(i.includes(e))return void r({categoryIds:i.filter((t=>t!==e))});const t=a.N[e];r({categoryIds:[...i.filter((e=>e!==t.parent)),...(t.siblings??[]).filter((t=>t!==e))]})},t[3]=i,t[4]=r,t[5]=x):x=t[5];const S=x;let v;t[6]!==i||t[7]!==r||t[8]!==n?(v=()=>{const e=!!n&&a.N[n];e&&r({categoryIds:i.filter((t=>t!==e.id&&!e.children.includes(t)))})},t[6]=i,t[7]=r,t[8]=n,t[9]=v):v=t[9];const _=v;let A;t[10]!==i||t[11]!==r||t[12]!==n?(A=()=>{const e=!!n&&a.N[n];e&&r({categoryIds:[...i.filter((t=>!e.children.includes(t))),e.id]})},t[10]=i,t[11]=r,t[12]=n,t[13]=A):A=t[13];const j=A;if(!n){let e;return t[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(y.i,{width:{base:"[0]",md:"[430px]"}}),t[14]=e):e=t[14],e}const I=a.N[n].children;let C;t[15]===Symbol.for("react.memo_cache_sentinel")?(C={base:"none",sm:"flex"},t[15]=C):C=t[15];const w=`categories.${a.N[n].id}`;let k,T,q,E,D,N,F,L;if(t[16]!==d||t[17]!==w?(k=d(w),t[16]=d,t[17]=w,t[18]=k):k=t[18],t[19]!==k?(T=(0,b.jsx)(y.H2,{display:C,fontWeight:"bold",justifyContent:"center",pb:"s24",textStyle:"body2",children:k}),t[19]=k,t[20]=T):T=t[20],t[21]===Symbol.for("react.memo_cache_sentinel")?(q={sm:"s16"},t[21]=q):q=t[21],t[22]===Symbol.for("react.memo_cache_sentinel")?(E={base:"s8",sm:"s0"},t[22]=E):E=t[22],t[23]!==j||t[24]!==_?(D=(0,b.jsx)(y.i,{mx:q,pb:"s8",px:E,children:(0,b.jsx)(m.A,{display:"flex",justifyContent:"flex-end",removeAll:_,selectAll:j})}),t[23]=j,t[24]=_,t[25]=D):D=t[25],t[26]!==c||t[27]!==i||t[28]!==u||t[29]!==g||t[30]!==S||t[31]!==I||t[32]!==d){let e;t[34]!==c||t[35]!==i||t[36]!==u||t[37]!==g||t[38]!==S||t[39]!==d?(e=e=>{const t=a.N[e];return(0,b.jsx)(p.A,{caller:"sub",checked:i.includes(t.id)||i.includes(t.parent),facetCardinality:(c||{})[t.id],facetId:t.id,facetKey:f,facetLabel:d(`categories.${t.id}`),flex:"1",hideCardinality:u,minWidth:"[0px]",onCheck:g,onUncheck:S,pl:{base:"s16",sm:"s16"}
1,pr:{base:"s16",sm:"s16"}},t.id)},t[34]=c,t[35]=i,t[36]=u,t[37]=g,t[38]=S,t[39]=d,t[40]=e):e=t[40],N=I.map(e),t[26]=c,t[27]=i,t[28]=u,t[29]=g,t[30]=S,t[31]=I,t[32]=d,t[33]=N}else N=t[33];return t[41]!==N?(F=(0,b.jsx)(y.i,{width:"100%",children:N}),t[41]=N,t[42]=F):F=t[42],t[43]!==D||t[44]!==F||t[45]!==T?(L=(0,b.jsxs)(b.Fragment,{children:[T,D,F]}),t[43]=D,t[44]=F,t[45]=T,t[46]=L):L=t[46],L},S=e=>{const t=(0,o.c)(82),{cardinalities:n,committedValue:c,onCancel:d,onExecute:m,onSearch:S,value:_}=e,A=(0,s.A)(),j=(0,i.A)(),[I,C]=(0,r.useState)(void 0),w=!!I,k=!!c.length,T="semantic"===(0,l.W)(),q=u();let E;t[0]!==_||t[1]!==j||t[2]!==S?(E=e=>{const t=a.N[e].children;S({categoryIds:[..._.filter((e=>!t.includes(e))),e]}),!j.isMobile&&C(e)},t[0]=_,t[1]=j,t[2]=S,t[3]=E):E=t[3];const D=E;let N;t[4]!==_||t[5]!==S?(N=e=>{const t=_.filter((t=>t!==e));S({categoryIds:t})},t[4]=_,t[5]=S,t[6]=N):N=t[6];const F=N;let L;t[7]!==w||t[8]!==d?(L=e=>{w?C(void 0):(d(),e())},t[7]=w,t[8]=d,t[9]=L):L=t[9];const P=L;let R;t[10]!==d?(R=()=>{d(),C(void 0)},t[10]=d,t[11]=R):R=t[11];const O=R;let $;t[12]!==c||t[13]!==k||t[14]!==A?($=k?c.map(v).filter(Boolean).map((e=>A(`categories.${e.id}`))):null,t[12]=c,t[13]=k,t[14]=A,t[15]=$):$=t[15];const M=$;let z;t[16]!==A?(z=A("quick_filter.category.title"),t[16]=A,t[17]=z):z=t[17];const B=c.length;let G,Q,V,W,H,K,U,Y,J,X,Z,ee,te,ne,oe,re,ae,se;if(t[18]!==m?(G=()=>{m({categoryIds:[]})},t[18]=m,t[19]=G):G=t[19],t[20]!==j||t[21]!==w||t[22]!==I||t[23]!==A?(Q=w&&j.isMobile?A(`categories.${I}`):A("quick_filter.category.title"),t[20]=j,t[21]=w,t[22]=I,t[23]=A,t[24]=Q):Q=t[24],t[25]===Symbol.for("react.memo_cache_sentinel")?(V={md:"b300"},W={base:"s64",sm:"s0"},H={base:"s8",sm:"s16",md:"s0"},K={base:"100%",sm:"[430px]"},t[25]=V,t[26]=W,t[27]=H,t[28]=K):(V=t[25],W=t[26],H=t[27],K=t[28]),t[29]!==w?(U=w?{display:{base:"none",sm:"block"}}:{display:"block"},t[29]=w,t[30]=U):U=t[30],t[31]!==n||t[32]!==_||t[33]!==q||t[34]!==T||t[35]!==D||t[36]!==F||t[37]!==I||t[38]!==A){let e;t[40]!==n||t[41]!==_||t[42]!==T||t[43]!==D||t[44]!==F||t[45]!==I||t[46]!==A?(e=e=>{const t=a.N[e.id].children.some((e=>_.includes(e)));return(0,b.jsxs)(y.so,{alignItems:"center",bg:{base:e.id===I?"purpleAlphaDark.200":"[none]"},borderRadius:{sm:"r8"},mx:"s8",children:[(0,b.jsx)(p.A,{checked:_.includes(e.id),facetCardinality:(n||{})[e.id],facetId:e.id,facetKey:f,facetLabel:e.label,flex:"1",hideCardinality:T,indeterminate:t,minWidth:"[0px]",onCheck:D,onUncheck:F,pl:"s16",pr:"s16"}),(0,b.jsx)(y.K0,{buttonSize:"sm",buttonType:"blended",flex:"[0 0 auto]",icon:(0,b.jsx)(g.A,{}),mr:{base:"ns8",sm:"s0",md:"s8"},onClick:()=>{C(e.id)},title:A("accessibility.action.show")})]},e.id)},t[40]=n,t[41]=_,t[42]=T,t[43]=D,t[44]=F,t[45]=I,t[46]=A,t[47]=e):e=t[47],Y=q.map(e),t[31]=n,t[32]=_,t[33]=q,t[34]=T,t[35]=D,t[36]=F,t[37]=I,t[38]=A,t[39]=Y}else Y=t[39];return t[48]!==U||t[49]!==Y?(J=(0,b.jsx)(y.i,{borderRight:V,pb:W,px:H,width:K,...U,children:Y}),t[48]=U,t[49]=Y,t[50]=J):J=t[50],t[51]!==w?(X=w?{display:"block"}:{display:{base:"none",md:"block"}},t[51]=w,t[52]=X):X=t[52],t[53]===Symbol.for("react.memo_cache_sentinel")?(Z={base:"s64",sm:"s0"},ee={base:"s8",sm:"s0",md:"s8"},te={base:"100%",sm:"[430px]"},t[53]=Z,t[54]=ee,t[55]=te):(Z=t[53],ee=t[54],te=t[55]),t[56]!==n||t[57]!==_||t[58]!==S||t[59]!==I?(ne=(0,b.jsx)(x,{cardinalities:n,categories:_,onSearch:S,parentId:I}),t[56]=n,t[57]=_,t[58]=S,t[59]=I,t[60]=ne):ne=t[60],t[61]!==w||t[62]!==A?(oe=!w&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y.so,{justifyContent:"center",children:(0,b.jsx)(y.L9,{fontWeight:"bold",textStyle:"body2",children:A("vacancy.advanced_filter.subcategory")})}),(0,b.jsx)(y.so,{alignItems:"center",height:"[300px]",justifyContent:"center",children:(0,b.jsx)(y.i,{maxWidth:"[250px]",textAlign:"center",children:(0,b.jsx)(y.L9,{textStyle:"body1",children:A("vacancy.advanced_filter.subcategory_description")})})})]}),t[61]=w,t[62]=A,t[63]=oe):oe=t[63],t[64]!==X||t[65]!==ne||t[66]!==oe?(re=(0,b.jsxs)(y.i,{alignSelf:"flex-start",...X,pb:Z,px:ee,width:te,children:[ne,oe]}),t[64]=X,t[65]=ne,t[66]=oe,t[67]=re):re=t[67],t[68]!==J||t[69]!==re?(ae=(0,b.jsxs)(y.so,{alignItems:"center",children:[J,re]}),t[68]=J,t[69]=re,t[70]=ae):ae=t[70],t[71]!==O||t[72]!==c.length||t[73]!==k||t[74]!==P||t[75]!==m||t[76]!==M||t[77]!==ae||t[78]!==z||t[79]!==G||t[80]!==Q?(se=(0,b.jsx)(h.A,{buttonText:M,dataCy:"category-filter",filterButtonTitle:z,filterTitleCounter:B,isActive:k,onBack:P,onCancel:O,onExecute:m,onReset:G,title:Q,triggerId:f,children:ae}),t[71]=O,t[72]=c.length,t[73]=k,t[74]=P,t[75]=m,t[76]=M,t[77]=ae,t[78]=z,t[79]=G,t[80]=Q,t[81]=se):se=t[81],se};function v(e){return a.N[e]}},31214(e,t,n){n.d(t,{R:()=>i,X:()=>l});var o=n(6799),r=n(41711),a=n(52695);const s=(0,r.createContext)({isProfileSearchLoading:!1,setIsProfileSearchLoading:()=>{}}),i=e=>{const t=(0,o.c)(5),{children:n}=e,[i,l]=(0,r.useState)(!1);let c,d;return t[0]!==i?(c={isProfileSearchLoading:i,setIsProfileSearchLoading:l},t[0]=i,t[1]=c):c=t[1],t[2]!==n||t[3]!==c?(d=(0,a.jsx)(s.Provider,{value:c,children:n}),t[2]=n,t[3]=c,t[4]=d):d=t[4],d},l=()=>(0,r.useContext)(s)},52508(e,t,n){n.d(t,{Ay:()=>p});var o=n(88402),r=n(47064),a=n(41711),s=n(96777),i=n(59033),l=n(41131),c=n(52695);const d=(e,t,n)=>{const o=u(e[0],t[0],e[1],n),r=u(e[1],e[0],t[1],n);return o===e[0]&&r===e[1]},u=(e,t,n,o)=>{const r=Math.max(t,Math.min(n,e));return Math.round(r/o)*o},p=({min:e=0,max:t=100,onAfterChange:n,onBlur:p,onChange:m,symbol
1:h="%",value:y,step:g,...b})=>{const f=Array.isArray(y)?y:[e,t],x=(0,s.A)(),S=g||5,v=f[0],_=f[1],[A,j]=(0,a.useState)(v.toString()),[I,C]=(0,a.useState)(_.toString());(0,a.useEffect)((()=>{j(v.toString()),C(_.toString())}),[v,_]);const w=(0,a.useCallback)((e=>{m?.(e),n?.(e)}),[n,m]);return(0,c.jsxs)(i.i,{className:(0,o.AH)({"& .rc-slider":{position:"relative",height:"[8px]",width:"100%",bg:"gray.200"},"& .rc-slider-track":{position:"absolute",left:"s0",height:"[8px]",borderRadius:"r2",bg:"purple.900"},"& .rc-slider-handle":{position:"absolute",mt:"ns8",width:"[24px]",height:"[24px]",cursor:"pointer",borderRadius:"[50%]",border:"[2px solid {colors.purple.900}]",bg:"purple.900"},"& .rc-slider-handle-active:active":{boxShadow:"[0 0 5px {colors.purple.900}]"},"& .rc-slider-handle::after":{content:'""',position:"absolute",width:"[48px]",height:"[48px]",top:"ns16",left:"ns16"}}),children:[(0,c.jsx)(i.i,{"aria-hidden":"true",px:"s24",children:(0,c.jsx)(r.A,{onChange:w,range:!0,step:g,tabIndex:[-1,-1],value:f,...b})}),(0,c.jsxs)(i.so,{gap:"s16",mt:"s24",children:[(0,c.jsx)(i.i,{flexGrow:1,children:(0,c.jsx)(l.A,{"data-cy":"min-range",label:`${x("common.range.min")} ${h}`,onBlur:t=>{const n=""===A.trim()?NaN:Number(A),o=u(isNaN(n)?e:n,e,_,S);j(o.toString()),p?.(t),w([o,_])},onChange:t=>{const n=t.target.valueAsNumber;!isNaN(n)&&n<e?(j(e.toString()),w([e,_])):(j(t.target.value),!isNaN(n)&&n<=_&&w([n,_]))},onKeyDown:n=>{if("Enter"===n.key){const o=""===A.trim()?NaN:Number(A),r=isNaN(o),a=r?e:o;if(r||!d([a,_],[e,t],S)){n.preventDefault(),n.stopPropagation();const t=u(a,e,_,S);j(t.toString()),w([t,_])}}},type:"number",value:A})}),(0,c.jsx)(i.i,{flexGrow:1,children:(0,c.jsx)(l.A,{"data-cy":"max-range",label:`${x("common.range.max")} ${h}`,onBlur:e=>{const n=""===I.trim()?NaN:Number(I),o=u(isNaN(n)?t:n,v,t,S);C(o.toString()),p?.(e),w([v,o])},onChange:e=>{const n=e.target.valueAsNumber;!isNaN(n)&&n>t?(C(t.toString()),w([v,t])):(C(e.target.value),!isNaN(n)&&n>=v&&w([v,n]))},onKeyDown:n=>{if("Enter"===n.key){const o=""===I.trim()?NaN:Number(I),r=isNaN(o),a=r?t:o;if(r||!d([v,a],[e,t],S)){n.preventDefault(),n.stopPropagation();const e=u(a,v,t,S);C(e.toString()),w([v,e])}}},type:"number",value:I})})]})]})}},16206(e,t,n){n.d(t,{A:()=>l});var o=n(88402),r=n(41711),a=n(92555),s=n(59033),i=n(52695);const l=({tip:e,direction:t,children:n})=>{const[l,c]=(0,r.useState)(!1),d=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=e=>{d.current?.contains(e.target)||c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),(0,i.jsx)(a.A,{className:(0,o.AH)({"& .react-tooltip-lite":{bg:"white",border:"b400",borderRadius:"r8",boxShadow:"bs25",color:"gray.900",textStyle:"caption1",minWidth:"[150px !important]",maxWidth:"[250px !important]",p:"[s12 !important]",width:"100% !important"},"& .react-tooltip-lite-arrow":{color:"[grayAlphaDark.400 !important]"},"& .react-tooltip-lite-up-arrow::after, & .react-tooltip-lite-down-arrow::after, & .react-tooltip-lite-left-arrow::after, & .react-tooltip-lite-right-arrow::after":{position:"absolute",width:"[0px]",height:"[0px]",content:'""'},"& .react-tooltip-lite-up-arrow::after":{mt:"[-11px]",ml:"[-10px]",borderLeft:"[10px solid transparent]",borderTop:"[10px solid white]",borderRight:"[10px solid transparent]"},"& .react-tooltip-lite-down-arrow::after":{mt:"[1px]",ml:"[-10px]",borderLeft:"[10px solid transparent]",borderBottom:"[10px solid white]",borderRight:"[10px solid transparent]"},"& .react-tooltip-lite-left-arrow::after":{mt:"[-10px]",ml:"[-11px]",borderTop:"[10px solid transparent]",borderBottom:"[10px solid transparent]",borderLeft:"[10px solid white]"},"& .react-tooltip-lite-right-arrow::after":{mt:"[-10px]",ml:"[1px]",borderTop:"[10px solid transparent]",borderBottom:"[10px solid transparent]",borderRight:"[10px solid white]"}}),content:e,direction:t,distance:14,isOpen:l,useHover:!1,children:(0,i.jsx)(s.i,{ref:d,children:r.cloneElement(n,{onClick:()=>c((e=>!e)),onKeyPress:()=>c((e=>!e))})})})}},26051(e,t,n){n.d(t,{y:()=>o});const o=(e=1e3)=>new Promise((t=>setTimeout(t,e)))},92645(e,t,n){n.d(t,{A:()=>
1o});const o=[{id:"3"},{id:"2"},{id:"1"}]},37208(e,t,n){n.d(t,{A:()=>o});const o=[{id:"5"},{id:"6"},{id:"4"},{id:"1"},{id:"2"},{id:"3"}]},51440(e,t,n){n.d(t,{A:()=>o});const o=[{id:"fr"},{id:"de"},{id:"en"},{id:"it"}]},79836(e,t,n){n.d(t,{A:()=>o});const o=[{id:"1"},{id:"3"},{id:"7"},{id:"30"}]},19615(e,t,n){n.d(t,{A:()=>a});var o=n(59033),r=n(52695);const a=e=>(0,r.jsx)(o.In,{...e,children:(0,r.jsx)("path",{d:"M7.15 21.1a1.2 1.2 0 0 1-.375-.888q0-.512.375-.887L14.475 12l-7.35-7.35a1.2 1.2 0 0 1-.35-.875q0-.525.375-.9c.375-.375.546-.375.888-.375q.512 0 .887.375l8.4 8.425q.15.15.213.325.062.175.062.375c0 .2-.02.258-.062.375a.9.9 0 0 1-.213.325L8.9 21.125q-.35.35-.862.35-.513 0-.888-.375"})})},77372(e,t,n){n.d(t,{A:()=>a});var o=n(59033),r=n(52695);const a=e=>(0,r.jsx)(o.In,{...e,children:(0,r.jsx)("path",{d:"M11.3 19.3a1 1 0 0 1-.288-.7.9.9 0 0 1 .263-.7l4.9-4.9H5a.97.97 0 0 1-.713-.288A.97.97 0 0 1 4 12a.97.97 0 0 1 .287-.713A.97.97 0 0 1 5 11h11.175l-4.9-4.9a.9.9 0 0 1-.263-.7 1 1 0 0 1 .288-.7.95.95 0 0 1 .7-.275q.425 0 .7.275l6.6 6.6q.15.125.213.312.062.188.062.388c0 .2-.02.258-.062.375a.9.9 0 0 1-.213.325l-6.6 6.6a.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275"})})},5138(e,t,n){n.d(t,{A:()=>a});var o=n(59033),r=n(52695);const a=e=>(0,r.jsx)(o.In,{...e,children:(0,r.jsx)("path",{d:"M14.625 16.025a.92.92 0 0 0 .675.275q.4 0 .7-.3a.95.95 0 0 0 .275-.7.95.95 0 0 0-.275-.7l-3-3V7.975a.93.93 0 0 0-.287-.7A1 1 0 0 0 12 7a.97.97 0 0 0-.712.287A.97.97 0 0 0 11 8v3.975a1.03 1.03 0 0 0 .3.725zM12 22a9.7 9.7 0 0 1-3.9-.788 10.1 10.1 0 0 1-3.175-2.137q-1.35-1.35-2.137-3.175A9.7 9.7 0 0 1 2 12a9.7 9.7 0 0 1 .788-3.9 10.1 10.1 0 0 1 2.137-3.175q1.35-1.35 3.175-2.138A9.7 9.7 0 0 1 12 2a9.7 9.7 0 0 1 3.9.787 10.1 10.1 0 0 1 3.175 2.138q1.35 1.35 2.137 3.175A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-.788 3.9 10.1 10.1 0 0 1-2.137 3.175q-1.35 1.35-3.175 2.137A9.7 9.7 0 0 1 12 22m0-2q3.325 0 5.663-2.337T20 12c0-3.325-.779-4.104-2.337-5.663Q15.325 4 12 4c-3.325 0-4.104.779-5.662 2.337Q4 8.675 4 12c0 3.325.78 4.104 2.338 5.663Q8.675 20 12 20"})})},86321(e,t,n){n.d(t,{A:()=>a});var o=n(59033),r=n(52695);const a=e=>(0,r.jsx)(o.In,{...e,children:(0,r.jsx)("path",{d:"M20.3 20.3a.99.99 0 0 1-1.4 0l-5.6-5.6A6.1 6.1 0 0 1 9.5 16q-2.725 0-4.612-1.887T3 9.5t1.888-4.613Q6.775 3 9.5 3t4.613 1.887T16 9.5a6.1 6.1 0 0 1-1.3 3.8l5.6 5.6a.99.99 0 0 1 0 1.4M9.5 14q1.875 0 3.188-1.312C14.001 11.376 14 10.75 14 9.5q0-1.875-1.312-3.188C11.376 4.999 10.75 5 9.5 5Q7.625 5 6.312 6.312C4.999 7.624 5 8.25 5 9.5q0 1.875 1.312 3.188C7.624 14.001 8.25 14 9.5 14"})})},82352(e,t,n){n.d(t,{A:()=>r});var o=n(93595);const r=function(e,t){return(0,o.A)(e,t)}}}]); 2//# sourceMappingURL=chunk-src_common_modules_meta-data_reducers_metaDataReducer_ts-src_common_modules_vacancy-detail_ac-2fac69.bd7e78e6.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.