1"use strict";(globalThis.webpackChunk_jobcloud_b2c_frontend=globalThis.webpackChunk_jobcloud_b2c_frontend||[]).push([["src_common_lib_UniversalTools_ServerMemory_ts-src_common_modules_document_components_CvSelect-d9a0e0"],{24912(e,t,s){s.d(t,{A:()=>r});var a=s(18960);const r=(e,t)=>{let s,r=!1;const o=async t=>{s=await e(t)};return setInterval((()=>{r=!0}),t),{get:async e=>(void 0!==s&&"spec_runner"!==a.$W.ENV||await o(e),r&&(o(e),r=!1),s)}}},82277(e,t,s){s.d(t,{A:()=>v});s(84775),s(78944),s(97512),s(18910);var a=s(6799),r=s(41711),o=s(42137),n=s(14503),i=s(96777),l=s(65496),c=s(88402),d=s(76873),u=s(7750),p=s(59033),h=s(52695);const g=e=>{const t=(0,a.c)(17),{checked:s,document:r,onChange:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.AH)({"&:checked + label > span > span::before":{content:'""'},"&:focus-visible + label > span > span":{outline:"[3px solid {colors.purple.900}]",outlineOffset:"[2px]"}}),t[0]=n):n=t[0];const i=`cv-radio-${r.id}`,l=r.id??"";let g;t[1]!==s||t[2]!==o||t[3]!==i||t[4]!==l?(g=(0,h.jsx)(d.I4.input,{checked:s,className:n,id:i,name:"selected_cv_id",onChange:o,opacity:0,position:"absolute",type:"radio",value:l,width:"[0px]",zIndex:"z-1"}),t[1]=s,t[2]=o,t[3]=i,t[4]=l,t[5]=g):g=t[5];const y=`cv-radio-${r.id}`,m=r.fileName||"";let f,x,b,v,k;return t[6]!==r?(f=(0,h.jsx)(p.i,{width:"100%",children:(0,h.jsx)(u.A,{document:r,hasBorder:!0,hasLink:!1})}),t[6]=r,t[7]=f):f=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(x={_hover:"purpleAlphaDark.200"},t[8]=x):x=t[8],t[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsx)(p.L9,{alignItems:"center",bg:x,borderRadius:"[50%]",display:"flex",height:"[26px]",justifyContent:"center",mr:"s8",position:"absolute",right:"s0",top:"s16",width:"[26px]",children:(0,h.jsx)(p.L9,{_before:{bg:"gray.900",borderRadius:"[50%]",height:"[10px]",width:"[10px]"}
1,alignItems:"center",border:"[2px solid {colors.gray.900}]",borderRadius:"[50%]",display:"inline-flex",flex:"[0 0 18px]",height:"[18px]",justifyContent:"center",width:"[18px]"})}),t[9]=b):b=t[9],t[10]!==y||t[11]!==m||t[12]!==f?(v=(0,h.jsxs)(p.JU,{color:"gray.900",cursor:"pointer",display:"flex",htmlFor:y,position:"relative",title:m,children:[f,b]}),t[10]=y,t[11]=m,t[12]=f,t[13]=v):v=t[13],t[14]!==v||t[15]!==g?(k=(0,h.jsxs)(h.Fragment,{children:[g,v]}),t[14]=v,t[15]=g,t[16]=k):k=t[16],k};var y=s(95574),m=s(77945),f=s(45552),x=s(34380);const b=e=>{const t=(0,a.c)(9),{t:s,handleFileUpload:r}=e;let o,n,i,l;return t[0]!==s?(o=s("cv_selection.allowed_mime_prefix"),t[0]=s,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(n=["application/pdf"],t[2]=n):n=t[2],t[3]!==s?(i=s("file_upload.dropzone.title"),t[3]=s,t[4]=i):i=t[4],t[5]!==r||t[6]!==o||t[7]!==i?(l=(0,h.jsx)(y.A,{allowedMimePrefixText:o,allowedMimeTypes:n,onLoad:r,title:i}),t[5]=r,t[6]=o,t[7]=i,t[8]=l):l=t[8],l},v=({description:e,funnelName:t="profile",isOpen:s,modalName:a,onCancel:c,onCvSelected:d,title:u})=>{const y=(0,i.A)(),{closeModal:v}=(0,l.A)(a),{mutateAsync:k,isPending:_}=(0,n.Op)(),{onCvUploadSuccess:A}=(0,o.A)(),[C,j]=(0,r.useState)(!1),[I,S]=(0,r.useState)(""),[w,O]=(0,r.useState)(""),R=((0,n.Mw)().data||[]).filter((e=>e.tags?.includes("cv")&&"application/pdf"===e.fileType)),F=R.length>3,L=C?R:R.slice(0,3),E=R.length>0?R[0]?.id??"":"",z=I||E,T=(0,r.useCallback)((()=>{S(""),j(!1),O("")}),[]),H=(0,r.useCallback)((()=>{v(),c?.()}),[v,c]),B=(0,r.useCallback)((async({file:e,response:s})=>{O("");const a=await k({file:e,response:s});A(t),a?.result?.id&&d(a.result.id)}),[k,A,d,t]);return(0,h.jsxs)(m.A,{"data-cy":`${a}-modal`,hasError:!!w,isOpen:s,isPending:_,onClose:T,primaryHandler:()=>{z?(O(""),d(z)):O(y("cv_selection.error.required"))},primaryLabel:y("accessibility.action.continue"),secondaryHandler:H,secondaryLabel:y("accessibility.action.cancel"),title:u,children:[e&&(0,h.jsx)(p.P,{color:"gray.700",mb:"s16",textStyle:"body2",children:e}),R.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.z,{legend:u,children:L.map((e=>(0,h.jsx)(g,{checked:z===e.id,document:e,onChange:()=>{S(e.id??""),O("")}},e.id)))}),F&&(0,h.jsx)(p.so,{justifyContent:"flex-end",mt:"s12",children:(0,h.jsx)(p.VS,{"data-cy":"toggle-cv-list",onClick:()=>j(!C),children:y(C?"cv_selection.show_less":"cv_selection.show_all")})}),(0,h.jsxs)(p.i,{mt:"s24",children:[w&&(0,h.jsx)(x.A,{infoboxType:"error",mb:"s16",children:w}),(0,h.jsx)(b,{handleFileUpload:B,t:y})]})]}),0===R.length&&(0,h.jsxs)(h.Fragment,{children:[w&&(0,h.jsx)(x.A,{infoboxType:"error",mb:"s16",children:w}),(0,h.jsx)(b,{handleFileUpload:B,t:y})]}),(0,h.jsx)(x.A,{mt:"s24",children:y("job_fit.cv_upload.disclaimer")})]})}}
1,7750(e,t,s){s.d(t,{A:()=>p});var a=s(44007),r=s(35322),o=s(37736),n=s(96777),i=s(59033),l=s(96055),c=s(91072),d=s(42776),u=s(52695);const p=({document:e,handleDelete:t,hasBorder:s=!1,hasLink:p=!0,isFromProfile:h=!1,isSingleDocument:g=!1})=>{const y=(0,n.A)(),{fileName:m,fileSize:f,fileType:x,mediaApiId:b,tag:v,link:k,createdAt:_,updatedAt:A}=e;return(0,u.jsxs)(c.A,{alignItems:"flex-start",hasShadow:!1,...s?{border:"b400"}:{},bg:"white","data-clarity-mask":"true","data-cy":"file-list-item",display:"flex",gap:"s16",...g?{}:{my:"s8"},p:"s16",px:{base:"s8",sm:"s16"},children:[(0,u.jsx)(i.i,{height:"[24px]",width:"[24px]",children:(0,o.A)(x)}),(0,u.jsxs)(i.i,{flex:"1",maxWidth:"[calc(100% - 64px)]",minWidth:"[0px]",children:[(0,u.jsxs)(i.L9,{className:(0,a.gO)({lines:2}),"data-cy":"file-name",fontWeight:"bold",textStyle:"body1",children:[p&&(0,u.jsx)(i.e9,{"data-propagation":"stop",download:m,eventData:{event_component_type:"document"},href:k,target:"_blank",title:m,underline:"none",visited:"none",children:m}),!p&&(0,u.jsx)(i.L9,{color:{base:"link.defaultDark.base",_groupHover:"link.defaultDark.hover"},children:m})]}),(0,u.jsxs)(i.L9,{display:{base:"none",sm:"block"},textStyle:"caption1",children:[(0,r.A)(f||0)," - ",`${y("file_upload.upload_prefix")}: `,(0,u.jsx)(l.A,{a11yDateFormat:"date_time",a11yPrefix:y("accessibility.date.uploaded"),format:"date_time",children:A||_||(new Date).toISOString()})]}),(0,u.jsxs)(i.so,{columnGap:"s8",flexWrap:"wrap",children:[v&&"other"!==v&&(0,u.jsx)(i.vw,{mt:"s8",tagColor:"gray",children:y(`account_document_tags.edit.tag.${v}`)},v),h&&(0,u.jsx)(i.vw,{mt:"s8",tagColor:"gray",children:y("account_document_tags.document_source.profile")},"profile")]})]}),t&&(0,u.jsx)(i.K0,{buttonSize:"sm",buttonType:"blended","data-cy":"delete-file","data-propagation":"stop",icon:(0,u.jsx)(d.A,{}),id:`delete-document-${b}`,onClick:()=>t(b),title:y("accessibility.action.delete")})]})}},71008(e,t,s){s.d(t,{A:()=>n});var a=s(41711),r=s(97175),o=s(2739);const n=e=>{const[t]=(0,r.n)("ab_experiments");return(0,a.useMemo)((()=>(0,o.a)(t,e)),[t,e])}},73005(e,t,s){s.d(t,{R:()=>r});var a=s(19018);const r=e=>({type:a.F.SUGGEST_QUERY,payload:e})},63348(e,t,s){s.d(t,{A:()=>C,T:()=>j});s(84775);var a=s(38108),r=s(18960);const o=e=>{const t=e.get("session_id");return r.$W.USE_SAFE_DEFAULTS||!t?"00000000-0000-0000-0000-000000000000":t};var n=s(50253),i=(s(78944),s(83871),s(69523));const l=e=>({valid:!1,key:e}),c=(e,t)=>{const{page:s,benefitIds:a,categoryIds:r,companyIds:o,positionIds:c,employmentTypeIds:d,industryIds:u,regionIds:p,segmentIds:h,languageIds:g,employmentGrades:y,sortBy:m,term:f}=e;return void 0!==s&&(s<1||s>100)?l("page"):f&&t&&f.length>t?l("term"):a&&!a.every((e=>[n.ln,n.N8].includes(e)))?l("benefitIds"):r&&!r.every(i.r8)?l("categoryIds"):c&&!c.every(i.r8)?l("positionIds"):d&&!d.every(i.r8)?l("employmentTypeIds"):u&&!u.every(i.r8)?l("industryIds"):p&&!p.every(i.r8)?l("regionIds"):o&&!o.every((e=>"string"==typeof e&&((0,i.Hh)(e)||(0,i.$J)(e))))?l("companyIds"):h&&!h.every((e=>["gu","kmu","pdl"].includes(e)))?l("segmentIds"):g&&!g.every((e=>["missing","de","en","fr","it"].includes(e)))?l("languageIds"):y&&void 0!==y[0]&&(y[0]<0||y[0]>100)||y&&void 0!==y[1]&&(y[1]<0||y[1]>100)?l("employmentGrades"):m&&!["date","random"].includes(m)?l("sortBy"):{valid:!0}};var d=s(10335),u=s(42253),p=s(53352);s(97512),s(18910);const h=e=>e.map((e=>({key:e.key,docCount:e.docCount})));var g=s(13650);const y=e=>!!e.key.trim().length,m=e=>t=>t.docCount>=e,f=e=>-1===["zurich","st.gallen","switzerland","genf","geneva","ch","deutschschweiz"].indexOf(e.key.toLowerCase()),x=e=>!e.key.match(/,|\/|-|\(|\)|region|grossregion|kanton|canton/i),b=e=>!e.key.match(/ZH|BE|LU|UR|SZ|OW|NW|GL|ZG|FR|SO|BS|BL|SH|AR|AI|SG|GR|AG|TG|TI|VD|VS|NE|GE|JU|CH|LIE|DE|AT/),v=e=>!/\d/.test(e.key);var k=s(55922),_=s(73005),A=s(65580);const C="job-search-api/aggregations",j=e=>((e,t,s,i)=>{const l=async e=>{if(!c(e,128).valid)return{ok:!1,statusCode:422};const s=await t.fetch(r.Ok.JOB_SEARCH_API+"/aggregations",{query:{...(0,n.Iz)(e),page:void 0}});return s.ok&&s.result.aggregations?{ok:s.ok,statusCode:s.statusCode,result:(a=s.result,{place:h(a.aggregations.place.buckets.filter(y).filter(m(5)).filter(f).filter(x).filter(b).filter(v)),synonymCollection:h(a.aggregations.synonymCollection.buckets.filter(m(g.n.docMinCount)).filter(y)),regionIds:a.facets.regionIds})}:{ok:s.ok,statusCode:s.statusCode};var a},j=async(e,o={},l,d=128,u)=>{const p=r.Ok.JOB_SEARCH_API+"/search",h=c(e,d);if(!h.valid)return{ok:!1,statusCode:422,result:{...(0,A.A)(),error:h.key}};const g=!l&&s.getState().featureFlags.includes("search-track"),y=s.getState().tracking.searches.vacancy?.id,m={...(0,n.Iz)({...e,...o}
1)},f=await t.fetch(l||p,{query:m,headers:{...g&&y?{"X-Search-Id":y,"X-Capture-Query":(0,a.A)()}:{},...u}});return{ok:f.ok,statusCode:f.statusCode,result:(0,A.A)(f.result,o,{locale:i,fetched:!0})}};return{aggregations:l,facets:async e=>{if(!c(e,128).valid)return{ok:!1,statusCode:422};const s=await t.fetch(r.Ok.JOB_SEARCH_API+"/aggregations",{query:{...(0,n.Iz)(e)}});return s.ok?{ok:s.ok,statusCode:s.statusCode,result:{totalHits:s.result.totalHits,facets:s.result.facets}}:{ok:s.ok,statusCode:s.statusCode}},getAggregationFetchConfiguration:e=>({queryKey:[C,(0,n.Iz)(I(e))],queryFn:async()=>{const t=await l(I(e));if(!t.ok)throw t;return t.result}}),getFetchConfiguration:(e,t,s)=>({queryKey:["job-search-api/search",(0,n.Iz)({...e,...t}),...s?[s]:[]],queryFn:async()=>{const a=await j(e,t,s);if(a.ok)return a.result;throw a}}),persist:(e,t)=>{s.dispatch((0,k.e)(e,t))},search:j,semantic:async(t,o={})=>{const n=s.getState().featureFlags.includes("search-track"),i=(0,d.PO)(e,s),l=s.getState().tracking.searches.vacancy?.id,c={...n?{"X-Relevance-Only":"true"}:{},...i?{"X-Rescore-Strategy":"26-april"}:{},...n&&l?{"X-Search-Id":l,"X-Capture-Query":(0,a.A)()}:{}}
1;return await j(t,o,r.Ok.JOB_SEARCH_API+"/search/semantic",1e3,c)},splitByDate:async(e,s)=>{const a=(0,p.Y)(e,u.h.EN,"date_iso"),o=r.Ok.JOB_SEARCH_API+"/search/split-by-date",l=await t.fetch(o,{query:{...(0,n.Iz)(s),sortSplitByInitialDate:a}});return{ok:l.ok,statusCode:l.statusCode,result:(0,A.A)(l.result,{},{locale:i})}},sponsored:async(t,a)=>{const n=o(e),i="semantic"===s.getState().vacancy.searchVersion?"/search/sponsored-semantic":"/sponsored";return j(t,{...a,seed:n},r.Ok.JOB_SEARCH_API+i)},suggest:async e=>{const a=await t.fetch(r.Ok.JOB_SEARCH_API+"/search/suggest",{query:{query:e}}),{ok:o,statusCode:n,result:i}=a;return o&&i?.suggestQuery&&s.dispatch((0,_.R)({suggestQuery:i.suggestQuery,originalQuery:e})),{ok:o,statusCode:n,result:i}}}})(e.get("core.cookie"),e.get("core.fetch"),e.get("core.redux"),e.get("core.locale"));j.identifier="vacancy.vacancySearch";const I=e=>{const{page:t,rows:s,...a}=e;return a}},55797(e,t,s){s.d(t,{A:()=>c});var a=s(88402),r=s(76873),o=s(41711),n=s(59033),i=s(52695);const l=(0,o.forwardRef)((({autoFocus:e=!1,checked:t,defaultChecked:s,disabled:o=!1,id:l,label:c,name:d,onChange:u,value:p,...h},g)=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(n.Li,{mb:"s24",children:[(0,i.jsx)(r.I4.input,{...e?{autoFocus:e}:{},...void 0!==t?{checked:t}:{},...void 0!==s?{defaultChecked:s}:{},className:(0,a.AH)({"&:checked + label > span > span::before":{content:'""'},"&:focus-visible + label > span > span":{outline:"[3px solid {colors.purple.900}]",outlineOffset:"[2px]"}}),disabled:o,id:`${l||d}-${p}`,name:d,onChange:u,opacity:0,position:"absolute",ref:g,type:"radio",value:p,width:"[0px]",zIndex:"z-1"}),(0,i.jsxs)(n.JU,{alignItems:"center",color:o?"gray.500":"gray.900",cursor:o?"not-allowed":"pointer",display:"flex",htmlFor:`${l||d}-${p}`,position:"relative",title:c,...h,children:[(0,i.jsx)(n.L9,{alignItems:"center",borderRadius:"[50%]",...o?{}:{bg:{_hover:"purpleAlphaDark.200"}},display:"flex",height:"[26px]",justifyContent:"center",mr:"s8",width:"[26px]",children:(0,i.jsx)(n.L9,{_before:{borderRadius:"[50%]",height:"[10px]",width:"[10px]",bg:o?"gray.300":"gray.900"},alignItems:"center",border:o?"[2px solid {colors.gray.300}
1]":"[2px solid {colors.gray.900}]",borderRadius:"[50%]",display:"inline-flex",flex:"[0 0 20px]",height:"[20px]",justifyContent:"center",width:"[20px]"})}),(0,i.jsx)(n.L9,{children:c})]})]})})));l.displayName="RadioButton";const c=l},12344(e,t,s){s.d(t,{A:()=>n});var a=s(44007),r=s(59033),o=s(52695);const n=({error:e,legend:t,name:s,id:n,...i})=>(0,o.jsxs)("fieldset",{children:[(0,o.jsx)("legend",{className:(0,a.IR)(),children:t}),(0,o.jsx)(r.Ul,{...e&&(n||s)?{"aria-describedby":`${n||s}-error`}:{},...i}),!!e&&(0,o.jsx)(r.P,{color:"red.700","data-cy":"error-text",id:n||s?`${n||s}-error`:void 0,textStyle:"caption1",children:e})]})},45552(e,t,s){s.d(t,{a:()=>a.A,z:()=>r.A});var a=s(55797),r=s(12344)},71072(e,t,s){s.d(t,{A:()=>o});var a=s(59033),r=s(52695);const o=e=>(0,r.jsx)(a.In,{...e,children:(0,r.jsx)("path",{d:"m10.6 13.8-2.175-2.175a.9.9 0 0 0-.687-.262.98.98 0 0 0-.688.287.95.95 0 0 0-.275.7.95.95 0 0 0 .275.7L9.9 15.9a.95.95 0 0 0 .7.275.95.95 0 0 0 .7-.275l5.675-5.675a.9.9 0 0 0 .263-.688.98.98 0 0 0-.288-.687.95.95 0 0 0-.7-.275.95.95 0 0 0-.7.275zM12 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"})})}}]); 2//# sourceMappingURL=chunk-src_common_lib_UniversalTools_ServerMemory_ts-src_common_modules_document_components_CvSelect-d9a0e0.8d4660bb.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.