1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:lto-karriere-frontend":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae3c6bd1-9814-47ff-9ef0-21838ef81143",e._sentryDebugIdIdentifier="sentry-dbid-ae3c6bd1-9814-47ff-9ef0-21838ef81143")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6744],{5939:e=>{e.exports={jobsPerMail__overlay:"NewsletterForm_jobsPerMail__overlay__LtpfV",newsletter:"NewsletterForm_newsletter__DX1v3",opened:"NewsletterForm_opened__IsBgW",jobsPerMail:"NewsletterForm_jobsPerMail__Y22DW",closeIcon:"NewsletterForm_closeIcon__hqWiz",content:"NewsletterForm_content__iAA91",contentEmbedded:"NewsletterForm_contentEmbedded__R1juY",title:"NewsletterForm_title__zvcOH",emailInput:"NewsletterForm_emailInput__qCxUC",callout_success:"NewsletterForm_callout_success__cfivy",callout_alert:"NewsletterForm_callout_alert__ozfPD",submit:"NewsletterForm_submit___bBo_",disclaimer:"NewsletterForm_disclaimer__7sWTl",validationError:"NewsletterForm_validationError__w8RA3",disable:"NewsletterForm_disable__xUJ40"}},7560:e=>{e.exports={joblist:"ItemList_joblist__Mkluw","layout-small":"ItemList_layout-small__4O4AL",jobitem__show:"ItemList_jobitem__show__jd9_M",jobitem__hidden:"ItemList_jobitem__hidden__kGLHV",jobitem__tops:"ItemList_jobitem__tops__Q5Q6K",jobitem__title:"ItemList_jobitem__title__3Hk9r",jobitem__share:"ItemList_jobitem__share__crW6y",jobitem__social:"ItemList_jobitem__social__mgU7I",jobitem__content:"ItemList_jobitem__content__wywmT",jobitem__logo:"ItemList_jobitem__logo__FclPT",jobitem__lazylogo:"ItemList_jobitem__lazylogo__5qRL3",item__info:"ItemList_item__info__Y3vvx",item__title:"ItemList_item__title__hhntH",item__subtitle:"ItemList_item__subtitle__dbWE8"}},8370:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(95155),i=r(31190);r(12115);var l=r(56939);let a=e=>(0,n.jsx)(l.A,{...e,children:(0,n.jsx)(i.A,{id:e.name,variant:"filled",fullWidth:!0,...e,label:void 0,error:!1,helperText:void 0,sx:{"& .MuiInputBase-root":{padding:"0.3875rem 1rem"}}})})},11011:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(95155),i=r(60138),l=r(42121),a=r(92032),s=r(28131),o=r(21145),c=r(35153),d=r(56473),u=r(22041),m=r(44258),h=r(72892),p=r(19522),g=r(36039),x=r(41574),f=r(98638),b=r(79488),v=r(20063),j=r(12115),y=r(8696),_=r(39560),A=r.n(_);let w=e=>{var t;let{job:r,attributes:i}=e,{user:a,mutate:o}=null!=(t=(0,j.useContext)(h.M))?t:{},{cleanOverlayModal:_}=(0,l.E)(),{mutate:w}=(0,y.iX)(),S=(0,v.useRouter)(),[k,C]=(0,j.useState)(!1),[I,E]=(0,j.useState)(0),D=(0,g.hf)("matching",a),{matchPercent:F,matchCount:M,matchFromCount:L,matchTooltipText:T,hideMatchingScore:z}=(0,j.useMemo)(()=>{var e;return D?(0,p.mI)(r.id,a,i,{jobIsBundesweit:r.bundesweit,jobIsRemoteOnly:null==r||null==(e=r.workLocationTypes)?void 0:e.some(e=>e.label===s.Ay.specialJobAttributes.remoteOnly),jobLocations:(null==r?void 0:r.locations)||[],jobOrganisationalFormId:u.A.getOrganisationalFormId(r),jobActivityIds:u.A.getOccupationsIds(r),jobDegreeIds:u.A.getCareerLevelsIds(r),jobFieldOfLawIds:u.A.getFieldsOfLawIds(r),jobEmploymentTypeIds:u.A.getEmploymentTypesIds(r),jobSalaryConfig:u.A.getSalaryConfig(r),jobScoreMinPoints:d.A.getMinScorePoints(r.employer),jobScoreMinGrade:d.A.getMinScoreGrade(r.employer)}):{matchPercent:0,matchCount:0,matchFromCount:0,matchTooltipText:"",hideMatchingScore:!0}},[D,a,i,r]),O=D&&!z;if((0,j.useEffect)(()=>{if(O||D)return;if(I>=15)return void C(!0);let e=setTimeout(()=>{null==o||o(),E(e=>e+1)},2e3*(0!==I));return()=>clearTimeout(e)},[O,D,I]),(0,j.useEffect)(()=>()=>{w(e=>Array.isArray(e)&&"string"==typeof e[0]&&e[0].startsWith("/api/jobs/search"))},[w]),!O&&!D&&!k)return(0,n.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,py:{xs:4,sm:6}},children:[(0,n.jsx)(f.A,{}),(0,n.jsx)(b.A,{variant:"body1",sx:{color:"text.secondary"},children:"Wir schalten Deinen pers\xf6nlichen Matching Score frei â¦"})]});let P=(0,n.jsxs)(x.A,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",sm:"row"},justifyContent:"center",mt:4},children:[(0,n.jsx)(c.A,{onClick:()=>{_(),S.push(s.Ay.pagePaths.jobSearch)},children:"Weitere passende Jobs entdecken"}),(0,n.jsx)(c.A,{layout:"secondary",onClick:()=>{let e=m.A.getPathConfig("jobDetail",{slug:r.slug});e&&S.push(e),_()},children:"Diesen Job ansehen"})]});return O?(0,n.jsxs)(x.A,{sx:{textAlign:"center",py:{xs:1,sm:2}},children:[(0,n.jsxs)(x.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:{xs:1.5,sm:2},mb:1},children:[(0,n.jsx)(x.A,{className:A().successBadge,children:(0,n.jsxs)("svg",{className:A().successCheckmark,viewBox:"0 0 36 36",children:[(0,n.jsx)("circle",{cx:"18",cy:"18",r:"16"}),(0,n.jsx)("polyline",{points:"11 18 16 23 25 13"})]})}),(0,n.jsx)(b.A,{sx:{fontWeight:"bold",fontSize:{xs:"1.15rem",sm:"1.5rem"}},children:"Freigeschaltet!"})]}),(0,n.jsx)(b.A,{variant:"body1",sx:{mb:3,color:"text.secondary"},children:"So gut passt dieser Job zu Deinem Profil:"}),(0,n.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:3,md:6}},children:[(0,n.jsxs)(x.A,{sx:{textAlign:"center",flexShrink:0},children:[(0,n.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",transform:"scale(1.35)",my:4},children:(0,n.jsx)(N,{percent:F,tooltipText:T,circleTextOverride:"".concat(M," / ").concat(L),circleTextUnit:"passend",matchingFeatureUnlocked:!0,noMatchingPossible:!1,isLoggedInUser:!0,typeButton:"secondary"})}),(0,n.jsx)(b.A,{sx:{fontWeight:"bold",fontSize:{xs:"1rem",sm:"1.15rem"},mt:2},children:r.title}),(0,n.jsxs)(b.A,{variant:"body2",sx:{color:"text.secondary",mt:.5},children:[M," von ",L," Kriterien passen zu Deinem Profil."]})]}),T&&(0,n.jsx)(x.A,{sx:{textAlign:"left",bgcolor:"grey.100",borderRadius:0,px:2.5,py:2,width:{xs:"100%",md:"auto"},maxWidth:360,"& p":{mt:0,mb:1,fontWeight:600},"& ul":{m:0,pl:3},"& li":{mb:.5}},children:T})]}),P]}):(0,n.jsxs)(x.A,{sx:{textAlign:"center",py:{xs:2,sm:3}}
1,children:[(0,n.jsxs)(x.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:{xs:1.5,sm:2},mb:2},children:[(0,n.jsx)(x.A,{className:A().successBadge,children:(0,n.jsxs)("svg",{className:A().successCheckmark,viewBox:"0 0 36 36",children:[(0,n.jsx)("circle",{cx:"18",cy:"18",r:"16"}),(0,n.jsx)("polyline",{points:"11 18 16 23 25 13"})]})}),(0,n.jsx)(b.A,{sx:{fontWeight:"bold",fontSize:{xs:"1.15rem",sm:"1.5rem"}},children:"Gratulation!"})]}),(0,n.jsx)(b.A,{variant:"body1",sx:{color:"text.secondary"},children:"Du hast alle relevanten Infos f\xfcr Dein pers\xf6nliches Job Matching angegeben. Entdecke jetzt die passenden Jobs f\xfcr Dich."}),P]})};var S=r(94507),k=r(18444),C=r(70188),I=r.n(C);let N=e=>{let{percent:t,tooltipText:r,circleTextOverride:c,circleTextUnit:d,matchingFeatureUnlocked:u,noMatchingPossible:m,isLoggedInUser:h=!1,typeButton:p="primary",job:g,attributes:x}=e,{isMobile:f}=(0,a.A)(),{setOverlayModal:b}=(0,l.E)(),v=()=>{g&&b({contentComponent:(0,n.jsxs)(n.Fragment,{children:[(null==g?void 0:g.title)&&(0,n.jsx)(S.A,{variant:"small",contextType:"jobmatch",children:(0,n.jsx)("h3",{children:g.title})}),(0,n.jsx)(o.A,{contextType:"jobmatch",contextProps:{job:g,successContent:(0,n.jsx)(w,{job:g,attributes:x})}})]}),maxWidth:"md"})};if(!u){let e=(0,n.jsxs)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,n.jsx)("p",{children:h?s.Ay.features.matching.featureDescription:"Melde Dich an oder registriere Dich, um zu sehen, wie gut dieser Job zu Dir passt."}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)("button",{type:"button",className:"button button--primary",onClick:e=>{e.stopPropagation(),e.preventDefault(),v()},children:"Match anzeigen"})})]});return(0,n.jsx)(i.A,{icon:"",text:e,triggerType:f?k.TRIGGER_TYPE.click:k.TRIGGER_TYPE.hover,children:(0,n.jsx)("div",{className:"".concat(I().lockedMatching," match-score"),onClick:e=>{e.preventDefault(),e.stopPropagation(),v()},children:(0,n.jsx)("span",{className:"button button--".concat(p),children:"Match?"})})})}if(m)return null;let j=72*Math.PI;return(0,n.jsx)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,n.jsx)(i.A,{icon:"",text:r,children:(0,n.jsxs)("div",{className:"".concat(I().match," match-score ").concat(u?"":I().matchLocked),"data-testid":"match-score",children:[(0,n.jsxs)("span",{className:I().match__progress,children:[(0,n.jsxs)("span",{className:I().match__percent,children:[c||"".concat(t,"%"),d&&(0,n.jsx)("span",{className:I().unit,children:d})]}),(0,n.jsxs)("svg",{width:80,height:80,children:[(0,n.jsx)("circle",{stroke:"#c0c0c0",strokeWidth:2,fill:"transparent",r:36,cx:40,cy:40}),(0,n.jsx)("circle",{stroke:"#489bc9",strokeWidth:4,strokeDasharray:"".concat(j,", ").concat(j),strokeDashoffset:j-t/100*j,fill:"transparent",r:36,cx:40,cy:40})]})]}),(0,n.jsx)("span",{className:"text-small hide-for-medium text-center",children:"Details ansehen"}),h&&(0,n.jsx)("span",{className:I().match__toptext,children:"\xdcbereinstimmung"})]})})})}},11044:(e,t,r)=>{"use strict";r.d(t,{$I:()=>a,BB:()=>c,Un:()=>g,Vx:()=>u,Wu:()=>h,YY:()=>f,kc:()=>m,u5:()=>x,u_:()=>o});var n=r(44286),i=r(4345),l=r(19955);let a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[];if(e.queries&&e.queries.length>0&&(n=n.concat(e.queries)),r.length>0)for(let e of r)n.push(e.city+", "+e.radius);if(t){let e=s(t);n=n.concat(e)}return n},s=e=>{let t=[];for(let r in e)if(e[r].items)for(let n in e[r].items)e[r].items[n].selected&&t.push(e[r].items[n].label);return t},o=e=>{let t=[],r=[];for(let n in e){let i=parseInt(n),l=e[n];if(0===i){r.push(l);continue}let a=r[r.length-1];if(l.employer.name!==a.employer.name?r.push(l):t.push(l),t.length>0){let e=t[0];do{if(e.employer.name!==r[r.length-1].employer.name&&(r.push(e),t.shift(),0===t.length))break;e=t[0]}while(e.employer.name!==r[r.length-1].employer.name)}}return[...r,...t]},c=()=>{let e=[],t=(0,i.c)();if(t){let r=t.getItem("searchHistory");r&&(""===r||r.includes("rawSearchArgs"))&&(r="[]",t.removeItem("searchHistory")),e=JSON.parse(r)||[]}return e},d=()=>{let e=[],t=(0,i.c)();return t&&(e=JSON.parse(t.getItem("jobsHistory"))||[]),e},u=e=>{let t=(0,i.c)();if(t){let i=c(),o=((e,t)=>{for(let r in e){let i=e[r];if(i&&t&&!(!1 in i)&&i.args&&t&&n.A.compareObject(i.args,t.args,["sort"]))return r}return null})(i,e);if(o){let e=i.splice(parseInt(o),1);1===e.length&&(e=e[0]),i.unshift(e)}else{var r,l,a,s;e.meta.title&&Array.isArray(e.meta.title)&&0!==e.meta.title.length||(null==e||null==(l=e.meta)||null==(r=l.seoPageData)?void 0:r.title)||(e.meta.title=[null==e||null==(s=e.meta)||null==(a=s.seoPageData)?void 0:a.title]),(i=[e,...i]).length>=4&&i.pop()}t.setItem("searchHistory",JSON.stringify(i)),p()}},m=e=>{let t=(0,i.c)();if(t){let r=d();0===r.filter(t=>t.id===e.id).length&&((r=[(e=>{let{id:t,activities:r,fieldOfLaws:n,locations:i}=e;return{id:t,fieldOfLaws:Array.isArray(n)?n.map(e=>e.id):[],activities:Array.isArray(r)?r.map(e=>e.id):[],locations:Array.isArray(i)?i.filter(e=>e.zip).map(e=>
1({zip:e.zip||"",radius:"100km"})):[]}})(e),...r]).length>=4&&r.pop(),t.setItem("jobsHistory",JSON.stringify(r)),p())}},h=()=>{let e=[],t=(0,i.c)();return t&&(e=(e=>{if(!Array.isArray(e)||0===e.length)return[];let t=["activity","geodatas","federalstates","arbeitszeiten","position","anstellung","employer","jobsource","rechtsgebiete","organisationalform","benefits","careerlevels","imrContributor"];return(e=e.map(e=>{if(e.filter){let r={};for(let n in e.filter)t.includes(n)&&(r[n]=e.filter[n]);r&&n.A.isEmptyObject(r)?delete e.filter:e.filter=r}return e&&n.A.isEmptyObject(e)?null:e})).filter(e=>null!==e)})(e=JSON.parse(t.getItem("boosting"))||[])),e},p=()=>{let e=[],t=(0,i.c)();if(t){let r=c(),i=d();r.length>0?e=(e=>{let t=[];for(let c in e){var r,i,a,s,o;let d=e[c];if(!d)continue;let u={};!(0,l.Po)(d.args)&&"query"in d.args&&d.meta.queries&&(u.queries=d.meta.queries),!(0,l.Po)(d.args)&&"filter"in d.args&&!n.A.isEmptyObject(d.args.filter)&&(u.filter=d.args.filter),!(0,l.Po)(d.meta)&&"geo"in d.meta&&(null==(i=d.meta)||null==(r=i.geo)?void 0:r.uid)&&(!u.filter||!u.filter.geodatas||!Array.isArray(u.filter.geodatas))&&(u.filter={...u.filter||[],geodatas:[...(null==(a=u.filter)?void 0:a.geodatas)||[],null==(o=d.meta)||null==(s=o.geo)?void 0:s.uid]}),n.A.isEmptyObject(u)||t.push(u)}return t})(r):i.length>0&&(e=(e=>{let t=[];for(let r in e){let i=e[r],l={};l.filter={fieldOfLaws:i.fieldOfLaws,activities:i.activities,locations:i.locations},n.A.isEmptyObject(l.filter)||t.push(l)}return t})(i)),e.length>0&&t.setItem("boosting",JSON.stringify(e))}return e},g=()=>{let e=0,t=(0,i.c)();return t&&(e=parseInt(t.getItem("lastVisit"))),e},x=e=>{let t=(0,i.c)();t&&0!==parseInt(e)&&t.setItem("lastVisit",parseInt(e))},f=(e,t,r)=>{let n={},i=(null==r?void 0:r.filter)||{},l=(null==r?void 0:r.query)||"";l&&""!==l.trim()&&(n.query={title:"Suchbegriff",items:[{id:l,label:l}]});let a=Array.isArray(null==t?void 0:t.locations)?t.locations:[],s=!Array.isArray(e)&&e&&"object"==typeof e?e:void 0,o=Array.isArray(e)?e.reduce((e,t)=>t&&"object"==typeof t?e.concat(Object.values(t)):e,[]):Object.values(e||{}),c=e=>(null==s?void 0:s[e])?s[e]:o.find(t=>(t.param||t.parameter)===e);
1return Object.keys(i).forEach(e=>{if("locations"===e){let t=Array.isArray(i[e])?i[e]:[],r=c("locations"),l=t.map(e=>{let t=a.find(t=>t.zip===e.zip);if(t){var r;let n=t.radius||e.radius,i=[t.city||t.city||t.zip];return n&&i.push(n),{id:null!=(r=t.id)?r:e.zip,label:i.join(", ")}}if(e.zip){let t=[e.zip];return e.radius&&t.push(e.radius),{id:e.zip,label:t.join(", ")}}return null}).filter(Boolean);l.length>0&&(n.locations={title:(null==r?void 0:r.title)||"Stadt",items:l});return}((e,t)=>{if(!Array.isArray(t)||0===t.length)return;let r=c(e);if(!r)return;let i=Array.isArray(r.items)?r.items:Object.values(r.items||{}),l=t.map(e=>i.find(t=>String(t.id)===String(e))).filter(Boolean).map(e=>({id:e.id,label:e.label||e.title||e.name}));0!==l.length&&(n[e]?n[e].items=[...n[e].items,...l]:n[e]={title:r.title,items:l})})(e,Array.isArray(i[e])?i[e]:i[e]?[i[e]]:[])}),n}},11704:(e,t,r)=>{"use strict";r.d(t,{Jh:()=>l,YU:()=>a});var n=r(22041),i=r(44286);let l=(e,t)=>{let r=e,n="";if(e.length>t){r=e.slice(0,t-1);let i=e.length-r.length;n=" und ".concat(i),i>1?n+=" weitere":n+=" weiterer"}return[r,n]},a=e=>["descriptionIntroduction","title","descriptionMain"].concat(n.A.getDescriptionSorting(e).map(e=>i.A.convertHyphensToCamelCase(e)),["descriptionFinalNote"]).map(t=>{var r,n,i;return"title"===t?e.title&&(e.descriptionIntroduction||(null==(i=e.employer)?void 0:i.jobDescriptionIntroduction))?{header:e.title,description:void 0}:{}:"descriptionIntroduction"===t&&!e.descriptionIntroduction&&(null==(r=e.employer)?void 0:r.jobDescriptionIntroduction)?{header:void 0,description:e.employer.jobDescriptionIntroduction}:"descriptionFinalNote"===t&&!e.descriptionDescriptionFinalNote&&(null==(n=e.employer)?void 0:n.jobDescriptionFinal)?{header:void 0,description:e.employer.jobDescriptionFinal}:t in e&&e[t]?{header:e[t+"Header"],description:e[t]}:{}})},15095:e=>{e.exports={jobSubheader:"JobSubheader_jobSubheader___2e6u",jobHeaderItem:"JobSubheader_jobHeaderItem___WOWb",employerNameIcon:"JobSubheader_employerNameIcon__ZiW9z",employerName:"JobSubheader_employerName__J9xQN",locationIcon:"JobSubheader_locationIcon__XHP6S"}},19247:e=>{e.exports={selectItem:"SelectItem_selectItem__8p0mM",selectItemDropdown:"SelectItem_selectItemDropdown__YKFVB",itemClick:"SelectItem_itemClick__9o3Xn",selectItemLayout_tile:"SelectItem_selectItemLayout_tile__Y_yyc",selectItemLayout_button:"SelectItem_selectItemLayout_button__g6Rnc",selectItemSelected:"SelectItem_selectItemSelected__eniwK",selectItemActive:"SelectItem_selectItemActive__mptPz",label:"SelectItem_label___8o93",itemContent:"SelectItem_itemContent__9YhuF",icon:"SelectItem_icon__aYNkk",iconRadio:"SelectItem_iconRadio____pDA",itemContentDropdown:"SelectItem_itemContentDropdown__TyHzA",checkbox:"SelectItem_checkbox__3Q3de",radio:"SelectItem_radio__zYdlD",abbreviation:"SelectItem_abbreviation__BmWAn",subLabel:"SelectItem_subLabel__Og2ob",disabled:"SelectItem_disabled__0T35J",childrenContent:"SelectItem_childrenContent__8fWwE"}},19522:(e,t,r)=>{"use strict";r.d(t,{mI:()=>p});var n=r(95155),i=r(86896);r(12115),r(60138);var l=r(36039),a=r(28131);let s=e=>e*Math.PI/180,o=(e,t)=>{var r,n;return e.lat&&e.lon&&(null==(r=t.coordinates)?void 0:r.lat)&&(null==(n=t.coordinates)?void 0:n.lon)?((e,t,r,n)=>{let i=s(r-e),l=s(n-t),a=Math.sin(i/2)*Math.sin(i/2)+Math.sin(l/2)*Math.sin(l/2)*Math.cos(e=s(e))*Math.cos(r=s(r));return 2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))*6371})(e.lat,e.lon,t.coordinates.lat,t.coordinates.lon)<=e.radius:!!e.city&&!!t.city&&e.city.toLowerCase()===t.city.toLowerCase()},{vollzeitId:c,teilzeitId:d,vollzeitOrTeilzeitId:u}=a.Ay.employmentType;var m=r(44286);let h=[{key:"workLocations",label:"Arbeitsort",skip:(e,t,r)=>(!e.jobLocations||Array.isArray(e.jobLocations)&&e.jobLocations.length<=0)&&!e.jobIsBundesweit&&!e.jobIsRemoteOnly,processMatching:(e,t,r)=>{if(r.jobIsBundesweit)return!0;if(Array.isArray(null==e?void 0:e.preferredLocations))if(0===e.preferredLocations.length)return!0;else{if((e=>Array.isArray(null==e?void 0:e.workLocationTypes)&&e.workLocationTypes.some(e=>e.id===a.Bt))(e)&&r.jobIsRemoteOnly||!Array.isArray(r.jobLocations)||0===r.jobLocations.length)return!0;for(let t of e.preferredLocations)for(let e of r.jobLocations)if(o(t,e))return!0}return!1}}
1,{key:"organisationalForms",label:"Organisationsform",skip:e=>!e.jobOrganisationalFormId,processMatching:(e,t,r)=>{var n;return!!(null==e||null==(n=e.organisationalForms)?void 0:n.find(e=>parseInt(e.id)===parseInt(r.jobOrganisationalFormId)))}},{key:"activities",label:"T\xe4tigkeit",skip:e=>!e.jobActivityIds||Array.isArray(e.jobActivityIds)&&0===e.jobActivityIds.length,processMatching:(e,t,r)=>!!e.occupations.find(e=>{var t;return null==(t=r.jobActivityIds)?void 0:t.includes(parseInt(e.id))})},{key:"fieldOfLaws",label:"Rechtsgebiet",skip:e=>!e.jobFieldOfLawIds||Array.isArray(e.jobFieldOfLawIds)&&0===e.jobFieldOfLawIds.length,processMatching:(e,t,r)=>!!e.fieldOfLaws.find(e=>{var t;return null==(t=r.jobFieldOfLawIds)?void 0:t.includes(parseInt(e.id))})},{key:"employmentTypes",label:"Anstellungsart",skip:e=>!e.jobEmploymentTypeIds||Array.isArray(e.jobEmploymentTypeIds)&&0===e.jobEmploymentTypeIds.length,processMatching:(e,t,r)=>{let n=null==e?void 0:e.employmentType;if(!n)return!1;let i="object"==typeof n?n.id:null;return!!i&&(e=>{switch(e){case c:return[c,u];case d:return[d,u];case u:return[c,d,u];default:return[e]}})(i).some(e=>r.jobEmploymentTypeIds.includes(e))}},{key:"degree",label:"Abschluss",skip:e=>!e.jobDegreeIds||Array.isArray(e.jobDegreeIds)&&0===e.jobDegreeIds.length,processMatching:(e,t,r)=>{var n;let i=null==(n=t.degrees[null==e?void 0:e.degree])?void 0:n.jobCareerlevelMappingIDs;if(i&&Array.isArray(i)){for(let e of i)if(r.jobDegreeIds.includes(parseInt(e)))return!0}return!1}},{key:"salary",label:"Gehaltsvorstellung",skip:(e,t)=>{var r,n;return!e.jobSalaryConfig||!(null==(r=e.jobSalaryConfig)?void 0:r.salaryYear)&&!(null==(n=e.jobSalaryConfig)?void 0:n.salaryDay)},processMatching:(e,t,r)=>{let n=r.jobSalaryConfig;if(n&&Array.isArray(null==e?void 0:e.activeSalaryTypes)&&(null==e?void 0:e.activeSalaryTypes.length)>0){let t=!1;for(let r of null==e?void 0:e.activeSalaryTypes){let i="salary".concat(m.A.capitalizeFirstLetter(r),"Min"),l="salary".concat(m.A.capitalizeFirstLetter(r));if(!t&&(null==e?void 0:e[i])>0&&(t=!0),(n[l]||0)>=(null==e?void 0:e[i]))return!0}if(!t)return!0}return!1}},{key:"scorePoints",label:"Mindestpunktzahl Staatsexamen",skip:(e,t,r)=>{var n,l,a;let s=(null==(n=r.degrees[i.Me.DEGREE.TRAINEE])?void 0:n.jobCareerlevelMappingIDs)||[],o=[...(null==(l=r.degrees[i.Me.DEGREE.JURIST])?void 0:l.jobCareerlevelMappingIDs)||[],...s,...(null==(a=r.degrees[i.Me.DEGREE.VOLLJURIST])?void 0:a.jobCareerlevelMappingIDs)||[]];return!e.jobDegreeIds.find(e=>o.includes(parseInt(e)))||!e.jobScoreMinPoints||!(null==t?void 0:t.score1)},processMatching:(e,t,r)=>{var n,l,a;let s=(null==(n=t.degrees[i.Me.DEGREE.TRAINEE])?void 0:n.jobCareerlevelMappingIDs)||[],o=(null==(l=t.degrees[i.Me.DEGREE.JURIST])?void 0:l.jobCareerlevelMappingIDs)||[],c=(null==(a=t.degrees[i.Me.DEGREE.VOLLJURIST])?void 0:a.jobCareerlevelMappingIDs)||[],d=r.jobScoreMinPoints,u=parseFloat(null==e?void 0:e.score1);if(r.jobDegreeIds.find(e=>[...o,...s].includes(e))&&d<=u)return!0;if(u&&r.jobDegreeIds.find(e=>c.includes(e))){let t=parseFloat(null==e?void 0:e.score2);if(t)return 2*d<=u+t}return!1}},{key:"scoreGrade",label:"Mindestnote Ausbildung",skip:(e,t,r)=>{var n;let l=i.N9.flatMap(e=>{var t;return(null==(t=r.degrees[e])?void 0:t.jobCareerlevelMappingIDs)||[]}),a=(null==(n=r.degrees[null==t?void 0:t.degree])?void 0:n.jobCareerlevelMappingIDs)||[];return!l.some(e=>a.includes(e))||!e.jobDegreeIds.find(e=>l.includes(parseInt(e)))||!e.jobScoreMinGrade||!(null==t?void 0:t.scoreGrade)},processMatching:(e,t,r)=>r.jobScoreMinGrade>=(null==e?void 0:e.scoreGrade)},{key:"workExperience",label:(e,t)=>{var r;return(null==t||null==(r=t.workExperiences)?void 0:r.find(e=>e.occupation.considerAsWorkExperience))?"Berufserfahrung":"F\xfcr Berufseinsteiger"},skip:(e,t,r)=>{var n;let l=a.Ay.degree.fully_qualified_lawyer_with_work_workexperience,s=null==t||null==(n=t.workExperiences)?void 0:n.find(e=>e.occupation.considerAsWorkExperience);return!e.jobDegreeIds||Array.isArray(e.jobDegreeIds)&&0===e.jobDegreeIds.length||s&&!e.jobDegreeIds.includes(l)||(null==t?void 0:t.degree)!==i.Me.DEGREE.VOLLJURIST},processMatching:(e,t,r)=>{let n=a.Ay.degree.fully_qualified_lawyer_without_work_workexperience;return!!r.jobDegreeIds.includes(n)||(null==e?void 0:e.workExperiences.find(e=>e.occupation.considerAsWorkExperience))}}],p=(e,t,r,i)=>{let a=0,s="",o=!0,c=0,d=0;if((0,l.hf)("matching",t)){let l=((e,t,r)=>{var n;let i={matchCount:0,matchFromCount:0,noneMatchConfigs:[],matchedConfigs:[]},l=(null==(n=t.degrees[null==e?void 0:e.degree])?void 0:n.jobCareerlevelMappingIDs)||[];return(null==e?void 0:e.id)&&r.jobDegreeIds.find(e=>l.includes(e))?h.reduce((n,i)=>i.skip&&i.skip(r,e,t)?n:("function"==typeof i.label&&(i.label=i.label(r,e)),i.processMatching(e,t,r))?{...n,matchCount:n.matchCount+1,matchFromCount:n.matchFromCount+1,matchedConfigs:[...n.matchedConfigs,i]}:{...n,matchFromCount:n.matchFromCount+1,noneMatchConfigs:[...n.noneMatchConfigs,i]},i):{...i,skipped:!0}})(t,r,{jobId:e,...i});l.skipped||(o=!1,c=l.matchCount,d=l.matchFromCount,a=Math.round(l.matchCount/l.matchFromCount*100),s=((e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"text-small ce--space-before-none ce--space-after-none",children:["Der Score basiert auf folgenden \xdcbereinstimmungen: ",(0,n.jsx)("br",{})]}),(0,n.jsxs)("ul",{children:[e.matchedConfigs.map(e=>(0,n.jsx)("li",{className:"text-small",children:e.label},"matchResult-".concat(t,"-").concat(e.key))),e.noneMatchConfigs.map(e=>(0,n.jsx)("li",{className:"text-small",children:(0,n.jsx)("span",{className:"color-red text-line-through",children:e.label})},"matchResult-".concat(t,"-").concat(e.key)))]})]}))(l,e))}return{matchPercent:a,matchTooltipText:s,hideMatchingScore:o,matchCount:c,matchFromCount:d}}},20889:e=>{e.exports={subheader:"Subheader_subheader__pjW45",headerItem:"Subheader_headerItem__Wb9KQ",icon:"Subheader_icon__qYoB_",label:"Subheader_label__i9p_f"}},21145:(e,t,r)=>{"use strict";r.d(t,{A:()=>rv});
1var n=r(95155),i=r(35153),l=r(95202),a=r(26089),s=r(47921),o=r(58248),c=r(42121),d=r(92032),u=r(83148),m=r(28131),h=r(72892),p=r(19955),g=r(88057),x=r(85989),f=r(33051),b=r(41574),v=r(98638),j=r(75416),y=r(59300),_=r(79488),A=r(96199),w=r(12115),S=r(22191),k=r(13611),C=r(68756),I=r(5919),N=r(44904),E=r(41823),D=r(88427),F=r(22041),M=r(80553),L=r(81404),T=r(22544),z=r(35068);let O=(0,w.createContext)(null),P={NONE:"NONE",FETCHING:"FETCHING",JOB_APPLY_SEND:"JOB_APPLY_SEND",JOB_APPLY_ERROR:"JOB_APPLY_ERROR"},B=e=>{var t;let r,{job:i,children:l}=e,{id:a}=i,s=(null==(t=i.locations)?void 0:t.filter(e=>e.city).map(e=>({id:e.id,label:"".concat((0,N.iw)([e]))})))||[],o=(r=s.length>1,z.object().shape({availableFrom:z.mixed().required("Pflichtfeld").test("is-valid-date","Ung\xfcltiges Datum",e=>!!e&&!isNaN((e instanceof Date?e:new Date(e)).getTime())).test("is-not-past","Datum darf nicht in der Vergangenheit liegen",e=>{if(!e)return!0;let t=e instanceof Date?e:new Date(e);if(isNaN(t.getTime()))return!0;let r=new Date;return r.setHours(0,0,0,0),t>=r}),locations:r?z.array().min(1,"Pflichtfeld"):z.array(),coverLetter:z.object().nullable().shape({source:z.string().required("Pflichtfeld"),title:z.string().required("Pflichtfeld")}),message:z.string().max(400,"Es d\xfcrfen max. 400 Zeichen angegeben werden.")}).required()),c=(0,T.mN)({resolver:(0,k.t)(o),defaultValues:{jobUid:a,locations:1===s.length?s:[],availableFrom:"",expectedSalary:"",coverLetter:null,message:"",selectedFileUids:[]}}),{handleSubmit:d}=c,[m,h]=(0,w.useState)(P.NONE),p=d(e=>{h(P.FETCHING);let t=g(e);M.A.fetchJobApply(a,t).then(async e=>{h(P.JOB_APPLY_SEND),setTimeout(()=>{var e,t;(0,u.sx)("job_apply","one_click",F.A.getJobSource(i),a,{employer_id:null==(e=i.employer)?void 0:e.id}),(0,u.sx)("wizard","wizard_application_sent",null,a,{employer_id:null==(t=i.employer)?void 0:t.uid}),(0,C._)("jobApply",{jobUid:a,applyType:"one_click"})},1500)}).catch(e=>{if(h(P.JOB_APPLY_ERROR),e.rawResponse){let t=(0,I.Yl)(e.rawResponse),r=(0,I.a$)(t);if(r)return void(0,E.D)(r,D.O.ALERT)}(0,E.D)("Beim Versenden der Bewerbung ist ein Fehler aufgetreten.",D.O.ALERT)})},e=>{console.log(e)}),g=e=>{var t,r;let n;if(e.availableFrom){let t=e.availableFrom instanceof Date?e.availableFrom:new Date(e.availableFrom);isNaN(t.getTime())||(t.setHours(12,0,0),n=(0,L.A)(t,"yyyy-MM-dd"))}let i=null==(t=e.locations)?void 0:t.map(e=>parseInt(e.id)),l={availableFrom:n,jobLocationIds:(null==i?void 0:i.length)>0?i:void 0,expectedSalary:e.expectedSalary?Number.parseFloat(e.expectedSalary):void 0,message:e.message?e.message:void 0,includedFileIds:(null==(r=e.selectedFileUids)?void 0:r.length)>0?e.selectedFileUids:void 0};if(e.coverLetter&&Object.keys(e.coverLetter).length>0){l.coverLetterBase64=e.coverLetter.source;let t=e.coverLetter.title||"cover-letter";l.coverLetterFilename=t.endsWith(".pdf")?t:"".concat(t,".pdf")}return l};return(0,n.jsx)(O.Provider,{value:{job:i,locations:s,form:c,previewApplication:e=>{var t;e.preventDefault();let r=window.open("","_blank");r.document.write("Loading PDF..."),(0,u.sx)("job_apply_preview",null,null,a,{employer_id:null==(t=i.employer)?void 0:t.id}),(0,C._)("jobApplyPreview",{jobUid:a});let n=g(c.getValues());M.A.fetchJobApplyFile(a,n).then(async e=>{let t=new Blob([await e.blob()],{type:"application/pdf"});r.location.href=URL.createObjectURL(t)})},submitApplication:p,jobApplySendState:m},children:l})};var R=r(86896),W=r(12758),J=r.n(W),G=r(58924),q=r(78336),H=r.n(q);let V=e=>{let{files:t,overrideFileName:r,infoText:i="",noFilesMessage:l="",label:a="",onDeleteFile:s}=e;return!t||Array.isArray(t)&&0===Object.keys(t).length?l?(0,n.jsxs)("div",{children:[a&&(0,n.jsx)("h4",{className:"".concat(H().headline),children:a}),(0,n.jsx)("p",{className:"".concat(H().text),children:l})]}):null:(!Array.isArray(t)&&Object.keys(t).length>0&&(t=[t]),(0,n.jsxs)("div",{children:[a&&(0,n.jsx)("h4",{className:"".concat(H().headline),children:a}),i&&(0,n.jsx)("p",{className:"".concat(H().text," color-gray"),children:i}),(0,n.jsx)("ul",{className:"no-list ".concat(H().fileList),children:t.map(e=>{let t=r||(e=>(null==e?void 0:e.label)?e.label.toLowerCase().endsWith(".pdf")?e.label:"".concat(e.label,".pdf"):null)(e)||e.title||e.originalName;return(0,n.jsxs)("li",{className:H().fileItem,children:[(0,n.jsx)("span",{className:H().fileIcon,"aria-hidden":"true",children:(0,n.jsx)(G.A,{name:"download-thick-bottom",size:"small",otherClass:""})}),(0,n.jsx)("span",{className:H().fileName,title:t,children:t}),s&&e.id&&(0,n.jsx)("button",{type:"button",className:H().deleteButton,onClick:()=>s(e.id),title:"Datei l\xf6schen","aria-label":"Datei l\xf6schen",children:(0,n.jsx)(G.A,{name:"trash-open",size:"small",otherClass:""})})]},"file-".concat(e.id||e.uid||(0,p.xV)(e.title||e.originalName)))})})]}))};V.propTypes={files:J().oneOfType([J().array,J().object]),overrideFileName:J().string,noFilesMessage:J().string,onDeleteFile:J().func};var U=r(77297),Y=r(26279),Z=r(83609),K=r(31089);let X=e=>{let{buttonUploadLabelNew:t,buttonUploadLabelOverride:r,fieldPath:l,accept:a="application/pdf",multiple:s=!1,maxSize:o=null,maxFiles:c=null,classNames:d="",onPreventApiSave:u,onDelete:m,value:g}=e,{user:x,uploadDocuments:f,deleteDocumentById:b,validationErrors:v,pendingSaveFields:j,createPopupMessage:y}=(0,w.useContext)(h.M),[_,A]=(0,w.useState)(""),S=(0,w.useRef)(null);(0,w.useEffect)(()=>{var e,t;A((null==(e=(0,Z.r9)(v,l))?void 0:e.message)||(null==(t=(0,Z.r9)(v,l?"".concat(l,".source"):null))?void 0:t.message)||"")},[v]);let k=async e=>{let t=Array.from(e.target.files);if(t.length>0){let e=o?1024*o*1024:null;if(e){if(t.filter(t=>t.size>e).length>0)return void A("Die Datei entspricht nicht den Vorgaben.");A("")}if(u){let e=[];for(let r of t){let t=await (0,p.YF)(r),n=r.name.replace(/\.[^/.]+$/,"");e.push({source:t,title:n})}s||(e={...e[0]}),u(e)}else f(l,t)}e.target.value=""},C=j.includes(l),I=x?(0,p.MY)(x,"".concat(l)):null,N=(0,p.Po)(I)?t:r;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:d,children:[(0,n.jsx)(K.FormControl,{error:()=>_,overrides:{Caption:{style:()=>({fontSize:"12px",lineHeight:"15.6px"})}},children:(0,n.jsx)(Y.Input,{type:"hidden",overrides:{Root:{style:()=>({display:"none"})}}})}),(0,n.jsxs)(U.ButtonGroup,{overrides:{Root:{style:()=>({justifyContent:"end"})}},children:[(0,n.jsx)(i.A,{isLoading:C,disabled:C,onClick:()=>S.current.click(),layout:"secondary",type:"button",children:N}),(0,n.jsx)("input",{name:l,type:"file",accept:a,multiple:s,disabled:C,style:{display:"none"},ref:S,onChange:k}),(!(0,p.Po)(I)||!(0,p.Po)(g))&&(0,n.jsx)(i.A,{startEnhancer:()=>(0,n.jsx)(G.A,{name:"trash-open",size:"medium"}),disabled:C,onClick:e=>C?null:void y("M\xf6chtest Du die Datei(en) wirklich l\xf6schen?","Achtung!",{onSuccess:()=>
1{if(m)m();else{let e=x?(0,p.MY)(x,"".concat(l)):null;if(s&&Array.isArray(e))for(let t of e)(null==t?void 0:t.id)&&b(l,t.id);else(null==e?void 0:e.id)&&b(l,e.id)}},submitButtonTextOverride:"Jetzt l\xf6schen"})})]}),o&&(0,n.jsxs)("div",{className:"text-right text-small mg-top-2",children:[s&&c?"Maximal ".concat(c," Dateien \xb7 je max. ").concat(o," MB"):"Maximal ".concat(o," MB")," ",(0,n.jsx)("br",{})," M\xf6gliche Formate: .pdf"]})]})})};X.propTypes={buttonUploadLabelNew:J().string,buttonUploadLabelOverride:J().string,fieldPath:J().string,accept:J().string,multiple:J().bool};var Q=r(63950),$=r.n(Q);let ee=()=>{let{user:e}=(0,w.useContext)(h.M);return(0,n.jsxs)("div",{className:"max-content ".concat($().gridScore),children:[(0,n.jsxs)("div",{className:"cell medium-6 large-6 xlarge-4 ".concat(H().fileWrapper),children:[(0,n.jsx)(V,{label:"Lebenslauf",files:(0,p.MY)(e,"vitaFile",void 0),noFilesMessage:"Du hast noch keinen Lebenslauf hochgeladen."}),(0,n.jsx)(X,{fieldPath:"vitaFile",buttonUploadLabelNew:"Datei hochladen",buttonUploadLabelOverride:"Datei aktualisieren",maxSize:5,classNames:"".concat(H().uploadButton)})]}),(0,n.jsxs)("div",{className:"cell medium-6 large-6 xlarge-4 padding-2 ".concat(H().fileWrapper),children:[(0,n.jsx)(V,{label:"Zeugnisse",infoText:"max. 10 Dateien",files:(0,p.MY)(e,"certificateFiles",void 0),noFilesMessage:"Du hast noch keine Zeugnisse hochgeladen."}),(0,n.jsx)(X,{fieldPath:"certificateFiles",buttonUploadLabelNew:"Dateien hochladen",buttonUploadLabelOverride:"Dateien aktualisieren",multiple:!0,classNames:"".concat(H().uploadButton)})]}),(0,n.jsxs)("div",{className:"cell medium-6 large-6 xlarge-4 padding-2 ".concat(H().fileWrapper),children:[(0,n.jsx)(V,{label:"Sonstige Dokumente",infoText:"max. 10 Dateien",files:(0,p.MY)(e,"otherFiles",void 0),noFilesMessage:"Du hast noch keine Dokumente hochgeladen."}),(0,n.jsx)(X,{fieldPath:"otherFiles",buttonUploadLabelNew:"Dateien hochladen",buttonUploadLabelOverride:"Dateien aktualisieren",multiple:!0,classNames:"".concat(H().uploadButton)})]})]})};var et=r(39560),er=r.n(et);let en=e=>{let{title:t,subTitle:r,stepsText:i="",children:l}=e;return(0,n.jsxs)(b.A,{sx:{display:"block",margin:"2.125rem 0",width:"100%"},children:[(0,n.jsxs)(b.A,{sx:{margin:"2.125rem auto",maxWidth:"800px",textAlign:{md:"center"}},children:[i&&(0,n.jsx)(_.A,{variant:"caption",sx:{color:"primary.main"},children:i}),(0,n.jsx)("h4",{className:er().headline,children:t}),(0,n.jsx)("span",{className:er().subheadline,children:r})]}),(0,n.jsx)(b.A,{sx:{display:"flex",justifyContent:"center",marginTop:0,marginBottom:0,width:"100%"},children:l})]})},ei=e=>{let{activeStep:t,allSteps:r,stepsText:i,registerValidators:l,navigationComponent:a}=e,s=rm(r,rc.additionalInfo[0].fields);return(0,w.useEffect)(()=>
1{l("step-".concat(s),[(e,t)=>{let r=rp("vitaFile",e,t);return{ok:r,error:r?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}])},[]),(0,n.jsx)(n.Fragment,{children:t===s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Upload Dokumente",subTitle:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Viele Kanzleien legen gro\xdfen Wert auf eine vollst\xe4ndige Bewerbung. Ein vollst\xe4ndiger Lebenslauf sowie ein aussagekr\xe4ftiges Anschreiben sind zwar keine Pflicht, erh\xf6hen jedoch deutlich die Chancen auf eine positive R\xfcckmeldung."}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{children:"Nutze die Gelegenheit, Dich bestm\xf6glich zu pr\xe4sentieren!"})]}),stepsText:i,children:(0,n.jsx)(ee,{})}),a]})})};var el=r(36039),ea=r(24288),es=r(83693),eo=r(25981),ec=r(56939);let ed=e=>(0,n.jsx)(ec.A,{...e,children:(0,n.jsx)(eo.l,{id:e.name,format:"dd.MM.yyyy",views:["year","month","day"],...e,label:"",sx:{"& .MuiPickersSectionList-root":{padding:"0.3875rem 1rem 0.3875rem 0rem !important"}}})});var eu=r(12981),em=r(99534),eh=r(31190),ep=r(34782);let eg=(e,t,r)=>void 0===t||(null==e?void 0:e[r])===(null==t?void 0:t[r]),ex=e=>{var t;return(0,n.jsx)(ec.A,{...e,children:(0,n.jsx)(em.A,{id:e.name,options:null!=(t=e.options)?t:[],getOptionLabel:e=>{var t;return null!=(t=null==e?void 0:e.label)?t:""},fullWidth:!0,...e,renderInput:t=>(0,n.jsx)(eh.A,{variant:"filled",fullWidth:!0,...t,InputProps:{...t.InputProps,startAdornment:"search"===e.type?(0,n.jsx)(ep.A,{position:"start",sx:{width:"25px"},children:e.loading?(0,n.jsx)(v.A,{size:"20px",color:"inherit"}):(0,n.jsx)(eu.A,{})}):t.InputProps.startAdornment},inputProps:{...t.inputProps,autoComplete:"new-password"},placeholder:"search"!==e.type&&(0,p.Po)(e.value)?"Ausw\xe4hlen...":""})})})};var ef=r(8370),eb=r(91996);let ev=e=>{var t;let{label:r,placeholder:i,helpertext:l,value:a,type:s="text",rows:o=3,maxLength:c,fieldPath:d,onChange:u,onBlur:m,fieldRequirements:h,userData:g,validationErrors:x,asTextArea:f=!1,error:b,errorOnEmptyValue:v=!1,required:j,step:y,min:_,max:A,slotProps:S}=e,[k,C]=(0,w.useState)(!1),I=f?eb.A:ef.A,N={name:d,value:a||"",placeholder:i||"",label:r||"",required:void 0!==j?j:(0,p.CH)(h,d,g),error:b||(null==(t=(0,Z.r9)(x,d))?void 0:t.message)||v&&(0,p.Po)(a),slotProps:S};return N=f?{...N,minRows:o,maxLength:c}:{...N,inputProps:{step:y,min:_,max:A},type:s,autoComplete:"off"},(0,n.jsx)(I,{...N,helpertext:N.error||l,onChange:e=>{C(!0),u(e)},onBlur:e=>{k&&m&&m(e)}})};var ej=r(21756);let ey=()=>{let{job:e,locations:t,form:r}=(0,w.useContext)(O),{control:i}=r,[l]=(0,ej.c6)(),a=e.salaryDay&&!e.salaryYear?"day":"year";return(0,n.jsxs)("div",{className:"max-content ".concat($().gridScore),children:[(0,n.jsxs)("div",{className:"".concat($().gridOneColumn),children:[(0,n.jsx)(T.xI,{control:i,name:"availableFrom",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(ed,{name:"availableFrom",label:"Verf\xfcgbar ab",required:!0,error:null==r?void 0:r.message,helpertext:null==r?void 0:r.message,disablePast:!0,...t})}}),t.length>1&&(0,n.jsx)(T.xI,{control:i,name:"locations",render:e=>{let{field:r,fieldState:{error:i}}=e;return(0,n.jsx)(ex,{required:!0,multiple:!0,name:"locations",label:"Standort",options:t,value:r.value,isOptionEqualToValue:(e,t)=>{var r,n;return void 0===t||(null==e||null==(r=e.id)?void 0:r.toString())===(null==t||null==(n=t.id)?void 0:n.toString())},onChange:(e,t)=>
1r.onChange(t),error:null==i?void 0:i.message,helpertext:(null==i?void 0:i.message)||"Mehrfachauswahl m\xf6glich"})}}),(0,n.jsx)(T.xI,{control:i,name:"expectedSalary",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(ev,{label:"Gehaltswunsch (optional)",helpertext:null==r?void 0:r.message,error:r,type:"number",placeholder:"z.B. 60.000",step:1e3,min:0,slotProps:{input:{endAdornment:(0,n.jsx)(ep.A,{position:"end",children:(0,n.jsxs)(b.A,{sx:a?{display:"flex",alignItems:"center",fontSize:"14px",width:"80px"}:{},children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:(0,n.jsx)("path",{d:"M4 9.42h1.063C5.4 12.323 7.317 14 10.34 14c.622 0 1.167-.068 1.659-.185v-1.3c-.484.119-1.045.17-1.659.17-2.1 0-3.455-1.198-3.775-3.264h4.017v-.928H6.497v-.936q-.002-.165.008-.329h4.078v-.927H6.618c.388-1.898 1.719-2.985 3.723-2.985.614 0 1.175.05 1.659.177V2.194A6.6 6.6 0 0 0 10.341 2c-2.928 0-4.82 1.569-5.244 4.3H4v.928h1.01v1.265H4v.928z"})}),a&&(0,n.jsx)("span",{children:"day"===a?"/ pro Tag":"/ pro Jahr"})]})})}},...t})}})]}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"".concat(H().fileWrapper," ").concat(l({marginTop:"27px"})),children:(0,n.jsx)(T.xI,{control:i,name:"coverLetter",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(V,{label:"Anschreiben (optional)",files:Object.keys(t.value||{}).length>0?[t.value]:[],noFilesMessage:"Du hast noch keine Dokumente hochgeladen."}),(0,n.jsx)(X,{buttonUploadLabelNew:"Dateien hochladen",buttonUploadLabelOverride:"Dateien aktualisieren",classNames:"".concat(H().uploadButton),onPreventApiSave:e=>t.onChange(e),onDelete:()=>t.onChange(null),value:t.value,maxSize:5})]})}})})})]})};var e_=r(44258),eA=r(15239);let ew=()=>{let e=(0,w.useRef)(null);return(0,w.useEffect)(()=>{if(e.current){if(!window.__SMCX_WIDGET_LOADED__&&(window.__SMCX_WIDGET_LOADED__=!0,e.current.querySelectorAll('iframe[src*="surveymonkey"], iframe[id^="smcx"]').forEach(e=>e.remove()),!document.getElementById("smcx-sdk"))){let t=document.createElement("script");t.type="text/javascript",t.async=!0,t.id="smcx-sdk",t.src="https://widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd7m4x6MIGUpmnXQ3ed06AcZNxpArWGo9ugw12EhuWf01.js",window.SMCX=window.SMCX||[],e.current.appendChild(t)}}},[]),(0,n.jsx)("div",{children:(0,n.jsx)("div",{ref:e})})},eS=()=>(0,n.jsxs)(b.A,{sx:{display:"block",position:"relative",width:"100%",textAlign:{xs:"left",md:"center"},padding:{xs:0,md:8},paddingBottom:{xs:4,md:10},paddingTop:{xs:4,md:8},margin:"4rem 0 6rem"},children:[(0,n.jsxs)("div",{className:$().contentSuccess,children:[(0,n.jsxs)("h4",{children:["Gratulation, Du hast Deine Bewerbung",(0,n.jsx)("br",{})," erfolgreich versendet!"]}),(0,n.jsx)("p",{className:"mg-bottom-10",children:"Wir dr\xfccken Dir die Daumen! Weitere Top-Jobs findest Du auf LTO Karriere."}),(0,n.jsx)("div",{className:"mg-bottom-10",children:(0,n.jsx)("a",{href:e_.A.createLinkWithBasepath("/stellenmarkt"),className:"button button--secondary button--center",children:"Zum Stellenmarkt"})}),(0,n.jsx)(b.A,{sx:{border:"3px solid #f3f5f7"},children:(0,n.jsx)(ew,{})})]}),(0,n.jsx)(eA.default,{src:e_.A.createLinkWithBasepath("/static/img/icon_abschluss.svg"),objectFit:"contain",width:298,height:298,alt:"icon abschluss",className:$().iconSuccess})]});var ek=r(42206),eC=r(7291);let eI=e=>{if(!e)return"0 MB";let t=e/1048576;return t<.1?"< 0.1 MB":"".concat(t.toFixed(1)," MB")},eN=e=>{var t,r;return null!=(r=null!=(t=e.id)?t:e.uid)?r:0},eE=e=>{var t,r;return null!=(r=null!=(t=e.sizeInB)?t:e.size)?r:0},eD=e=>{if(e.extension)return e.extension;if(e.mimeType){let t=e.mimeType.split("/").pop();return"vnd.openxmlformats-officedocument.wordprocessingml.document"===t?"docx":t}},eF=e=>{let{showCoverLetter:t=!1}=e,{user:r}=(0,w.useContext)(h.M),{form:i}=(0,w.useContext)(O),{watch:l,setValue:a}=i,s=l("selectedFileUids")||[],o=l("coverLetter"),c=(null==r?void 0:r.vitaFile)||null,d=(null==r?void 0:r.certificateFiles)||[],u=(null==r?void 0:r.otherFiles)||[],m=t&&o&&Object.keys(o).length>0,p=m&&o.source?(e=>Math.floor(3*(e.includes(",")?e.split(",")[1]:e).length/4))(o.source):0,g=(0,w.useMemo)(()=>{let e=[];return c&&e.push(c),d.forEach(t=>e.push(t)),u.forEach(t=>e.push(t)),e},[c,d,u]);(0,w.useEffect)(()=>{let e=i.getValues("selectedFileUids");e&&0!==e.length||a("selectedFileUids",g.map(e=>eN(e)))},[g]);let x=(0,w.useMemo)(()=>g.filter(e=>s.includes(eN(e))).reduce((e,t)=>
1e+eE(t),0)+p,[g,s,p]),f=Math.min(x/0x1400000*100,100),v=x>0x1400000,j=(e,t)=>0===t.length?null:(0,n.jsxs)(b.A,{sx:{marginBottom:"1.25rem"},children:[(0,n.jsx)(b.A,{component:"h4",sx:{margin:"0 0 0.5rem 0",fontSize:"1rem",lineHeight:"25px",fontWeight:700},children:e}),(0,n.jsx)(b.A,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:t.map(e=>(e=>{let t=eN(e),r=s.includes(t);return(0,n.jsxs)(b.A,{onClick:()=>(e=>{let t=i.getValues("selectedFileUids")||[];a("selectedFileUids",t.includes(e)?t.filter(t=>t!==e):[...t,e])})(t),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.625rem 0.875rem",backgroundColor:"#F3F5F7",cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"#ebeef1"}},children:[(0,n.jsx)(eC.A,{sx:{margin:0,flex:1,minWidth:0},control:(0,n.jsx)(ek.A,{checked:r,size:"small",sx:{padding:"4px",marginRight:"0.5rem",color:"#000","&.Mui-checked":{color:"#df1051"}}}),label:(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.9375rem",lineHeight:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",color:r?"#000":"#666"},children:(e=>e.label?e.label.toLowerCase().endsWith(".pdf")?e.label:"".concat(e.label,".pdf"):e.originalName||e.name||"")(e)})}),(0,n.jsxs)(b.A,{component:"span",sx:{display:"flex",alignItems:"center",gap:"0.5rem",whiteSpace:"nowrap",marginLeft:"0.75rem",flexShrink:0},children:[eD(e)&&(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.6875rem",fontWeight:700,textTransform:"uppercase",color:"#555",backgroundColor:"#e0e4e8",padding:"1px 6px",borderRadius:"2px",lineHeight:"18px"},children:eD(e)}),(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.8125rem",color:"#888",width:"4.5rem",textAlign:"right"},children:eI(eE(e))})]})]},t)})(e))})]});return(0,n.jsxs)(b.A,{sx:{width:"100%",maxWidth:600},children:[m&&(0,n.jsxs)(b.A,{sx:{marginBottom:"1.25rem"},children:[(0,n.jsx)(b.A,{component:"h4",sx:{margin:"0 0 0.5rem 0",fontSize:"1rem",lineHeight:"25px",fontWeight:700},children:"Anschreiben"}),(0,n.jsxs)(b.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.625rem 0.875rem",backgroundColor:"#F3F5F7"},children:[(0,n.jsxs)(b.A,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[(0,n.jsx)(ek.A,{checked:!0,disabled:!0,size:"small",sx:{padding:"4px",marginRight:"0.5rem","&.Mui-disabled.Mui-checked":{color:"#df1051"}}}),(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.9375rem",lineHeight:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"#000"},children:o.title||"Anschreiben"})]}),(0,n.jsxs)(b.A,{component:"span",sx:{display:"flex",alignItems:"center",gap:"0.5rem",whiteSpace:"nowrap",marginLeft:"0.75rem",flexShrink:0},children:[(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.6875rem",fontWeight:700,textTransform:"uppercase",color:"#555",backgroundColor:"#e0e4e8",padding:"1px 6px",borderRadius:"2px",lineHeight:"18px"},children:"PDF"}),(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.8125rem",color:"#888",width:"4.5rem",textAlign:"right"},children:eI(p)})]})]})]}),j("Lebenslauf",c?[c]:[]),j("Zeugnisse",d),j("Sonstige Dokumente",u),0===g.length&&!m&&(0,n.jsx)(b.A,{sx:{padding:"1.25rem",backgroundColor:"#F3F5F7",fontSize:"1rem",lineHeight:"25px",color:"#666"},children:"Du hast noch keine Dokumente hochgeladen."}),(0,n.jsxs)(b.A,{sx:{marginTop:"1.5rem",padding:"1rem 1.25rem",backgroundColor:"#F3F5F7"},children:[(0,n.jsxs)(b.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"0.5rem"},children:[(0,n.jsx)(b.A,{component:"span",sx:{fontSize:"0.875rem",fontWeight:700,color:"#000"},children:"Gesamtgr\xf6\xdfe der Anh\xe4nge"}),(0,n.jsxs)(b.A,{component:"span",sx:{fontSize:"0.9375rem",fontWeight:700,color:v?"#d32f2f":"#000"},children:[eI(x)," ",(0,n.jsxs)(b.A,{component:"span",sx:{fontWeight:400,color:"#888"},children:["/ ",20," MB"]})]})]}),(0,n.jsx)(b.A,{sx:{width:"100%",height:"6px",backgroundColor:"#dde1e6",borderRadius:0,overflow:"hidden"},children:(0,n.jsx)(b.A,{sx:{width:"".concat(f,"%"),height:"100%",backgroundColor:v?"#d32f2f":"#df1051",borderRadius:0,transition:"width 0.25s ease, background-color 0.25s ease"}})})]}),v&&(0,n.jsxs)(b.A,{sx:{marginTop:"0.75rem",padding:"0.75rem 1rem",backgroundColor:"#fef2f2",borderLeft:"3px solid #d32f2f",fontSize:"0.875rem",lineHeight:"20px",color:"#b91c1c"},children:["Die ausgew\xe4hlten Dokumente \xfcberschreiten die maximale Anhangsgr\xf6\xdfe von ",20," MB. Bitte deaktiviere einzelne Dokumente."]})]})},eM=()=>{let{form:e}=(0,w.useContext)(O),{control:t}=e;return(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(T.xI,{control:t,name:"message",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(eb.A,{label:"Mitteilung an den Arbeitgeber",helpertext:null==r?void 0:r.message,error:r,rows:3,...t,sx:{width:"100%"}})}})})},eL=e=>{var t;let{job:r,activeStep:l,allSteps:a,stepsText:s,registerValidators:o,registerSkipStep:c,navigationComponent:d,setShowProgressBar:u}=e,{form:{trigger:m,getValues:p},previewApplication:g,submitApplication:x,jobApplySendState:f}=(0,w.useContext)(O),[v,j]=(0,w.useState)(!1),[y,_]=(0,w.useState)(!1),{user:A,mutate:S}=(0,w.useContext)(h.M),k=a.some(e=>"documents"===e.key),C=rm(a,rc.applicationInfo[0].fields),I=rm(a,rc.applicationInfo[1].fields),N=rm(a,rc.applicationInfo[2].fields),E=rm(a,rc.applicationInfo[3].fields),D=e=>t=>{let r=p("selectedFileUids")||[],n=[null==t?void 0:t.vitaFile,...(null==t?void 0:t.certificateFiles)||[],...(null==t?void 0:t.otherFiles)||[]].filter(
1Boolean).filter(e=>{var t;return r.includes(null!=(t=e.id)?t:e.uid)}).reduce((e,t)=>{var r,n;return e+(null!=(n=null!=(r=t.sizeInB)?r:t.size)?n:0)},0);if(e){let e=p("coverLetter");e&&e.source&&(n+=Math.floor(3*(e.source.includes(",")?e.source.split(",")[1]:e.source).length/4))}let i=n<=0x1400000;return{ok:i,error:i?null:"Die ausgew\xe4hlten Dokumente \xfcberschreiten die maximale Anhangsgr\xf6\xdfe von ".concat(20," MB.")}},F=e=>0===[null==e?void 0:e.vitaFile,...(null==e?void 0:e.certificateFiles)||[],...(null==e?void 0:e.otherFiles)||[]].filter(Boolean).length;if((0,w.useEffect)(()=>{c("step-".concat(C),e=>!k||F(e)),c("step-".concat(N),e=>k||F(e)),o("step-".concat(C),[D(!1)]),o("step-".concat(N),[D(!0)]),o("step-".concat(I),[async()=>{let e=await m(["availableFrom","locations"]);return{ok:e,error:e?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}])},[]),(0,w.useEffect)(()=>{l>=I&&S()},[l]),(0,w.useEffect)(()=>{j((0,el.hf)("one_click_apply",A))},[A]),(0,w.useEffect)(()=>{f===P.JOB_APPLY_SEND&&u(!1)},[f]),f===P.JOB_APPLY_SEND)return(0,n.jsx)(eS,{});let M=(null==(t=r.employer)?void 0:t.name)||r.companyname;return(0,n.jsxs)(n.Fragment,{children:[l===C&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Dokumente f\xfcr Deine Bewerbung",subTitle:"W\xe4hle aus, welche Deiner Profildokumente der Bewerbung beigef\xfcgt werden sollen.",stepsText:s,children:(0,n.jsx)(eF,{showCoverLetter:!1})}),d]}),l===N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Dokumente f\xfcr Deine Bewerbung",subTitle:(0,n.jsxs)(n.Fragment,{children:["W\xe4hle hier aus, welche Dokumente Du Deiner Bewerbung hinzuf\xfcgen m\xf6chtest.",(0,n.jsx)("br",{}),"Angezeigt werden alle Dokumente, die Du bereits in Deinem Bewerberprofil gespeichert hast."]}),stepsText:s,children:(0,n.jsx)(eF,{showCoverLetter:!0})}),d]}),l===I&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Angaben zu Verf\xfcgbarkeit und Gehaltsrahmen / Zusatzinfos zur Bewerbung",subTitle:"Es werden zus\xe4tzlich zu Deinem Profil noch weitere Angaben zu Deiner Bewerbung vom Arbeitgeber angefragt. Bitte gib noch folgende zus\xe4tzliche Informationen an.",stepsText:s,children:(0,n.jsx)(ey,{})}),(0,n.jsxs)("div",{className:"max-content mg-top-4 mg-bottom-6",children:[(0,n.jsxs)("p",{className:"text-default",children:[(0,n.jsx)("b",{children:"Hinweis:"}),(0,n.jsx)("br",{}),"Wenn Du Deine Bewerbung abschickst, werden Deine Daten direkt an ",(0,n.jsx)("b",{children:M}),' weitergeleitet und unterliegen den Datenschutzbestimmungen des Unternehmens. Du willst mehr dar\xfcber wissen? Dann wende Dich direkt an das Unternehmen. Indem ich auf "Bewerbung abschicken" klicke, stimme ich den Datenschutzbestimmungen von'," ",(0,n.jsx)("b",{children:M})," zu."]}),(0,n.jsxs)("p",{className:"text-default",children:[(0,n.jsx)("b",{children:"Achtung:"}),(0,n.jsx)("br",{}),"Dokumente mit Schreibschutz werden beim Versenden Deiner Bewerbung als separater Anhang angef\xfcgt. Wir k\xf6nnen sie jedoch aufgrund des Schreibschutzes nicht in Deiner Bewerbungs\xfcbersicht anzeigen."]})]}),d]}),l===E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"M\xf6chtest Du dem Arbeitgeber noch etwas mitteilen?",subTitle:"Erg\xe4nze Deine Bewerbung um relevante Informationen, die bisher keinen Platz fanden.",stepsText:s,children:(0,n.jsx)(eM,{})}),(0,n.jsxs)(b.A,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:2,justifyContent:"end",alignItems:"end"},children:[(0,n.jsx)(b.A,{children:d}),(0,n.jsx)(i.A,{layout:"secondary",onClick:e=>{_(!0),g(e)},disabled:!v||f===P.FETCHING,children:"Bewerbung ansehen"}),y?(0,n.jsx)(i.A,{onClick:()=>x(),disabled:!v||f===P.FETCHING,isLoading:f===P.FETCHING,children:"Bewerbung abschicken"}):(0,n.jsx)(es.A,{placement:"top-start",title:"Bitte pr\xfcfe Deine Bewerbung in der Vorschau, bevor Du sie absendest. Du kannst die Angaben jederzeit in Deinem Profil bearbeiten",children:(0,n.jsx)(ea.A,{sx:{padding:0},children:(0,n.jsx)(i.A,{onClick:()=>null,disabled:!0,isLoading:f===P.FETCHING,children:"Bewerbung abschicken"})})})]})]})]})};var eT=r(19247),ez=r.n(eT);let eO=(0,w.forwardRef)((e,t)=>{let{layout:r="tile",size:i="default",type:l="basic",icon:a,abbreviation:s,label:o,subLabel:c,selected:d,active:u,onClick:m,deletable:h,onDelete:p=()=>null,disabled:g=!1,children:x}=e;return(0,n.jsxs)("div",{className:"".concat(d?"select":"not-select"," ").concat("dropdown"===l?ez().selectItemDropdown:ez().selectItem," ").concat(d&&ez().selectItemSelected," ").concat(!d&&u&&ez().selectItemActive," ").concat(ez()["selectItemLayout_".concat(r)]," ").concat(ez()["selectItemSize_".concat(i)]," ").concat(g?ez().disabled:""," "),ref:t,children:[(0,n.jsx)("div",{className:ez().itemClick,onClick:e=>!g&&m(e)}),(0,n.jsxs)("div",{className:"".concat(ez().itemContent," ").concat("dropdown"===l?ez().itemContentDropdown:""," "),children:["dropdown"===l&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"3",stroke:"currentColor",className:ez().icon,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),"radio"===l&&(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)("svg",{fill:"currentColor",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",className:ez().iconRadio,children:(0,n.jsx)("path",{d:"m16 3c-2.5712 0-5.0846.76244-7.22241 2.1909-2.13784 1.42845-3.80408 3.45878-4.78802 5.8342-.98394 2.3755-1.24138 4.9893-.73977 7.5111.50161 2.5217 1.73973 4.8381 3.55782 6.6562 1.81808 1.8181 4.13448 3.0562 6.65618 3.5578 2.5218.5016 5.1357.2442 7.5111-.7398 2.3754-.9839 4.4058-2.6501 5.8342-4.788 1.4285-2.1378 2.1909-4.6512 2.1909-7.2224-.0066-3.4458-1.3784-6.74855-3.8149-9.18509s-5.7393-3.8083-9.1851-3.81491zm0 24c-2.1756 0-4.3023-.6451-6.11127-1.8538-1.80894-1.2087-3.21884-2.9267-4.0514-4.9367s-1.0504-4.2217-.62596-6.3555 1.47208-4.0938 3.01046-5.63217c1.53838-1.53838 3.49837-2.58603 5.63217-3.01047s4.3455-.2066 6.3555.62597c2.01.83256 3.728 2.24246 4.9367 4.0514 1.2087 1.80897 1.8538 3.93567 1.8538 6.11127-.0033 2.9164-1.1633 5.7123-3.2255 7.7745s-4.8581 3.2222-7.7745 3.2255zm8-11c0 1.5823-.4692 3.129-1.3482 4.4446-.8791 1.3156-2.1285 2.3409-3.5903 2.9464s-3.0704.764-4.6222.4553c-1.5519-.3087-2.9773-1.0706-4.0961-2.1894-1.11887-1.1189-1.88079-2.5443-2.18948-4.0962-.30868-1.5518-.15025-3.1604.45525-4.6222s1.63093-2.7112 2.94643-3.59026c1.3156-.87905 2.8624-1.34824 4.4446-1.34824 2.1207.00331 4.1536.84722 5.6532 2.3468 1.4996 1.4996 2.3435 3.5325 2.3468 5.6532z",fill:"white"})}):(0,n.jsx)("svg",{width:"410",height:"410",viewBox:"0 0 410 410",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ez().iconRadio,children:(0,n.jsx)("circle",{cx:"205",cy:"205",r:"203.5",fill:"white",stroke:"#d9d9d9",strokeWidth:"30"})}),(0,n.jsx)("input",{type:"radio",id:o,name:"selectItem",value:o,checked:d,onChange:e=>!g&&m(e),className:ez().radio})]}),"checkbox"===l&&(0,n.jsx)("input",{type:"checkbox",id:o,name:o,value:o,checked:d,onChange:e=>!g&&m(e),className:ez().checkbox}),o&&(0,n.jsxs)("p",{className:ez().label,children:[(0,n.jsx)(n.Fragment,{children:s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:ez().abbreviation,children:s}),"\xa0","-","\xa0"]})}),o,"\xa0",(0,n.jsx)(n.Fragment,{children:c&&(0,n.jsxs)("span",{className:ez().subLabel,children:["(",c,")"]})})]}),x&&(0,n.jsx)("div",{className:ez().childrenContent,children:x})]})]})});eO.defaultProps={selected:!1,layout:"tile",size:"default",type:"basic",icon:"",active:!1,deletable:!1},eO.propTypes={selected:J().bool,active:J().bool,layout:J().string,type:J().oneOf(["radio","checkbox","dropdown","basic"]),size:J().oneOf(["default","small","modal"]),icon:J().string,abbreviation:J().string,label:J().string.isRequired,subLabel:J().string,onClick:J().func,onDelete:J().func,deletable:J().bool},eO.displayName="SelectItem";var eP=r(40139),eB=r.n(eP);let eR=e=>{var t,r;let{children:i,grid:l=!1,activeContentContainer:a,size:s="default",type:o="default",reduceSizeIfMoreItemsThen:c,errorMessage:u,onItemAdd:m,showMoreText:h,center:p=!1,maxShowed:g=8}=e,x=(0,d.A)(),[f,b]=(0,w.useState)(!1);if(!i&&!m)return null;i=w.Children.toArray(i);let v=m?i.length+1:i.length;c&&v>c&&(s="small");let j=5;"default"===s?x.width<512?j=2:x.width<656?j=3:x.width<792?j=4:x.width<944?j=5:x.width<1e3||x.width<1024?j=6:x.width<1588&&(j=5):"small"===s&&(j=x.width<552?2:x.width<699?3:
1x.width<840?4:x.width<1024?5:x.width<1048?3:x.width<1348?4:x.width<1565?5:6);let y=i.find(e=>{var t;return null==(t=e.props)?void 0:t.active}),_=y&&i.indexOf(y),A=_+(j-_%j);return A>=v&&(A=v),(0,n.jsxs)("div",{className:"".concat(eB().selectItemGroup," ").concat("dropdown"===o?eB().selectItemGroupDropdown:""," ").concat(eB()["selectItemGroupSize_".concat(s)]," ").concat(p?eB().center:""," ").concat(j?"itemsPerRow_".concat(j):""),children:[(0,n.jsx)("div",{className:"".concat(eB().items," ").concat(l&&eB().grid),children:i&&w.Children.map(i,(e,t)=>((0,w.isValidElement)(e)&&(e=(0,w.cloneElement)(e,{size:s})),(0,n.jsxs)("div",{className:"selectItemGroup-".concat(t," ").concat(!f&&t>g-1?"hide":"block"),children:[e,a&&t+1===A&&(0,n.jsxs)("div",{className:"".concat(eB().itemContainer," ").concat(eB().itemContainerOpened),children:[(0,n.jsx)("div",{className:"".concat(eB().arrow," ").concat(eB()["arrowFor".concat(_%j)])}),a]})]},"selectItemGroup".concat(t))))}),i.length>g-1&&(null==(r=i[0])||null==(t=r.props)?void 0:t.type)==="dropdown"&&(0,n.jsx)("div",{className:"grid-items-left mg-top-6",children:(0,n.jsx)("button",{className:"button button--hollow button--hollow-light button--center ",type:"button",onClick:e=>b(e=>!e),children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"icon icon-medium mg-right-2",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"})}),(0,n.jsxs)("span",{children:["Weniger ",h]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"3",stroke:"currentColor",className:"icon icon-medium mg-right-2",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),(0,n.jsxs)("span",{children:["Weitere ",h]})]})})}),u&&(0,n.jsx)("div",{className:eB().errorMessage,children:u.text||u})]})};eR.defaultProps={children:null,activeContentContainer:null,size:"default",size:"default",errorMessage:null,showMoreText:""},eR.propTypes={children:J().oneOfType([J().arrayOf(J().node),J().node]),activeContentContainer:J().node,errorMessage:J().string,size:J().oneOf(["default","small","modal"]),type:J().oneOf(["default","dropdown","radio","checkbox"]),reduceSizeIfMoreItemsThen:J().number,grid:J().boolean,showMoreText:J().string};var eW=r(62995);let{vollzeitId:eJ,teilzeitId:eG,vollzeitOrTeilzeitId:eq}=m.Ay.employmentType,eH=e=>{var t,r;let{stepIndex:i,registerValidators:l,registerRequests:a}=e,s="employmentType",{user:o,attributes:{employmentTypes:c},updateUserdataProps:d}=null!=(r=(0,w.useContext)(h.M))?r:{},u=null==c?void 0:c.find(e=>e.id===eJ),m=null==c?void 0:c.find(e=>e.id===eG),p=null==c?void 0:c.find(e=>e.id===eq),g=null==o?void 0:o[s],x=g&&"object"==typeof g?g.id:null==c||null==(t=c.find(e=>e["@id"]===g))?void 0:t.id,[f,b]=(0,w.useState)(x===eJ||x===eq),[v,j]=(0,w.useState)(x===eG||x===eq),y=null;return f&&v?y=p:f?y=u:v&&(y=m),(0,w.useEffect)(()=>
1{l("step-".concat(i),[(e,t)=>{let r=rp(s,{[s]:y?y["@id"]:null},t);return{ok:r,error:r?null:"Bitte w\xe4hle ein Arbeitszeitmodell aus."}}]),a("step-".concat(i),[async()=>{try{return await d([{propertyPath:s,value:y?y["@id"]:null}],{preventApiSave:!(null==o?void 0:o.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[f,v]),(0,n.jsx)(eW.A,{sx:{width:"100%"},children:(0,n.jsxs)(eR,{grid:!0,children:[u&&(0,n.jsx)(eO,{type:"checkbox",label:u.label,selected:f,onClick:()=>b(e=>!e)},"select-employment-type-".concat(u.id)),m&&(0,n.jsx)(eO,{type:"checkbox",label:m.label,selected:v,onClick:()=>j(e=>!e)},"select-employment-type-".concat(m.id))]})})},eV=e=>{var t;let{stepIndex:r,registerValidators:i,registerRequests:l}=e,a="fieldOfLaws",{user:s,attributes:{fieldOfLaws:o},updateUserdataProps:c}=null!=(t=(0,w.useContext)(h.M))?t:{},{isMobile:u}=(0,d.A)(),[m,p]=(0,w.useState)((null==s?void 0:s[a])||[]),[g,x]=(0,w.useState)(""),f=(0,w.useMemo)(()=>g?(o||[]).filter(e=>e.label.toLowerCase().includes(g.toLowerCase())):o||[],[o,g]),v=(0,w.useMemo)(()=>new Set(null==m?void 0:m.map(e=>e.id)),[m]);return(0,w.useEffect)(()=>{i("step-".concat(r),[(e,t)=>{let r=rp(a,{[a]:m},t);return{ok:r,error:r?null:"Bitte w\xe4hle mindestens ein Rechtsgebiet aus."}}]),l("step-".concat(r),[async()=>{try{return await c([{propertyPath:a,value:m}],{preventApiSave:!(null==s?void 0:s.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[m]),(0,n.jsxs)(b.A,{sx:{width:"100%"},children:[(0,n.jsx)(eh.A,{variant:"filled",fullWidth:!0,value:g,onChange:e=>x(e.target.value||""),sx:{"& .MuiInputBase-root":{padding:"0.3875rem 1rem"}},slotProps:{input:{startAdornment:(0,n.jsx)(ep.A,{position:"start",children:(0,n.jsx)(eu.A,{})})}}}),(0,n.jsx)(_.A,{variant:"body2",sx:{fontSize:"0.875rem",fontWeight:"400",lineHeight:"15px",color:"rgba(0, 0, 0, 0.7)",margin:"1.625rem 0 0.625rem 0"},children:"Mehrere Antworten m\xf6glich"}),(0,n.jsx)(eR,{size:"modal",type:"dropdown",center:!0,maxShowed:u?5:10,showMoreText:"Rechtsgebiete",children:f.map(e=>{let t=v.has(e.id);return(0,n.jsx)(eO,{type:"dropdown",layout:"tile",abbreviation:e.abbreviation,onClick:()=>((e,t)=>{p(r=>{let n=Array.isArray(r)?r:[];return t?n.some(t=>t.id===e.id)?n:[...n,e]:n.filter(t=>t.id!==e.id)})})(e,!t),label:e.label,selected:t},"select-field-of-law-".concat(e.id))})})]})},eU=e=>{var t;let{stepIndex:r,registerValidators:i,registerRequests:l}=e,a="occupations",{user:s,attributes:{occupations:o},updateUserdataProps:c}=null!=(t=(0,w.useContext)(h.M))?t:{},[d,u]=(0,w.useState)((null==s?void 0:s[a])||[]),m=(0,w.useMemo)(()=>(o||[]).filter(e=>(e.degrees||[]).includes((null==s?void 0:s.degree)||"")),[o,null==s?void 0:s.degree]),p=(0,w.useMemo)(()=>new Set(null==d?void 0:d.map(e=>e.id)),[d]);return(0,w.useEffect)(()=>{i("step-".concat(r),[(e,t)=>{let r=rp(a,{[a]:d},t);return{ok:r,error:r?null:"Bitte w\xe4hle mindestens eine T\xe4tigkeit aus."}}]),l("step-".concat(r),[async()=>{try{return await c([{propertyPath:a,value:d}],{preventApiSave:!(null==s?void 0:s.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[d]),(0,n.jsxs)(eW.A,{sx:{width:"100%"},children:[(0,n.jsx)(_.A,{variant:"body2",sx:{fontSize:"0.875rem",fontWeight:"400",lineHeight:"15px",color:"rgba(0, 0, 0, 0.7)",margin:"0 0 0.625rem 0"},children:"Mehrere Antworten m\xf6glich"}),(0,n.jsx)(eR,{size:"modal",type:"dropdown",center:!0,maxShowed:15,showMoreText:"T\xe4tigkeiten",children:m.map(e=>{let t=p.has(e.id);return(0,n.jsx)(eO,{type:"dropdown",layout:"tile",abbreviation:e.abbreviation,label:e.label,selected:t,onClick:()=>((e,t)=>{u(r=>{let n=Array.isArray(r)?r:[];return t?n.some(t=>t.id===e.id)?n:[...n,e]:n.filter(t=>t.id!==e.id)})})(e,!t)},"select-activity-".concat(e.id))})})]})},eY=e=>{var t;let{stepIndex:r,registerValidators:i,registerRequests:l}=e,a="organisationalForms",{user:s,attributes:{organisationalForms:o},updateUserdataProps:c}=null!=(t=(0,w.useContext)(h.M))?t:{},[d,u]=(0,w.useState)((null==s?void 0:s[a])||[]),m=(0,w.useMemo)(()=>new Set(null==d?void 0:d.map(e=>e.id)),[d]);return(0,w.useEffect)(()=>{i("step-".concat(r),[(e,t)=>{let r=rp(a,{[a]:d},t);return{ok:r,error:r?null:"Bitte w\xe4hle mindestens eine Arbeitgeberart aus."}}]),l("step-".concat(r),[async()=>{try{return await c([{propertyPath:a,value:d}],{preventApiSave:!(null==s?void 0:s.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[d]),(0,n.jsx)(eW.A,{sx:{width:"100%"},children:(0,n.jsx)(eR,{size:"modal",center:!0,grid:!0,children:null==o?void 0:o.map(e=>{let t=m.has(e.id);return(0,n.jsx)(eO,{type:"checkbox",layout:"tile",label:e.label,selected:t,onClick:()=>((e,t)=>{u(r=>{let n=Array.isArray(r)?r:[];return t?n.some(t=>t.id===e.id)?n:[...n,e]:n.filter(t=>t.id!==e.id)})})(e,!t)},"select-organisational-form-".concat(e.id))})})})};var eZ=r(45549);let eK=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{passErrors:!0},[l,a]=(0,w.useState)(e),[s,o]=(0,w.useState)();(0,w.useEffect)(()=>{a(e)},[e]);let c=e=>{e instanceof eZ.$&&a((0,p.MY)(e.userDataBeforeChange,r))};return[l,function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a(e),s&&clearTimeout(s),l?t(r,e,i).catch(c):o(setTimeout(()=>
1{t(r,e,i).catch(c)},1e3*n))}]};var eX=r(74577);let eQ=()=>{var e,t,r;let[i,l]=(0,w.useState)(0),a="salaryDay",{user:s,updateUserdataProp:o,attributes:{staticAttributes:{salaryDay:c}}}=(0,w.useContext)(h.M),[,d]=eK(null==s?void 0:s[a],o,a,1);(0,w.useEffect)(()=>{if(null==s?void 0:s.salaryDay){let e=c.findIndex(e=>e.id===s.salaryDay);l(e>=0?e+1:0)}else l(0)},[null==s?void 0:s.salaryDay,c]);let u=null==(r=c[i-1])||null==(t=r.label)||null==(e=t.split("-"))?void 0:e[0];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.A,{children:(0,n.jsx)(eX.Ay,{value:i,onChange:(e,t)=>{if(l(t),t>0){var r;d(null==(r=c[t-1])?void 0:r.id)}else d("")},step:1,marks:!0,min:0,max:c.length,valueLabelDisplay:"off",sx:{'& .MuiSlider-mark[data-index="0"]':{transform:"translate(1px, -50%)"},['& .MuiSlider-mark[data-index="'.concat(c.length,'"]')]:{transform:"translate(-10px, -50%)"}}})}),(0,n.jsx)(b.A,{sx:{backgroundColor:"#F3F5F7",padding:"5.5px 8px",textAlign:"center",width:"100%"},children:u?"".concat(u," ⬠brutto"):"k. A"}),(0,n.jsx)(_.A,{variant:"body2",marginTop:"0.625rem",sx:{fontSize:"0.75rem",fontWeight:"400",lineHeight:"15.6px",color:"rgba(0, 0, 0, 0.7)"},children:"Mind. Gehalt pro Tag"})]})},e$=()=>{var e,t,r;let[i,l]=(0,w.useState)(0),a="salaryYear",{user:s,updateUserdataProp:o,attributes:{staticAttributes:{salaryYear:c}}}=(0,w.useContext)(h.M),[,d]=eK(null==s?void 0:s[a],o,a,1);(0,w.useEffect)(()=>{if(null==s?void 0:s.salaryYear){let e=c.findIndex(e=>e.id===s.salaryYear);l(e>=0?e+1:0)}else l(0)},[null==s?void 0:s.salaryYear,c]);let u=null==(r=c[i-1])||null==(t=r.label)||null==(e=t.split("-"))?void 0:e[0];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.A,{children:(0,n.jsx)(eX.Ay,{value:i,onChange:(e,t)=>
1{if(l(t),t>0){var r;d(null==(r=c[t-1])?void 0:r.id)}else d("")},step:1,marks:!0,min:0,max:c.length,valueLabelDisplay:"off",sx:{'& .MuiSlider-mark[data-index="0"]':{transform:"translate(1px, -50%)"},['& .MuiSlider-mark[data-index="'.concat(c.length,'"]')]:{transform:"translate(-10px, -50%)"}}})}),(0,n.jsx)(b.A,{sx:{backgroundColor:"#F3F5F7",padding:"5.5px 8px",textAlign:"center",width:"100%"},children:u?"".concat(u," ⬠brutto"):"k. A"}),(0,n.jsx)(_.A,{variant:"body2",marginTop:"0.625rem",sx:{fontSize:"0.75rem",fontWeight:"400",lineHeight:"15.6px",color:"rgba(0, 0, 0, 0.7)"},children:"Mind. Gehalt pro Jahr"})]})},e0=e=>{var t,r,i,l;let{stepIndex:a,registerValidators:s,registerRequests:o}=e,{user:c,updateUserdataProps:d}=null!=(l=(0,w.useContext)(h.M))?l:{},u=null==c||null==(t=c.occupations)?void 0:t.reduce((e,t)=>(t.salaryType&&!e[t.salaryType].find(e=>e.id===t.id)&&e[t.salaryType].push(t),e),{day:[],year:[]}),[m,g]=(0,w.useState)((null==c||null==(r=c.salaryYear)?void 0:r.length)>0||(null==c||null==(i=c.salaryDay)?void 0:i.length)>0);return(0,w.useEffect)(()=>{var e,t;g((null==c||null==(e=c.salaryYear)?void 0:e.length)>0||(null==c||null==(t=c.salaryDay)?void 0:t.length)>0)},[c]),(0,w.useEffect)(()=>{s("step-".concat(a),[()=>({ok:!0}
1)]),o("step-".concat(a),[async()=>({ok:!0})])},[]),(0,n.jsx)(eW.A,{sx:{width:"100%"},children:(0,n.jsxs)("div",{className:"grid-x grid-margin-x",children:[(0,n.jsxs)("div",{className:"cell medium-6 large-4",children:[(0,n.jsx)("h5",{className:"mg-bottom-5",children:"Jahresgehalt"}),(0,n.jsx)(e$,{})]}),!(0,p.Po)(null==u?void 0:u.day)&&(0,n.jsxs)("div",{className:"cell medium-6 large-4 mg-small-top-10",children:[(0,n.jsx)("h5",{className:"mg-bottom-5",children:"Tagessatz"}),(0,n.jsx)(eQ,{})]}),(0,n.jsx)("div",{className:"cell large-12 ce--space-before-extra-small",children:(0,n.jsx)(eR,{children:(0,n.jsx)(eO,{type:"radio",label:"Ich bin noch nicht festgelegt.",selected:!m,onClick:()=>(()=>{var e,t;m&&((null==c||null==(e=c.salaryYear)?void 0:e.length)>0||(null==c||null==(t=c.salaryDay)?void 0:t.length)>0)&&d([{propertyPath:"salaryYear",value:""},{propertyPath:"salaryDay",value:""}]),g(e=>!e)})()})})})]})})};var e1=r(90518),e2=r(91665),e5=r(41326);r(95409);var e4=r(80831),e3=r(49714),e8=r(56729),e6=r.n(e8);let e7=e=>{let{style:t,className:r}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 ".concat(r),height:20,width:20,style:t,children:[(0,n.jsx)("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z",clipRule:"evenodd"})]})},e9=e=>{let{style:t,className:r}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:20,width:20,style:t,className:r,children:(0,n.jsx)("path",{d:"M11.25 5.337c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.036 1.007-1.875 2.25-1.875S15 2.34 15 3.375c0 .369-.128.713-.349 1.003-.215.283-.401.604-.401.959 0 .332.278.598.61.578 1.91-.114 3.79-.342 5.632-.676a.75.75 0 0 1 .878.645 49.17 49.17 0 0 1 .376 5.452.657.657 0 0 1-.66.664c-.354 0-.675-.186-.958-.401a1.647 1.647 0 0 0-1.003-.349c-1.035 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401.31 0 .557.262.534.571a48.774 48.774 0 0 1-.595 4.845.75.75 0 0 1-.61.61c-1.82.317-3.673.533-5.555.642a.58.58 0 0 1-.611-.581c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.035-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959a.641.641 0 0 1-.658.643 49.118 49.118 0 0 1-4.708-.36.75.75 0 0 1-.645-.878c.293-1.614.504-3.257.629-4.924A.53.53 0 0 0 5.337 15c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.036 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.369 0 .713.128 1.003.349.283.215.604.401.959.401a.656.656 0 0 0 .659-.663 47.703 47.703 0 0 0-.31-4.82.75.75 0 0 1 .83-.832c1.343.155 2.703.254 4.077.294a.64.64 0 0 0 .657-.642Z"})})},te=e=>{let{style:t,className:r}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",style:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-mouse-pointer-click-icon lucide-mouse-pointer-click ".concat(r),children:[(0,n.jsx)("path",{d:"M14 4.1 12 6"}),(0,n.jsx)("path",{d:"m5.1 8-2.9-.8"}),(0,n.jsx)("path",{d:"m6 12-1.9 2"}),(0,n.jsx)("path",{d:"M7.2 2.2 8 5.1"}),(0,n.jsx)("path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"})]})},tt=e=>{let{className:t}=e;return(0,n.jsx)("span",{className:"".concat(e6().featureInfo__item," ").concat(t),children:(0,n.jsx)(e7,{className:"".concat(e6().featureInfo__item_icon)})})},tr=e=>{let{className:t}=e;return(0,n.jsx)("span",{className:"".concat(e6().featureInfo__item," ").concat(t),children:(0,n.jsx)(e9,{className:"".concat(e6().featureInfo__item_icon," ").concat(e6().matching)})})},tn=e=>{let{className:t}=e;return(0,n.jsx)("span",{className:"".concat(e6().featureInfo__item," ").concat(t),children:(0,n.jsx)(te,{className:"".concat(e6().featureInfo__item_icon," ").concat(e6().oneClick)})})},ti=(0,e3.Ay)(e=>{let{className:t,...r}=e;return(0,n.jsx)(es.A,{...r,arrow:!0,classes:{popper:t}})})(e=>{let{theme:t}=e;return{["& .".concat(e4.A.arrow)]:{color:t.palette.common.black},["& .".concat(e4.A.tooltip)]:{backgroundColor:t.palette.common.black,borderRadius:0,fontWeight:"700"}}}),tl=e=>{let{title:t,children:r}=e;return(0,n.jsx)(ti,{placement:"top",title:t,children:r})},ta=(e,t)=>e.some(e=>
1e.name===t&&e.optional),ts=(e,t)=>{switch(e){case"JobAlert":return t?"Diese optionale Angabe erg\xe4nzt Deinen Job Alert":"Diese Angabe ben\xf6tigen wir f\xfcr Deinen Job Alert";case"JobMatch":return t?"Diese optionale Angabe erg\xe4nzt Deinen pers\xf6nlichen Job Matching Score":"Diese Angabe ben\xf6tigen wir f\xfcr Deinen pers\xf6nlichen Job Matching Score";case"OneClick":return t?"Diese optionale Angabe erg\xe4nzt Dein Profil f\xfcr Easy Apply":"Diese Angabe ben\xf6tigen wir f\xfcr Deine Bewerbung mit Easy Apply";default:return""}},to=e=>{let{features:t}=e;if(!t||t.length<=0)return null;let r=t.map(e=>{var t;return"string"==typeof e?{name:e,optional:!1}:{name:e.name,optional:null!=(t=e.optional)&&t}}).filter(e=>!e.optional);return(0,n.jsxs)("span",{className:e6().featureInfo,children:[r.some(e=>"JobAlert"===e.name)&&(0,n.jsx)(tl,{title:ts("JobAlert",ta(r,"JobAlert")),children:(0,n.jsx)(ea.A,{"aria-label":"JobAlert",sx:e=>({padding:0}),children:(0,n.jsx)(tt,{className:e6().jobAlert})})}),r.some(e=>"JobMatch"===e.name)&&(0,n.jsx)(tl,{title:ts("JobMatch",ta(r,"JobMatch")),children:(0,n.jsx)(ea.A,{"aria-label":"JobMatch",sx:e=>({padding:0}),children:(0,n.jsx)(tr,{className:e6().matching})})}),r.some(e=>"OneClick"===e.name)&&(0,n.jsx)(tl,{title:ts("OneClick",ta(r,"OneClick")),children:(0,n.jsx)(ea.A,{"aria-label":"EasyApply",sx:e=>({padding:0}),children:(0,n.jsx)(tn,{className:e6().oneClick})})})]})};var tc=r(86391),td=r.n(tc),tu=r(78945),tm=r.n(tu);function th(){return(0,n.jsxs)("div",{className:"".concat(tm().container," ").concat(td().formSection),"aria-busy":!0,children:[(0,n.jsxs)("div",{className:tm().headerRow,children:[(0,n.jsx)("div",{className:tm().titleShimmer}),(0,n.jsx)("div",{className:tm().editShimmer})]}),(0,n.jsx)("div",{className:tm().options,children:Array.from({length:4}).map((e,t)=>(0,n.jsx)("div",{className:tm().optionShimmer},t))})]})}let tp={jobmatch_feature_basic:"JobAlert",jobmatch_feature_advanced:"JobMatch",jobmatch_feature_expert:"OneClick"},tg={CLEAN:"CLEAN",PENDING:"PENDING",DONE:"DONE"},tx={DEFAULT:"DEFAULT",SUCCESS:"SUCCESS",ERROR:"ERROR"},tf={NONE:"NONE",EDIT:"EDIT",ADD:"ADD"},tb=e=>{let{title:t,subText:r,tooltipText:l,moreInfoText:a,state:s,fieldPaths:o=[],disableStateBar:c=!1,hideHeader:u=!1,showAddButton:m=!1,showEditForm:g=!1,renderEditView:x,renderEditButtonText:f="",renderEditViewAlwaysVisible:b=!1,renderValue:v,renderValueAlwaysVisible:j=!1,onEditButtonClick:y,editButtonDisabled:_=!1,editButtonLabel:A,editMode:S=tf.EDIT,contentClassNames:k="",usedInFeatures:C=[],children:I}=e,{user:N,userIsLoading:E,hideFormSectionStateBar:D,highlightMissingFields:F,fieldRequirements:M,pendingSaveFields:L,updatedFields:T,validationErrors:z}=(0,w.useContext)(h.M),O=o.filter(e=>(0,p.CH)(M,e,N)),P=(()=>{let e=new Set;return o.forEach(t=>{var r,n;(null!=(n=null==M||null==(r=M[t])?void 0:r.featureGroups)?n:[]).forEach(t=>{let r=tp[t];r&&e.add(r)})}),Array.from(e).map(e=>({name:e,optional:!1}))})(),B=new Set(P.map(e=>"string"==typeof e?e:e.name)),R=[...P,...C.filter(e=>!B.has("string"==typeof e?e:e.name))];(0,d.A)(),O.length;let W=O.some(e=>{let t=(0,p.qI)(e,N);return!(0,p._P)(M,e,t)}),J=o.some(e=>(0,p.Po)((0,p.qI)(e,N))),G=o.some(e=>!(0,p.Po)((0,p.MY)(z,e))),q=o.some(e=>T.includes(e)),H=o.reduce((e,t)=>{let r=(0,Z.r9)(z,t);return(0,p.Po)(r)||e.push(r),e},[]),V=tx.DEFAULT;s?V=s:H.length>0||F&&W||G?V=tx.ERROR:J||(V=tx.SUCCESS);let[U,Y]=(0,w.useState)(tg.CLEAN);(0,w.useEffect)(()=>{0===o.reduce((e,t)=>L.includes(t)?e+1:e,0)&&U===tg.PENDING?Y(tg.DONE):o.some(e=>L.includes(e))&&Y(tg.PENDING)},[L]);let[K,X]=(0,w.useState)(!1),[Q,$]=(0,w.useState)(!1),[ee,et]=(0,w.useState)(null),er=K||u;(0,w.useEffect)(()=>{K||($(g),et(null))},[K]),(0,w.useEffect)(()=>{$(g)},[g]);let en=()=>{!_&&(x&&X(!0),y&&y())},ei=S===tf.EDIT&&(x||y),el=S===tf.ADD&&(x||y);return E?(0,n.jsx)(th,{}):(0,n.jsxs)("div",{className:"grid-x grid-padding-x ".concat(td().formSection," ").concat(u?td().formSectionEmbedded:""),"data-includes-error":W,children:[t&&!u&&(0,n.jsxs)("div",{className:"cell large-12 pd-global-0 ".concat(td().headerContainer),children:[(0,n.jsxs)("div",{className:"".concat(td().pendingSaveInfo," ").concat(U===tg.PENDING||q?td().show:""),children:[(0,n.jsx)(e5.A,{size:"40",stroke:"2",speed:"1",color:"#df1051"}),(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),(0,n.jsx)("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),(0,n.jsx)("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})]}),(0,n.jsxs)("h3",{className:"".concat(td().formSection__title),children:[(0,n.jsxs)("span",{children:[t,(0,n.jsx)(to,{features:R})]}),ei?(0,n.jsx)("a",{className:"text-default weight-4 color-black ".concat(td().formSection__edit," ").concat(_&&"isDisabled"),onClick:e=>{e.preventDefault(),!_&&(x&&(X(e=>!e),et(null)),y&&y())},children:K?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Speichern"}),(0,n.jsxs)("svg",{height:"512",viewBox:"0 0 32 32",width:"512",xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",className:"icon icon-default",children:[(0,n.jsx)("path",{d:"m30.71 7.29-6-6a1 1 0 0 0 -.71-.29h-2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2-2v-8h-6a3 3 0 0 0 -3 3v24a3 3 0 0 0 3 3h2v-9a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v9h2a3 3 0 0 0 3-3v-20a1 1 0 0 0 -.29-.71z"}),(0,n.jsx)("path",{d:"m12 1h8v8h-8z"}),(0,n.jsx)("path",{d:"m23 21h-14a1 1 0 0 0 -1 1v9h16v-9a1 1 0 0 0 -1-1z"})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Bearbeiten"}),(0,n.jsx)(e2.A,{})]})}):(0,n.jsx)("button",{type:"button",className:"text-default weight-4 color-black ".concat(td().formSection__edit),onClick:e=>{e.preventDefault,X(e=>!e),et(null)},children:(0,n.jsx)(n.Fragment,{children:K?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Speichern"}),(0,n.jsxs)("svg",{height:"512",viewBox:"0 0 32 32",width:"512",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"icon icon-default",children:[(0,n.jsx)("path",{d:"m30.71 7.29-6-6a1 1 0 0 0 -.71-.29h-2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2-2v-8h-6a3 3 0 0 0 -3 3v24a3 3 0 0 0 3 3h2v-9a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v9h2a3 3 0 0 0 3-3v-20a1 1 0 0 0 -.29-.71z"}),(0,n.jsx)("path",{d:"m12 1h8v8h-8z"}),(0,n.jsx)("path",{d:"m23 21h-14a1 1 0 0 0 -1 1v9h16v-9a1 1 0 0 0 -1-1z"})]})]}):(0,n.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M15 20.625C14.7602 20.625 14.5202 20.5334 14.3372 20.3503L6.83719 12.8503C6.47086 12.484 6.47086 11.8908 6.83719 11.5247C7.20352 11.1586 7.79672 11.1584 8.16281 11.5247L15 18.3619L21.8372 11.5247C22.2035 11.1584 22.7967 11.1584 23.1628 11.5247C23.5289 11.891 23.5291 12.4842 23.1628 12.8503L15.6628 20.3503C15.4798 20.5334 15.2398 20.625 15 20.625ZM30 15C30 6.72914 23.2709 0 15 0C6.72914 0 0 6.72914 0 15C0 23.2709 6.72914 30 15 30C23.2709 30 30 23.2709 30 15ZM28.125 15C28.125 22.2373 22.2373 28.125 15 28.125C7.76273 28.125 1.875 22.2373 1.875 15C1.875 7.76273 7.76273 1.875 15 1.875C22.2373 1.875 28.125 7.76273 28.125 15Z",fill:"black",fillOpacity:"0.5"})})})})]}),(0,n.jsx)("div",{className:td().subHeaderArea,children:r&&(0,n.jsx)("div",{className:"".concat(td().subHeaderAreaContent," ").concat(K?td().subHeaderAreaContent_open:td().subHeaderAreaContent_close),children:(0,n.jsx)("p",{className:td().description,children:r})})})]}),!c&&!D&&(0,n.jsx)("div",{className:"".concat(td().stateBar," ").concat(td()[V.toLowerCase()]," ").concat(er&&td().stateBar_open),children:(0,n.jsx)("div",{className:td().color,children:(0,n.jsxs)("span",{className:"hide ".concat(td().text),children:[(!V||V===tx.DEFAULT)&&"F\xfclle die fehlenden Felder aus",V===tx.ERROR&&"Bitte \xfcberpr\xfcfe die Eingaben"]})})}),v&&(0,n.jsxs)("div",{className:"value ".concat(td().dropdown__value," ").concat(!er||j||u?td().dropdown_open:td().dropdown_close),children:[(0,n.jsx)(n.Fragment,{children:v({value:o.reduce((e,t)=>(e[t]=(0,p.qI)(t,N),e),{}),handleEditOpen:en,sectionIsOpen:er,activeItem:ee,handleOpenForm:e=>{et(e),$(!0)},handleCloseForm:()=>{et(null),$(!1)}})}),(0,n.jsx)(n.Fragment,{children:I&&(0,n.jsx)("div",{className:"".concat(td().dropdown__value," ").concat(K?td().dropdown_close:td().dropdown_open),children:I})})]}),(0,n.jsx)("div",{className:"".concat(td().dropdown__edit," ").concat(er?td().dropdown_open:td().dropdown_close),children:x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:Q?td().formSection__add:void 0,children:[Q&&(0,n.jsx)("h4",{className:"mg-bottom-3",children:ee?"Eintrag bearbeiten":f||"Weitere ".concat(t," hinzuf\xfcgen")}),a&&(0,n.jsx)("p",{className:td().edit_info,children:a}),(Q||b)&&x({item:ee,handleCloseForm:()=>{et(null),$(!1)}}),!Q&&!b&&(0,n.jsx)(i.A,{layout:"hollowForLight",onClick:()=>{et(null),$(!0)},startEnhancer:()=>(0,n.jsx)(e1.A,{}),disabled:L.length>0,children:f||"Eintrag hinzuf\xfcgen"})]}),el&&(0,n.jsx)("div",{className:"grid-items-left",children:(0,n.jsx)(eO,{size:"small",icon:"add",label:A||"Neues Element hinzuf\xfcgen",onClick:()=>en(),disabled:_},"degree-add")})]})})]})};var tv=r(56205),tj=r(82062),ty=r(18444),t_=r(56989),tA=r(60138);let tw=e=>{let{activeItem:t,items:r,rowsConfig:i,previewLabelConfig:l,sortBy:a,sortByDirection:s="ASC",onEntryEdit:o,onEntryDelete:c,showEdit:u=!1,showDelete:m=!0,validationErrors:h={}}=e,[g,x]=(0,w.useState)(!1),{isMobile:f}=(0,d.A)();if(!r||Array.isArray(r)&&0===r.length)return null;a&&r.sort((e,t)=>
1("ASC"===s?e[a]<t[a]:e[a]>t[a])?-1:+("DESC"===s?e[a]>t[a]:e[a]<t[a]));let b=e=>{var t,r;let{i,propName:l,children:a}=e,s=h&&l?(0,p.MY)(h,"".concat(i,".").concat(l)):null;return(0,n.jsxs)(n.Fragment,{children:[a,(null==s||null==(t=s.error)?void 0:t.message)&&(0,n.jsx)(ty.StatefulTooltip,{accessibilityType:"tooltip",content:null==s||null==(r=s.error)?void 0:r.message,placement:ty.PLACEMENT.top,children:(0,n.jsx)(tj.Alert,{overrides:{Svg:{style:()=>({margin:"0 0.5rem 0 0",color:"#cc4b37"})}},size:20})})]})};return f?(0,n.jsxs)(n.Fragment,{children:[r&&r.map((e,t)=>(0,n.jsx)(n.Fragment,{children:u?(0,n.jsxs)("div",{className:"grid-x grid-padding-y ".concat(t>0?"mg-top-4 br-top-2 br-gray pd-top-4":"mg-top-0"," ").concat(t>0?g?"block":"hidden":""),children:[i&&i.map((r,i)=>(0,n.jsxs)("div",{className:"cell small-6",children:[(0,n.jsx)("b",{className:"hide-for-large",children:r.label}),(0,n.jsx)("br",{}),(0,n.jsx)(b,{i:t,propName:r.propName,children:r.text(e)})]},"mobile-column-".concat(e.id,"-").concat(i))),(m&&c||u&&o)&&(0,n.jsx)("div",{className:"cell small-6 small-offset-6",children:(0,n.jsx)("div",{className:"grid-x grid-padding-x grid-padding-y grid-items-right",children:(0,n.jsxs)(tv.A,{variant:"text",children:[u&&o&&(0,n.jsx)(t_.A,{condition:!(0,p.Po)(null==h?void 0:h[t]),wrapper:e=>(0,n.jsx)(tA.A,{icon:"Alert",iconCssOverride:{color:"#cc4b37"},accessibilityType:"tooltip",content:"Dieser Datensatz enth\xe4lt Fehler. Bitte korrigiere diese.",placement:ty.PLACEMENT.top,children:e}),children:(0,n.jsx)(ea.A,{"aria-label":"edit",color:"inherit",disabled:!e.id,onClick:()=>o(e),children:(0,n.jsx)(G.A,{name:"pencil",otherClass:"color-red"})})}),m&&c&&(0,n.jsx)(ea.A,{"aria-label":"delete",color:"inherit",disabled:!e.id,onClick:()=>c(t),children:(0,n.jsx)(G.A,{name:"trash-open",otherClass:"color-red"})})]})})})]},"mobile-table-".concat(t)):(0,n.jsx)("div",{className:"grid-x grid-padding-y grid-padding-x",children:l&&l.map((r,i)=>(0,n.jsxs)("div",{className:"cell small-6",children:[0===t&&(0,n.jsx)("p",{className:"weight-7 mg-bottom-1",children:r.label}),(0,n.jsx)(b,{i:t,propName:r.propName,children:r.text(e)})]},"mobile-preview-item-".concat(i)))},"mobile-preview-list-".concat(t))})),u&&(0,n.jsx)("div",{className:"br-bottom-2 br-gray pd-bottom-6",children:r.length>1&&(0,n.jsx)("button",{type:"button",className:"button button--hollow button--hollow-light button--center",onClick:e=>x(e=>!e),children:g?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"3",stroke:"currentColor",className:"size-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"})}),(0,n.jsx)("span",{children:"Weniger anzeigen"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"3",stroke:"currentColor",className:"size-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),(0,n.jsx)("span",{children:"Mehr anzeigen"})]})})})]}):(0,n.jsx)("div",{className:"grid-x",children:(0,n.jsx)("div",{className:"cell",children:(0,n.jsxs)("table",{className:"stack mg-bottom-0 stripes",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[i&&i.map((e,t)=>(0,n.jsx)("th",{className:"".concat("pd-top-0"),children:e.label},"header-".concat(t))),(m&&c||u&&o)&&(0,n.jsx)("th",{className:"text-right pd-top-0",children:"Aktion"})]})}),(0,n.jsx)("tbody",{children:r&&r.map((e,t)=>(0,n.jsxs)("tr",{className:t%2==0?"":"bg-gray",children:[i&&i.map((r,i)=>(0,n.jsxs)("td",{className:"".concat("pd-top-0"," ").concat(t>0?"pd-top-1 pd-bottom-1":"pd-top-0"," ").concat(r.minWidthClassName||""),children:[(0,n.jsx)("b",{className:"hide-for-large",children:r.label}),(0,n.jsx)("br",{className:"hide-for-large"}),(0,n.jsx)(b,{i:t,propName:r.propName,children:r.text(e)})]},"column-".concat(e.id,"-").concat(i))),(m&&c||u&&o)&&(0,n.jsx)("td",{className:"pd-top-0 pd-bottom-0",children:(0,n.jsxs)("div",{className:"grid-x grid-padding-x grid-padding-y align-right",children:[(0,n.jsx)("div",{className:"cell small-12 hide-for-large",children:(0,n.jsx)("b",{className:"hide-for-large",children:"Aktionen"})}),(0,n.jsxs)(tv.A,{variant:"text",sx:{paddingLeft:"40px",paddingRight:"0"},children:[u&&o&&(0,n.jsx)(ea.A,{"aria-label":"edit",color:"inherit",disabled:!e.id,onClick:()=>o(e),children:(0,n.jsx)(G.A,{name:"pencil",otherClass:"color-red"})}),m&&c&&(0,n.jsx)(ea.A,{"aria-label":"delete",color:"inherit",disabled:!e.id,onClick:()=>c(t),children:(0,n.jsx)(G.A,{name:"trash-open",otherClass:"color-red"})})]})]})})]},"career_entry_".concat(e.id||t)))})]})})})};var tS=r(89512),tk=r(44286),tC=r(34357),tI=r(2904);let tN=(0,tI.Z)(),tE=e=>{let{initialValue:t,onChange:r,required:i=!1,label:l="",excludeCityKeys:a=[],allowNewEntries:s=!1,error:o}=e,[c,d]=(0,w.useState)(t),[u,m]=w.useState(""),[h,p]=w.useState([]),[g,x]=w.useState(!1),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"";let r="".concat(e.commune||"").concat(e.federalState?" (".concat(e.federalState,")"):"");return t&&e.zip?"".concat(e.zip," ").concat(r):r},b=tk.A.isNumeric(u),v=e=>{"string"==typeof e?1===h.length&&h[0].commune===e?(d(h[0]),r&&r({commune:h[0].commune,z
1ip:h[0].zip||"",federalState:h[0].federalState||""})):(d({commune:e}),r&&r({commune:e,zip:"",federalState:""})):e&&e.inputValue?(d({commune:e.inputValue}),r&&r({commune:e.inputValue,zip:"",federalState:""})):e?(d(e),r&&r({commune:e.commune,zip:e.zip||"",federalState:e.federalState||""})):(d(null),r&&r(null))},j=(0,tC.YQ)(async e=>{if(!e||e.length<3)return void p([]);x(!0);try{let t=tk.A.isNumeric(e)?"detailed":"simple",r=await (0,tS.GT)(e,t),n=Array.isArray(null==r?void 0:r["hydra:member"])?r["hydra:member"]:[],i=a.length>0?n.filter(e=>!a.includes("".concat((e.commune||e.city||"").toLowerCase(),"|").concat((e.federalState||"").toLowerCase()))):n;p(i)}catch(e){p([])}finally{x(!1)}},500);return(0,n.jsx)(ex,{required:i,type:"search",name:"field1",label:l,loading:g,options:h,value:c,isOptionEqualToValue:(e,t)=>eg(e,t,"id"),getOptionLabel:e=>f(e,b),filterOptions:(e,t)=>((e,t,r)=>{if(!isNaN(Number(r.inputValue)))return t;let n=tN(t,r);if(!e)return n;let{inputValue:i}=r,l=t.some(e=>e.commune===i);return""===i||l||n.push({inputValue:i,commune:'Hinzuf\xfcgen von "'.concat(i,'"')}),n})(s,e,t),onChange:(e,t)=>
1v(t),onBlur:e=>{let t=e.target.value||"";t!==f(c,b)&&v(t)},onInputChange:(e,t,r)=>{"input"===r&&(m(t),j(t))},noOptionsText:u.length<3?"Bitte mindestens drei Zeichen angeben":"Kein Ergebnis gefunden",error:o,handleHomeEndKeys:!0,autoSelect:s,clearOnBlur:!s,selectOnFocus:s})};var tD=r(64769);let tF=(0,tI.Z)(),tM=e=>{let{value:t,onChange:r,required:i=!1,label:l="",tooltip:a="",error:s}=e,[o,c]=(0,w.useState)([]),[d,u]=(0,w.useState)(!1),m=(0,w.useCallback)((e,t)=>{let r=tF(e,t),{inputValue:n}=t,i=e.some(e=>n===e.name);return""===n||i||r.push({inputValue:n,name:'Hinzuf\xfcgen von "'.concat(n,'"')}),r},[]),h=(0,w.useCallback)(e=>{"string"==typeof e?null==r||r({employer:null,employerName:e}):e&&e.inputValue?null==r||r({employer:null,employerName:e.inputValue}):null==r||r({employer:e,employerName:""})},[r]),p=(0,tC.YQ)(e=>{if(!e||e.length<2)return void c([]);u(!0),fetch(e_.A.createLinkWithBasepath("/api/employerSuggest/".concat(e))).then(e=>{if(!e.ok)throw e;return e.json()}).then(e=>c(e.data&&Array.isArray(e.data)?e.data:[])).finally(()=>{u(!1)})},1e3);return(0,n.jsx)(ex,{required:i,type:"search",name:"field3",label:l,tooltip:a,loading:d,options:o,value:t,isOptionEqualToValue:(e,t)=>eg(e,t,"@id"),getOptionLabel:e=>{var t;return null!=(t=null==e?void 0:e.name)?t:""},filterOptions:m,onChange:(e,t)=>
1{h(t)},onInputChange:(e,t,r)=>{"input"===r&&p(t)},noOptionsText:(null==t?void 0:t.inputValue)?"Kein Ergebnis gefunden":"Bitte w\xe4hlen oder neu eintragen",error:s,autoSelect:!0,clearOnBlur:!1,selectOnFocus:!0,handleHomeEndKeys:!0})};var tL=r(68060);let tT=e=>{if(!e)return;if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e;let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},tz=e=>{if(!e)return e;let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(n)},tO=e=>{let{initialDates:t=[],onDatesSelected:r,showLabel:i,required:l,allowUntilNow:a=!1}=e,[s,o]=(0,w.useState)(()=>t.map(tT)),c=new Date(1930,1,1,0,0,0),[d,u]=(0,w.useState)(Array.isArray(s)&&(s.length>1&&void 0===s[1]||1===s.length)),m=(0,w.useRef)(null),h=(0,w.useRef)(null),p=()=>{o(e=>{let[t,n]=(e=>{let[t,r]=e;return null!==t&&null!==r&&t>r?[r,t]:e})(e);return r&&r(tz(t),tz(n)),[t,n]})},g=e=>t=>{let r=t.relatedTarget;e.current&&r&&e.current.contains(r)||p()};return(0,n.jsxs)(b.A,{sx:{display:"flex",width:"100%",gap:2,flexDirection:{xs:"column",sm:"row"}},children:[(0,n.jsxs)(b.A,{ref:m,onBlur:g(m),sx:{display:"flex",flex:1,flexDirection:"column"},children:[i&&(0,n.jsxs)(tL.A,{htmlFor:name,children:["Zeitraum - Von ",l&&(0,n.jsx)("span",{children:"*"})]}),(0,n.jsx)(eo.l,{value:s[0]||null,onChange:e=>{if(!e)return;let t=tT(e);void 0!==t&&o(e=>[t,e[1]])},onClose:()=>p(),minDate:c,disableFuture:!0,format:"dd.MM.yyyy",views:["year","month","day"]})]}),(0,n.jsxs)(b.A,{ref:h,onBlur:g(h),sx:{display:"flex",flex:1,flexDirection:"column"},children:[i&&(0,n.jsxs)(tL.A,{htmlFor:name,children:["Zeitraum - Bis ",l&&(0,n.jsx)("span",{children:"*"})]}),(0,n.jsx)(eo.l,{disabled:a&&d,value:s[1]||null,onChange:e=>{if(!e)return;let t=tT(e);void 0!==t&&o(e=>[e[0],t])},onClose:()=>{p()},minDate:s[0]||c,disableFuture:!0,format:"dd.MM.yyyy",views:["year","month","day"]}),a&&(0,n.jsx)(eC.A,{label:"Bis heute",control:(0,n.jsx)(ek.A,{checked:d,onChange:e=>{u(e.target.checked),e.target.checked&&o(e=>{let t=[e[0],null];return r&&r(tz(t[0]),null),t})}})})]})]})};tO.propTypes={initialDates:J().arrayOf(J().instanceOf(Date)),onDatesSelected:J().func};var tP=r(88455);let tB=e=>{let{disableClose:t=!1,onSave:r,handleCloseForm:l,saveButtonLabel:a="Speichern"}=e,{attributes:s}=(0,w.useContext)(h.M),[o,c]=(0,w.useState)(e.item||{organisationalForm:null,occupation:null,employer:null,employerName:"",city:null,zip:null,federalState:null,periodStart:null,periodEnd:null}),[d,u]=(0,w.useState)({}),[m,p]=(0,w.useState)(!1),g=async e=>{try{await (0,tP.gv)("workExperiences.0",e,s),u({}),p(!0);let t={...e,employer:e.employer&&"object"==typeof e.employer&&e.employer["@id"]?e.employer["@id"]:void 0,occupation:e.occupation&&"object"==typeof e.occupation&&e.occupation["@id"]?e.occupation["@id"]:void 0,organisationalForm:e.organisationalForm&&"object"==typeof e.organisationalForm&&e.organisationalForm["@id"]?e.organisationalForm["@id"]:void 0};await r(t),l()}catch(r){var t;let e={};await (0,Z.Yg)(r,e),u(null==e||null==(t=e.workExperiences)?void 0:t[0])}p(!1)},x=e=>{var t;return(null==(t=(0,Z.r9)(d,e))?void 0:t.message)||void 0};return(0,n.jsxs)("div",{className:"grid-x grid-padding-x",children:[(0,n.jsx)("div",{className:"cell medium-6 large-4 mg-bottom-3",children:(0,n.jsx)(ex,{required:!0,name:"organisationalForm",label:"Welche Organisationsform?",options:s.organisationalForms,value:o.organisationalForm,isOptionEqualToValue:(e,t)=>eg(e,t,"id"),getOptionLabel:e=>{var t;return null!=(t=null==e?void 0:e.label)?t:""},onChange:(e,t)=>
1{let r;return r=t||null,c(e=>({...e,organisationalForm:r}))},error:x("organisationalForm")})}),(0,n.jsx)("div",{className:"cell medium-6 large-4 mg-bottom-3",children:(0,n.jsx)(ex,{required:!0,name:"activity",label:"Welche T\xe4tigkeit hast Du dort ausgef\xfchrt?",options:s.occupations||[],noOptionsText:o.organisationalForm?"Keine Eintr\xe4ge gefunden":"W\xe4hle zuerst eine Organisationsform aus.",value:o.occupation,isOptionEqualToValue:(e,t)=>eg(e,t,"id"),getOptionLabel:e=>{var t;return null!=(t=null==e?void 0:e.label)?t:""},onChange:(e,t)=>{let r;return r=t||null,c(e=>({...e,occupation:r}))},error:x("occupation")})}),(0,n.jsx)("div",{className:"cell medium-6 large-4 mg-bottom-3",children:(0,n.jsx)(tM,{required:!0,label:"Arbeitgeber",value:o.employerName?{id:o.employerName,name:o.employerName}:o.employer||null,onChange:e=>c(t=>({...t,...e})),error:x("employer")||x("employerName")})}),(0,n.jsx)("div",{className:"cell medium-6 large-4 mg-bottom-3",children:(0,n.jsx)(tE,{required:!0,label:(0,tD.T)("candidateFields.workLocation.geodata.label"),initialValue:o.city?{commune:o.city,zip:o.zip||"",federalState:o.federalState||""}:null,onChange:e=>{c(t=>({...t,city:(null==e?void 0:e.commune)||null,zip:(null==e?void 0:e.zip)||null,federalState:(null==e?void 0:e.federalState)||null}))},error:x("city")})}),(0,n.jsx)("div",{className:"cell medium-12 large-8",children:(0,n.jsx)(ec.A,{required:!0,error:x("periodStart")||x("periodEnd"),children:(0,n.jsx)(tO,{required:!0,initialDates:o.periodStart&&o.periodEnd?[new Date(o.periodStart),new Date(o.periodEnd)]:o.periodStart?[new Date(o.periodStart)]:[],onDatesSelected:(e,t)=>c(r=>({...r,periodStart:e,periodEnd:t})),showLabel:!0,allowUntilNow:!0})})}),(0,n.jsx)("div",{className:"cell large-12 text-right mg-top-6",children:(0,n.jsxs)(tv.A,{sx:{gap:"0.75rem"},children:[t&&(0,n.jsx)(i.A,{layout:"hollowForLight",disabled:m,onClick:()=>l(),children:"Schlie\xdfen"}),(0,n.jsx)(i.A,{disabled:m,onClick:()=>g(o),children:a})]})})]})},tR=function(){var e,t;let{hideHeader:r=!1,saveButtonLabel:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l="workExperiences",{user:a,validationErrors:s,createPopupMessage:o,updateUserdataProp:c,deleteUserdataProp:u}=(0,w.useContext)(h.M),{isMobile:m}=(0,d.A)(),g=null!=(e=null==a?void 0:a[l])?e:[],x=async e=>{try{await c(l,e,{forceArrayToggleOff:!0}),(0,E.D)("Deine \xc4nderungen wurden aktualisiert.",D.O.SUCCESS)}catch(e){throw(0,E.D)("Fehler beim Speichern.",D.O.ALERT),e}},f=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=null==a||null==(t=a[l])?void 0:t[e];o("M\xf6chtest Du diesen Karriereeintrag wirklich l\xf6schen?","Achtung",{onSuccess:async()=>{r();try{await u(l,n.id)}catch(e){(0,E.D)("Fehler beim L\xf6schen.",D.O.ALERT)}},submitButtonTextOverride:"Jetzt l\xf6schen"})},b=(0,p.MY)(s,l)||{},v={label:"Arbeitgeber",propName:"employer",text:e=>{var t;return(null==(t=e.employer)?void 0:t.name)||e.employerName}},j={label:"Stadt",propName:"city",text:e=>e.city},y=(0,w.useMemo)(()=>[v,j],[g]),_=(0,w.useMemo)(()=>[v,{label:"Organisationsform",propName:"organisationalForm",text:e=>{var t;return null==(t=e.organisationalForm)?void 0:t.label}},{label:"T\xe4tigkeit",propName:"occupation",text:e=>{var t;return null==(t=e.occupation)?void 0:t.label}},j,{label:"Von",propName:"periodStart",text:e=>e.periodStart&&new Date(e.periodStart).toLocaleDateString("de-DE",{year:"numeric",month:"short",day:"numeric"}),minWidthClassName:"min-w-date-column"},{label:"Bis",propName:"periodEnd",text:e=>e.periodEnd?new Date(e.periodEnd).toLocaleDateString("de-DE",{year:"numeric",month:"short",day:"numeric"}):"heute",minWidthClassName:"min-w-date-column"}],[g]);return(0,n.jsx)(tb,{hideHeader:r,title:"Berufserfahrung",subText:"Beschreibe Deinen beruflichen Werdegang und gib alle relevanten Stationen an.",fieldPaths:[l],usedInFeatures:[{name:"JobMatch",optional:!0},{name:"OneClick",optional:!0}],renderEditViewAlwaysVisible:0===g.length,editMode:(null!=(t=null==a?void 0:a[l])?t:[]).length?tf.EDIT:tf.NONE,renderEditView:e=>{var t,r;return(0,n.jsx)(tB,{disableClose:g.length>0,onSave:x,saveButtonLabel:i,...e},null!=(r=null==(t=e.item)?void 0:t.id)?r:"new")},renderValue:e=>{let{value:t,sectionIsOpen:r,activeItem:i,handleOpenForm:a,handleCloseForm:s}=e;return(0,n.jsx)(tw,{activeItem:i,items:t[l],sortBy:0===Object.keys(b).length?"periodStart":void 0,sortByDirection:"DESC",previewLabelConfig:y,rowsConfig:_,showEdit:r,showDelete:r,onEntryEdit:a,onEntryDelete:e=>
1f(e,s),validationErrors:b})},renderEditButtonText:"Weitere hinzuf\xfcgen",renderValueAlwaysVisible:!0,showEditForm:0===g.length})},tW=e=>{let{stepIndex:t,registerValidators:r,registerRequests:i}=e;return(0,w.useEffect)(()=>{r("step-".concat(t),[()=>({ok:!0})]),i("step-".concat(t),[async()=>({ok:!0})])},[]),(0,n.jsx)(b.A,{sx:{width:"100%"},children:(0,n.jsx)(tR,{hideHeader:!0,saveButtonLabel:"Hinzuf\xfcgen"})})};var tJ=r(42404);let tG=e=>{var t;let{locations:r,onSave:l,handleCloseForm:a,saveButtonLabel:s="Speichern"}=e,{attributes:o}=(0,w.useContext)(h.M),{isMobile:c,width:u}=(0,d.A)(),m=[10,15,20,30,40,50,75,100].map(e=>({label:"".concat(e," km"),id:e})),[p,g]=(0,w.useState)(e.item||{city:null,zip:null,federalState:null,radius:50}),[x,f]=(0,w.useState)({}),[b,v]=(0,w.useState)(!1),j=async e=>{try{await (0,tP.gv)("preferredLocations.0",e,o),f({}),v(!0),await l(e),a()}catch(r){var t;let e={};await (0,Z.Yg)(r,e),f(null==e||null==(t=e.preferredLocations)?void 0:t[0])}v(!1)},y=e=>{var t;return(null==(t=(0,Z.r9)(x,e))?void 0:t.message)||void 0},_=(null==(t=e.item)?void 0:t.city)?"".concat((e.item.city||"").toLowerCase(),"|").concat((e.item.federalState||"").toLowerCase()):null,A=r.map(e=>(null==e?void 0:e.city)?"".concat((e.city||"").toLowerCase(),"|").concat((e.federalState||"").toLowerCase()):null).filter(e=>e&&e!==_);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"grid-x grid-padding-x",children:[(0,n.jsx)("div",{className:"cell small-12 medium-6 large-4",children:(0,n.jsx)(tE,{required:!0,label:(0,tD.T)("candidateFields.workLocation.geodata.label"),initialValue:p.id?{commune:p.city,zip:p.zip||"",federalState:p.federalState||""}:null,onChange:e=>{g(t=>({...t,city:(null==e?void 0:e.commune)||null,federalState:(null==e?void 0:e.federalState)||null,zip:(null==e?void 0:e.zip)||null}))},error:y("city"),excludeCityKeys:A})}),(0,n.jsx)("div",{className:"cell small-12 medium-6 large-2 ".concat(u&&u<768?"mg-top-3":"mg-top-0"),children:(0,n.jsx)(tJ.A,{required:!0,name:"radius",label:(0,tD.T)("candidateFields.workLocation.radius.label"),options:m,value:p.radius?p.radius:"",onChange:e=>{let t;return t=e.target.value||50,g(e=>({...e,radius:t}))},error:y("radius"),sort:!1})}),(0,n.jsx)("div",{className:"cell small-12 large-6 grid-items-right grid-col grid-items-bottom text-right ".concat(c?"mg-top-6":"mg-top-0"),children:(0,n.jsxs)(tv.A,{sx:{gap:"0.75rem"},children:[0!==r.length&&(0,n.jsx)(i.A,{layout:"hollowForLight",disabled:b,onClick:()=>a(),children:"Schlie\xdfen"}),(0,n.jsx)(i.A,{disabled:b,onClick:()=>j(p),children:s})]})})]})})},tq=function(){var e;let{hideHeader:t=!1,saveButtonLabel:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i="preferredLocations",{user:l,updateUserdataProp:a,deleteUserdataProp:s,validationErrors:o,createPopupMessage:c,pendingSaveFields:d}=(0,w.useContext)(h.M),u="workLocationTypes",g=null!=(e=null==l?void 0:l[i])?e:[],x=e=>"string"==typeof e?e===m.Al:(null==e?void 0:e["@id"])===m.Al,f=((null==l?void 0:l[u])||[]).some(x),b=async e=>{try{await a(i,e,{forceArrayToggleOff:!0}),(0,E.D)("Deine \xc4nderungen wurden aktualisiert.",D.O.SUCCESS)}catch(e){throw(0,E.D)("Fehler beim Speichern.",D.O.ALERT),e}},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=g[e];c("M\xf6chtest Du diesen Arbeitsort wirklich l\xf6schen?","Achtung",{onSuccess:async()=>{t();try{await s(i,r.id)}catch(e){(0,E.D)("Fehler beim L\xf6schen.",D.O.ALERT)}},submitButtonTextOverride:"Jetzt l\xf6schen"})},j=async e=>{try{e?await a(u,[...(null==l?void 0:l[u])||[],m.Al]):await a(u,((null==l?void 0:l[u])||[]).filter(e=>!x(e)))}catch(e){(0,E.D)("Fehler beim Speichern.",D.O.ALERT)}},y=(0,p.MY)(o,i)||{};return(0,n.jsx)(tb,{hideHeader:t,title:"Arbeitsort",subText:"Du kannst mehrere Standorte festlegen, an denen Du arbeiten m\xf6chtest. M\xf6chtest Du ausschlie\xdflich remote arbeiten, dann w\xe4hle bitte diese Option aus.",renderEditViewAlwaysVisible:0===g.length,fieldPaths:[i,u],usedInFeatures:[{name:"JobAlert",optional:!0},{name:"JobMatch",optional:!0},{name:"OneClick",optional:!0}],editMode:((null==l?void 0:l[i])||[]).length?tf.EDIT:tf.NONE,renderEditView:e=>{var t,i;return(0,n.jsx)(tG,{locations:g,onSave:b,saveButtonLabel:r,...e},null!=(i=null==(t=e.item)?void 0:t.id)?i:"new")},renderValue:e=>{var r;let{sectionIsOpen:a,activeItem:s,handleOpenForm:o,handleCloseForm:c}=e;return a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"grid-x",children:(0,n.jsx)("div",{className:"cell medium-12 ".concat(t?"large-12":"large-6"),children:(0,n.jsx)(tw,{activeItem:s,items:g,sortBy:0===Object.keys(y).length?"uid":void 0,rowsConfig:[{label:(0,tD.T)("candidateFields.workLocation.geodata.label"),text:e=>e.city},{label:(0,tD.T)("candidateFields.workLocation.radius.label"),text:e=>
1"".concat(e.radius," km")}],showEdit:!0,showDelete:!0,onEntryEdit:e=>o(e),onEntryDelete:e=>v(e,c),validationErrors:y})})}),(0,n.jsx)("div",{className:"grid-x mg-left-0 mg-right-0 ".concat(0===g.length?"mg-bottom-0":"mg-top-6"),children:(0,n.jsx)("div",{className:"cell small-12 medium-6 large-4 pd-small-left-0 pd-small-right-0 pd-large-right-3",children:(0,n.jsx)(eC.A,{label:g.length>0?"Auch 100% Remote":"Nur 100% Remote",checked:f,control:(0,n.jsx)(ek.A,{checked:f,onChange:e=>j(e.target.checked),disabled:d.length>0,sx:{background:f?"rgba(223, 16, 81, 0.04)":"#fff",overflow:"hidden",padding:"0",borderRadius:"100%",width:"1.25rem",height:"1.25rem",flex:"0 0 1.25rem",color:f?"#fff":"#000"},checkedIcon:(0,n.jsx)("svg",{fill:"currentColor",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"m16 3c-2.5712 0-5.0846.76244-7.22241 2.1909-2.13784 1.42845-3.80408 3.45878-4.78802 5.8342-.98394 2.3755-1.24138 4.9893-.73977 7.5111.50161 2.5217 1.73973 4.8381 3.55782 6.6562 1.81808 1.8181 4.13448 3.0562 6.65618 3.5578 2.5218.5016 5.1357.2442 7.5111-.7398 2.3754-.9839 4.4058-2.6501 5.8342-4.788 1.4285-2.1378 2.1909-4.6512 2.1909-7.2224-.0066-3.4458-1.3784-6.74855-3.8149-9.18509s-5.7393-3.8083-9.1851-3.81491zm0 24c-2.1756 0-4.3023-.6451-6.11127-1.8538-1.80894-1.2087-3.21884-2.9267-4.0514-4.9367s-1.0504-4.2217-.62596-6.3555 1.47208-4.0938 3.01046-5.63217c1.53838-1.53838 3.49837-2.58603 5.63217-3.01047s4.3455-.2066 6.3555.62597c2.01.83256 3.728 2.24246 4.9367 4.0514 1.2087 1.80897 1.8538 3.93567 1.8538 6.11127-.0033 2.9164-1.1633 5.7123-3.2255 7.7745s-4.8581 3.2222-7.7745 3.2255zm8-11c0 1.5823-.4692 3.129-1.3482 4.4446-.8791 1.3156-2.1285 2.3409-3.5903 2.9464s-3.0704.764-4.6222.4553c-1.5519-.3087-2.9773-1.0706-4.0961-2.1894-1.11887-1.1189-1.88079-2.5443-2.18948-4.0962-.30868-1.5518-.15025-3.1604.45525-4.6222s1.63093-2.7112 2.94643-3.59026c1.3156-.87905 2.8624-1.34824 4.4446-1.34824 2.1207.00331 4.1536.84722 5.6532 2.3468 1.4996 1.4996 2.3435 3.5325 2.3468 5.6532z",fill:"white"})}),icon:(0,n.jsx)("svg",{width:"410",height:"410",viewBox:"0 0 410 410",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"205",cy:"205",r:"203.5",fill:"white",stroke:"#d9d9d9",strokeWidth:"30"})})}),sx:{display:"flex",alignItems:"center",gap:"1.5625rem",color:f?"#fff":"#000",backgroundColor:f?"#000":"#F3F5F7",padding:"0.25rem 1rem",width:"100%",height:"35px",margin:{xs:"0",md:"0 16px 0 0"},"& .MuiTypography-root":{padding:"0",fontSize:"1rem",lineHeight:"24px"}}})})})]}):(0,n.jsxs)(eR,{children:[((null==l?void 0:l[i])||[]).length>0&&(null==l?void 0:l[i].map(e=>(0,n.jsx)(eO,{label:e.city,layout:"button",active:!0},"active-city-".concat(e.city)))),null==l||null==(r=l[u])?void 0:r.filter(e=>null==e?void 0:e.label).map(e=>{var t;return(0,n.jsx)(eO,{label:e.label,layout:"button",active:!0},"active-worklocationtype-".concat(null!=(t=e["@id"])?t:e.label))})]})},renderEditButtonText:"Weiteren Ort hinzuf\xfcgen",renderValueAlwaysVisible:!0,showEditForm:0===g.length})},tH=e=>{let{stepIndex:t,registerValidators:r,registerRequests:i}=e;return(0,w.useEffect)(()=>{r("step-".concat(t),[()=>({ok:!0}
1)]),i("step-".concat(t),[async()=>({ok:!0})])},[]),(0,n.jsx)(b.A,{sx:{width:"100%"},children:(0,n.jsx)(tq,{hideHeader:!0,saveButtonLabel:"Hinzuf\xfcgen"})})},tV=e=>{let{activeStep:t,allSteps:r,stepsText:i,registerValidators:l,registerRequests:a,registerSkipStep:s,navigationComponent:o}=e,c=Object.fromEntries(rc.matchingInfo.map(e=>[e.key,e.fields])),d=rm(r,c.organisationalForms),u=rm(r,c.occupations),m=rm(r,c.fieldOfLaws),h=rm(r,c.workLocation),p=rm(r,c.employmentType),g=rm(r,c.workExperience),x=rm(r,c.salary);return(0,w.useEffect)(()=>{g>0&&s("step-".concat(g),e=>(null==e?void 0:e.degree)!==R.Me.DEGREE.VOLLJURIST)},[]),(0,n.jsxs)(n.Fragment,{children:[t===d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Arbeitgeberart",subTitle:"Nenn uns hier alle Arbeitgeberarten, die f\xfcr Dich in Frage kommen. Wir nutzen diese Information f\xfcr Dein Job Matching.",stepsText:i,children:(0,n.jsx)(eY,{stepIndex:d,registerValidators:l,registerRequests:a})}),o]}),t===u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Gew\xfcnschte T\xe4tigkeit",subTitle:"W\xe4hle hier zwischen verschiedenen T\xe4tigkeiten, die f\xfcr Dich in Frage kommen.",stepsText:i,children:(0,n.jsx)(eU,{stepIndex:u,registerValidators:l,registerRequests:a})}),o]}),t===m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Rechtsgebiete",subTitle:"Bitte gib alle Rechtsgebiete an, die f\xfcr Dich potentiell relevant sind.",stepsText:i,children:(0,n.jsx)(eV,{stepIndex:m,registerValidators:l,registerRequests:a})}),o]}),t===h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Arbeitsort",subTitle:"Du kannst mehrere Standorte festlegen, an denen Du arbeiten m\xf6chtest. M\xf6chtest Du ausschlie\xdflich remote arbeiten, dann w\xe4hle bitte diese Option aus.",stepsText:i,children:(0,n.jsx)(tH,{stepIndex:h,registerValidators:l,registerRequests:a})}),o]}),t===p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Arbeitszeitmodell",subTitle:"Die genauen Teilzeitm\xf6glichkeiten kannst Du der jeweiligen Stellenanzeige entnehmen.",stepsText:i,children:(0,n.jsx)(eH,{stepIndex:p,registerValidators:l,registerRequests:a})}),o]}),t===g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Berufserfahrung",subTitle:"Beschreibe Deinen beruflichen Werdegang und gib alle relevanten Stationen an. Als Berufseinsteiger:in kannst Du diesen Schritt einfach \xfcberspringen.",stepsText:i,children:(0,n.jsx)(tW,{stepIndex:g,registerValidators:l,registerRequests:a})}),o]}),t===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Gehaltsvorstellung",subTitle:'Gib bitte an, wie viel Du mindestens verdienen m\xf6chtest. Wir ben\xf6tigen diese Info f\xfcr das Job Matching. Falls Dir das Gehalt in einem ersten Schritt nicht so wichtig ist, w\xe4hle bitte "Ich bin noch nicht festgelegt".',stepsText:i,children:(0,n.jsx)(e0,{stepIndex:x,registerValidators:l,registerRequests:a})}),o]})]})};var tU=r(27765),tY=r(12800),tZ=r(69796),tK=r(33840);let tX=w.forwardRef(function(e,t){let{value:r,onChange:i,onBlur:l,onFocus:a,name:s,id:o,disabled:c,type:d="tel",...u}=e;return(0,n.jsx)(eh.A,{id:o,name:s,disabled:c,variant:"filled",sx:{"& .MuiInputBase-root":{padding:"0.3875rem 1rem"}},label:void 0,fullWidth:!0,value:null!=r?r:"",onChange:e=>null==i?void 0:i(e.target.value),onBlur:l,onFocus:a,inputRef:t,inputProps:{type:d,...u},helpertext:"Wenn Du hier Deine Telefonnummer angibst, k\xf6nnen Arbeitgeber Dich leichter erreichen."})}),tQ=e=>{let{label:t="Telefonnummer",value:r,onChange:i,onBlur:l,helperText:a}=e,s=(0,tK.l)(r||"",{defaultCountry:"DE"});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ec.A,{label:t,helpertext:a,children:(0,n.jsx)(tY.Ay,{labels:tZ.A,placeholder:"Telefonnummer hinterlegen",value:null==s?void 0:s.number,onChange:e=>{i&&i(e||"")},onBlur:e=>{l&&l(e.target.value||"")},addInternationalOption:!1,inputComponent:tX,initialValueFormat:"national",defaultCountry:"DE",countryCallingCodeEditable:!1})})})},t$=e=>{var t;let{stepIndex:r,registerValidators:i,registerRequests:l}=e,{user:a,updateUserdataProps:s,validationErrors:o,setValidationErrors:c}=(0,w.useContext)(h.M),[d,u]=(0,w.useState)([]);(0,w.useEffect)(()=>{c({})},[]);let[m,p]=(0,w.useState)({salutation:null==a?void 0:a.salutation,title:null==a?void 0:a.title,firstName:null==a?void 0:a.firstName,lastName:null==a?void 0:a.lastName,phone:null==a?void 0:a.phone,dateOfBirth:null==a?void 0:a.dateOfBirth,contactEmail:null==a?void 0:a.contactEmail}),g=["salutation","title","firstName","lastName","phone","dateOfBirth","contactEmail"];(0,w.useEffect)(()=>{i("step-".concat(r),[(e,t)=>{let r=g.filter(e=>!rp(e,m,t));u(r);let n=0===r.length;return{ok:n,error:n?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),l("step-".concat(r),[async()=>{try{let e=g.map(e=>({propertyPath:e,value:m[e],originalValue:null==a?void 0:a[e]})).filter(e=>{let{value:t,originalValue:r}=e;return t!==r}).map(e=>{let{propertyPath:t,value:r}=e;return{propertyPath:t,value:r}});return e.length>0&&await s(e,{preventApiSave:!(null==a?void 0:a.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[m]);let x=(e,t)=>p(r=>({...r,[e]:t})),f=(null==(t=(0,Z.r9)(o,"dateOfBirth"))?void 0:t.message)||"";return(0,n.jsxs)("div",{className:"max-content ".concat($().gridScore),children:[(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ex,{required:!0,name:"salutation",label:"Anrede",value:m.salutation&&R.rG[m.salutation]?R.rG[m.salutation]:null,onChange:(e,t)=>
1x("salutation",(null==t?void 0:t.id)?t.id:""),options:Object.values(R.rG),error:d.includes("salutation")?"Pflichtfeld":void 0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ex,{name:"title",label:"Titel",value:m.title&&R.lS[m.title]?R.lS[m.title]:null,onChange:(e,t)=>x("title",(null==t?void 0:t.id)?t.id:""),options:Object.values(R.lS)})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:!0,fieldPath:"firstName",validationErrors:o,label:"Vorname",value:m.firstName||"",onChange:e=>x("firstName",e.target.value||""),error:d.includes("firstName")?"Pflichtfeld":void 0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:!0,fieldPath:"lastName",validationErrors:o,label:"Nachname",value:m.lastName||"",onChange:e=>x("lastName",e.target.value||""),error:d.includes("lastName")?"Pflichtfeld":void 0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(tQ,{value:m.phone||void 0,onChange:e=>x("phone",e||""),helperText:"Wenn Du hier Deine Telefonnummer angibst, k\xf6nnen Arbeitgeber Dich leichter erreichen."})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ed,{name:"dateOfBirth",label:"Geburtsdatum",value:m.dateOfBirth?new Date("string"==typeof m.dateOfBirth||m.dateOfBirth instanceof String?m.dateOfBirth:1e3*m.dateOfBirth):null,onChange:e=>{if(e){let t=new Date(e);t.setHours(12,0,0),x("dateOfBirth",(0,L.A)(t,"yyyy-MM-dd"))}else x("dateOfBirth",null)},error:!!f,helpertext:f,minDate:(0,tU.A)(new Date,100),maxDate:(0,tU.A)(new Date,18),disableFuture:!0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:!0,fieldPath:"contactEmail",validationErrors:o,error:d.includes("contactEmail")?"Pflichtfeld":void 0,label:"E-Mail-Adresse",value:m.contactEmail||"",onChange:e=>x("contactEmail",e.target.value||""),helpertext:"Diese E-Mail Adresse \xfcbermitteln wir als Kontakt-E-Mail Adresse an den Arbeitgeber."})})]})},t0=e=>{let{stepIndex:t,registerValidators:r,registerRequests:i}=e,{user:l,updateUserdataProps:a,validationErrors:s,setValidationErrors:o}=(0,w.useContext)(h.M),[c,d]=(0,w.useState)([]);(0,w.useEffect)(()=>{o({})},[]);let[u,m]=(0,w.useState)({salutation:null==l?void 0:l.salutation,title:null==l?void 0:l.title,firstName:null==l?void 0:l.firstName,lastName:null==l?void 0:l.lastName}),p=["salutation","title","firstName","lastName"];(0,w.useEffect)(()=>{r("step-".concat(t),[(e,t)=>{let r=p.filter(e=>!rp(e,u,t));d(r);let n=0===r.length;return{ok:n,error:n?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),i("step-".concat(t),[async()=>{try{let e=p.map(e=>({propertyPath:e,value:u[e],originalValue:null==l?void 0:l[e]})).filter(e=>{let{value:t,originalValue:r}=e;return t!==r}).map(e=>{let{propertyPath:t,value:r}=e;return{propertyPath:t,value:r}});return e.length>0&&await a(e,{preventApiSave:!(null==l?void 0:l.id),passErrors:!0}),{ok:!0}}catch(e){return{ok:!1,error:"Beim Speichern ist ein Fehler aufgetreten. Bitte versuche es erneut."}}}])},[u]);let g=(e,t)=>m(r=>({...r,[e]:t}));return(0,n.jsxs)("div",{className:"max-content ".concat($().gridScore),children:[(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ex,{required:!0,name:"salutation",label:"Anrede",value:u.salutation&&R.rG[u.salutation]?R.rG[u.salutation]:null,onChange:(e,t)=>
1g("salutation",(null==t?void 0:t.id)?t.id:""),options:Object.values(R.rG),error:c.includes("salutation")?"Pflichtfeld":void 0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ex,{name:"title",label:"Titel",value:u.title&&R.lS[u.title]?R.lS[u.title]:null,onChange:(e,t)=>g("title",(null==t?void 0:t.id)?t.id:""),options:Object.values(R.lS)})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:!0,fieldPath:"firstName",validationErrors:s,label:"Vorname",value:u.firstName||"",onChange:e=>g("firstName",e.target.value||""),error:c.includes("firstName")?"Pflichtfeld":void 0})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:!0,fieldPath:"lastName",validationErrors:s,label:"Nachname",value:u.lastName||"",onChange:e=>g("lastName",e.target.value||""),error:c.includes("lastName")?"Pflichtfeld":void 0})})]})},t1=e=>(0,n.jsx)(ec.A,{...e,label:"",children:(0,n.jsx)(eC.A,{control:(0,n.jsx)(ek.A,{...e,color:"default"}),label:e.label||""})});var t2=r(92265),t5=r(29310);let t4=e=>{let[t,r]=(0,w.useState)(!1);return(0,n.jsx)(ec.A,{...e,children:(0,n.jsx)(eh.A,{id:e.name,variant:"filled",fullWidth:!0,...e,type:t?"text":"password",InputProps:{endAdornment:(0,n.jsx)(ep.A,{position:"end",children:(0,n.jsx)(ea.A,{onClick:()=>r(e=>!e),onMouseDown:e=>e.preventDefault(),edge:"end",children:t?(0,n.jsx)(t5.A,{}):(0,n.jsx)(t2.A,{})})})},label:void 0,error:!1,helperText:void 0})})},t3=z.object().shape({email:z.string().email("Keine g\xfcltige E-Mail").required("Pflichtfeld"),password:z.string().min(6,"Mindestens 6 Zeichen").matches(/[A-Z]/,"Mindestens ein Gro\xdfbuchstabe").matches(/[0-9]/,"Mindestens eine Zahl").matches(/[^A-Za-z0-9]/,"Mindestens ein Sonderzeichen"),passwordConfirm:z.string().oneOf([z.ref("password"),null],"Passw\xf6rter m\xfcssen \xfcbereinstimmen").required("Bitte best\xe4tigen Sie Ihr Passwort"),agbAccepted:z.boolean().default(!1).oneOf([!0],"Die Nutzungsbedingungen und Datenschutzhinweise m\xfcssen akzeptiert werden"),marketingConsent:z.boolean().default(!1)}).required(),t8=e=>{let{stepIndex:t,registerValidators:r,registerRequests:i,onSuccess:l}=e,{user:a}=(0,w.useContext)(h.M),{control:s,trigger:o,handleSubmit:c}=(0,T.mN)({resolver:(0,k.t)(t3),defaultValues:{email:(null==a?void 0:a.contactEmail)||"",password:"",passwordConfirm:"",agbAccepted:!1,marketingConsent:!1}});(0,w.useEffect)(()=>{r("step-".concat(t),[async()=>{let e=await o(["email","password","passwordConfirm","agbAccepted","marketingConsent"]);return{ok:e,error:e?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),i("step-".concat(t),[()=>d()])},[]);let d=()=>new Promise(e=>{c(async t=>{try{var r;let n={optInType:"authCode",sourceUrl:window.location.href,email:t.email,password:t.password,salutation:null==a?void 0:a.salutation,title:null==a?void 0:a.title,firstName:null==a?void 0:a.firstName,lastName:null==a?void 0:a.lastName,dateOfBirth:null==a?void 0:a.dateOfBirth,phone:null==a?void 0:a.phone,agbAccepted:t.agbAccepted,marketingConsent:t.marketingConsent,degree:null==a?void 0:a.degree,score1:null==a?void 0:a.score1,score2:null==a?void 0:a.score2,scoreMainFocuses:null==a?void 0:a.scoreMainFocuses,scoreMandatoryPart:null==a?void 0:a.scoreMandatoryPart,scoreGrade:null==a?void 0:a.scoreGrade,semester:null==a?void 0:a.semester,contactEmail:null==a?void 0:a.contactEmail,registrationSource:"jobApplication"},i=await M.A.fetchUserRegistration(n);l({uid:null==i||null==(r=i.user)?void 0:r.uid,email:t.email,password:t.password}),(0,u.sx)("wizard","wizard_registration_submit"),e({ok:!0})}catch(t){e({ok:!1,error:"Bei der Registrierung ist ein Fehler aufgetreten. Bitte versuche es sp\xe4ter noch einmal."})}},t=>e({ok:!1}))()});return(0,n.jsxs)("div",{className:"max-content",children:[(0,n.jsxs)("div",{className:"".concat($().gridScore),children:[(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(T.xI,{control:s,name:"email",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(ef.A,{label:"E-Mail-Adresse",helpertext:(null==r?void 0:r.message)||"Mit dieser E-Mail Adresse wird Dein Account erstellt. Du nutzt sie sp\xe4ter zum Einloggen.",error:r,required:!0,...t})}})}),(0,n.jsx)("div",{className:"cell"}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(T.xI,{control:s,name:"password",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(t4,{label:"Passwort",helpertext:(null==r?void 0:r.message)||"Mindestens 6 Zeichen mit Zahl, Gro\xdfbuchstabe(n) und Sonderzeichen.",error:r,required:!0,...t})}})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(T.xI,{control:s,name:"passwordConfirm",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(t4,{label:"Passwort wiederholen",helpertext:null==r?void 0:r.message,error:r,required:!0,...t})}})})]}),(0,n.jsxs)("div",{className:"".concat($().gridOneColumn," mg-top-5"),children:[(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(T.xI,{control:s,name:"agbAccepted",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(t1,{name:t.name,checked:t.value,onChange:e=>t.onChange(e.target.checked),error:null==r?void 0:r.message,helpertext:null==r?void 0:r.message,label:(0,n.jsxs)(n.Fragment,{children:["Ja, ich bin mit den"," ",(0,n.jsx)("a",{href:m.Ay.pagePaths.nutzungsbedingungen,target:"_blank",onClick:e=>{e.preventDefault(),window.open(m.Ay.pagePaths.nutzungsbedingungen,"_blank").focus()},children:"Nutzungsbedingungen"})," ","und der"," ",(0,n.jsx)("a",{href:m.Ay.pagePaths.datenschutz,target:"_blank",onClick:e=>{e.preventDefault(),window.open(m.Ay.pagePaths.datenschutz,"_blank").focus()},children:"Datenschutzbestimmung"})," ","und der Erstellung eines Nutzerkontos einverstanden. *"]})})}})}),(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(T.xI,{control:s,name:"marketingConsent",render:e=>{let{field:t,fieldState:{error:r}}=e;return(0,n.jsx)(t1,{name:t.name,checked:t.value,onChange:e=>t.onChange(e.target.checked),label:(0,tD.T)("candidateFields.marketingConsent.label"),error:null==r?void 0:r.message})}})})]})]})};var t6=r(74124),t7=r(30926);let t9=(0,t7.createServerReference)("60aad3539234f9492c39b88213251174074e3bfc0e",t7.callServer,void 0,t7.findSourceMapURL,"accountVerifyAuthCodeAction");var re=r(37348);let rt=z.object().shape({code:z.array().of(z.string().required().length(1)).length(6,"Pflichtfeld")}).required(),rr=e=>{let{isMobile:t}=(0,d.A)(),{stepIndex:r,registerValidators:i,registerRequests:l,userData:a}
1=e,[s,o]=(0,w.useState)(!1),c=async()=>{if(!s&&(null==a?void 0:a.email)){o(!0);try{let e=await (0,t6.Y)(a.email);"ok"===e.status?(0,E.D)("Verifizierungscode wurde erneut versendet.",D.O.SUCCESS):"limited"===e.status?(0,E.D)(e.message,D.O.ALERT):(0,E.D)("Fehler beim erneuten Senden.",D.O.ALERT)}catch(e){(0,E.D)("Fehler beim erneuten Senden.",D.O.ALERT)}finally{o(!1)}}},{control:m,trigger:h,handleSubmit:p}=(0,T.mN)({resolver:(0,k.t)(rt),defaultValues:{code:["","","","","",""]}});(0,w.useEffect)(()=>{i("step-".concat(r),[async()=>{let e=await h(["code"]);return{ok:e,error:e?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),l("step-".concat(r),[()=>g()])},[]);let g=()=>new Promise(e=>{p(async t=>{try{let r=await t9(a.email,t.code.join(""));if("ok"!==r.status)return void e({ok:!1,error:"Der Code ist ung\xfcltig oder abgelaufen. Bitte versuche es erneut."});let n=await (0,A.Jv)("candidate",{redirect:!1});if(null==n?void 0:n.error)return void e({ok:!1,error:"Bei der Anmeldung ist ein Fehler aufgetreten. Bitte versuche es sp\xe4ter noch einmal."});(0,E.D)("Benutzer erfolgreich aktiviert.",D.O.SUCCESS),(0,u.sx)("wizard","wizard_registration_confirmed"),e({ok:!0})}catch(t){e({ok:!1,error:"Bei der Registrierungsbest\xe4tigung ist ein Fehler aufgetreten. Bitte versuche es sp\xe4ter noch einmal."})}},t=>e({ok:!1}))()});return(0,n.jsx)("div",{className:"max-content grid-x grid-padding-x grid-padding-y",children:(0,n.jsxs)("div",{className:"cell large-12 text-center",children:[(0,n.jsx)("h5",{className:"text-medium",children:"Verifizierungscode"}),(0,n.jsx)("p",{className:"text-default",children:"Du hast keinen Code erhalten? Bitte schaue auch im Spam-Ordner nach."}),(0,n.jsx)(T.xI,{control:m,name:"code",render:e=>{let{field:r,fieldState:{error:i}}=e;return(0,n.jsx)(K.FormControl,{caption:()=>(0,n.jsx)("a",{onClick:c,style:{cursor:s?"default":"pointer",opacity:s?.5:1,textDecoration:"underline"},children:s?"Wird gesendet â¦":"Code erneut senden"}),overrides:{ControlContainer:{style:()=>({width:"fit-content",margin:"2.8125rem auto 0"})}},children:(0,n.jsx)(re.PinCode,{values:r.value,onChange:e=>{let{values:t}=e;return r.onChange(t)},clearOnEscape:!0,autoFocus:!0,size:t?Y.SIZE.compact:Y.SIZE.default,error:!!i,overrides:{Input:{props:{overrides:{Root:{style:e=>{let{$theme:t}=e;return{borderRadius:"0px"}}},InputContainer:{style:e=>{let{$theme:t}=e;return{backgroundColor:"#F3F5F7"}}}}}}}})})}})]})})},rn=e=>{let{activeStep:t,allSteps:r,stepsText:i,registerValidators:l,registerRequests:a,registerSkipStep:s,navigationComponent:o,handleShowLoginForm:c,contextType:d}=e,u="bookmark"===d||"jobalert"===d||"jobmatch"===d,[m,h]=(0,w.useState)(null),p=rm(r,rc.personalInfo[0].fields),g=rm(r,rc.personalInfo[1].fields),x=rm(r,rc.personalInfo[2].fields);(0,w.useEffect)(()=>{s("step-".concat(g),e=>!!(null==e?void 0:e.id)||!!(null==m?void 0:m.uid)),s("step-".concat(x),e=>!!(null==e?void 0:e.id)||!!(null==m?void 0:m.uid))},[]);let f=(0,w.useRef)(null);return(0,n.jsxs)("div",{ref:f,children:[t===p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Pers\xf6nliche Angaben",subTitle:u?"":"Informiere den Arbeitgeber dar\xfcber, wie er Dich kontaktieren kann.",stepsText:i,children:(0,n.jsx)(u?t0:t$,{ref:f,stepIndex:p,registerRequests:a,registerValidators:l})}),o]}),t===g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Abfrage E-Mail zur Account-Erstellung und Passwort",subTitle:(0,n.jsxs)("span",{children:["Du hast schon ein Konto? Dann geht es hier zum"," ",(0,n.jsx)("a",{onClick:e=>{e.preventDefault(),c()},children:"Login"}),"."]}),stepsText:i,children:(0,n.jsx)(t8,{stepIndex:g,registerRequests:a,registerValidators:l,onSuccess:e=>h(e)})}),o]}),t===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Registrierung abschlie\xdfen",subTitle:"Bitte best\xe4tige jetzt Deine Anmeldung, indem Du den Code aus der E-Mail kopierst, den wir an Deine angegebene E-Mail-Adresse gesendet haben.",stepsText:i,children:(0,n.jsx)(rr,{stepIndex:x,registerValidators:l,registerRequests:a,userData:m})}),o]})]})},ri=e=>{var t,r;let{stepIndex:i,registerValidators:l,registerRequests:a}
1=e,s="degree",{validationErrors:o,user:c,attributes:{staticAttributes:d},updateUserdataProps:u}=(0,w.useContext)(h.M),[m,p]=(0,w.useState)({degree:null==c?void 0:c.degree});return(0,w.useEffect)(()=>{l("step-".concat(i),[(e,t)=>{let r=rp(s,m,t);return{ok:r,error:r?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),a("step-".concat(i),[async()=>{try{return m.degree!==(null==c?void 0:c.degree)&&await u([{propertyPath:s,value:m.degree}],{preventApiSave:!(null==c?void 0:c.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[m]),(0,n.jsx)(eW.A,{sx:{width:"100%"},children:(0,n.jsx)(eR,{errorMessage:null==o||null==(t=o[s])?void 0:t.message,grid:!0,maxShowed:Object.keys(null!=(r=d.degree)?r:{}).length,children:d.degree&&Object.values(d.degree).map(e=>(0,n.jsx)(eO,{type:"radio",label:e.label,selected:m.degree===e.id,onClick:()=>p({degree:e.id})},e.id))})})},rl=e=>{let{stepIndex:t,registerValidators:r,registerRequests:i}=e,{user:l,fieldRequirements:a,validationErrors:s,setValidationErrors:o,updateUserdataProps:c}=(0,w.useContext)(h.M),[d,u]=(0,w.useState)([]);(0,w.useEffect)(()=>{o({})},[]);let m=R.Do[null==l?void 0:l.degree]||[],[p,g]=(0,w.useState)({score1:null==l?void 0:l.score1,score2:null==l?void 0:l.score2,scoreMainFocuses:null==l?void 0:l.scoreMainFocuses,scoreMandatoryPart:null==l?void 0:l.scoreMandatoryPart,scoreGrade:null==l?void 0:l.scoreGrade,semester:null==l?void 0:l.semester}),x=["score1","score2","scoreMainFocuses","scoreMandatoryPart","scoreGrade","semester"];(0,w.useEffect)(()=>{r("step-".concat(t),[(e,t)=>{let r=x.filter(r=>!rp(r,{degree:(null==e?void 0:e.degree)||"",...p},t));u(r);let n=0===r.length;return{ok:n,error:n?null:"Bitte f\xfcllen Sie alle Pflichtfelder aus."}}]),i("step-".concat(t),[async()=>{try{let e=x.map(e=>({propertyPath:e,value:p[e],originalValue:null==l?void 0:l[e]})).filter(e=>{let{value:t,originalValue:r}=e;return t!==r}).map(e=>{let{propertyPath:t,value:r}=e;return{propertyPath:t,value:r}});return e.length>0&&await c(e,{preventApiSave:!(null==l?void 0:l.id),passErrors:!0}),{ok:!0}}catch(e){console.log(e)}return{ok:!1}}])},[p]);let f=(e,t)=>{let r="";return e&&!t?r="Deinen bisherigen Angaben nach sollte dieser Wert mindestens ".concat(new Intl.NumberFormat("de-DE").format(e)," sein."):e&&t&&(r="Deinen bisherigen Angaben nach sollte dieser Wert zwischen ".concat(new Intl.NumberFormat("de-DE").format(e)," und ").concat(new Intl.NumberFormat("de-DE").format(t)," liegen.")),r},b=(e,t)=>g(r=>({...r,[e]:t}));return(0,n.jsxs)("div",{className:"max-content ".concat($().gridScore),children:[m.includes("score1")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("score1",l,a),fieldPath:"score1",validationErrors:s,error:d.includes("score1")?"Pflichtfeld":void 0,label:"Abschlussnote 1.Staatsexamen",helpertext:"Arbeitgeber fordern teilweise eine Mindestnote f\xfcr die Einstellung.",value:p.score1||"",onChange:e=>b("score1",parseFloat(e.target.value)||0),type:"number"})}),m.includes("score2")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("score2",l,a),fieldPath:"score2",validationErrors:s,error:d.includes("score2")?"Pflichtfeld":void 0,label:"Abschlussnote 2.Staatsexamen",value:p.score2||"",onChange:e=>b("score2",parseFloat(e.target.value)||0),type:"number"})}),m.includes("scoreMainFocuses")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("scoreMainFocuses",l,a),fieldPath:"scoreMainFocuses",validationErrors:s,error:d.includes("scoreMainFocuses")?"Pflichtfeld":void 0,label:"Note Schwerpunktbereich",helpertext:"Die Note Deines Schwerpunktes ist manchen Arbeitgebern wichtig, wenn sie in Deinem Bereich suchen.",value:p.scoreMainFocuses||"",onChange:e=>b("scoreMainFocuses",parseFloat(e.target.value)||0),type:"number"})}),m.includes("scoreMandatoryPart")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("scoreMandatoryPart",l,a),fieldPath:"scoreMandatoryPart",validationErrors:s,error:d.includes("scoreMandatoryPart")?"Pflichtfeld":void 0,label:"Note Staatlicher Pflichtteil",value:p.scoreMandatoryPart||"",onChange:e=>b("scoreMandatoryPart",parseFloat(e.target.value)||0),type:"number"})}),m.includes("scoreGrade")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("scoreGrade",l,a),fieldPath:"scoreGrade",validationErrors:s,error:d.includes("scoreGrade")?"Pflichtfeld":void 0,label:"Abschlussnote",helpertext:f(1,4),value:p.scoreGrade||"",onChange:e=>b("scoreGrade",parseFloat(e.target.value)||0),type:"number"})}),m.includes("semester")&&(0,n.jsx)("div",{className:"cell",children:(0,n.jsx)(ev,{required:rh("semester",l,a),fieldPath:"semester",validationErrors:s,error:d.includes("semester")?"Pflichtfeld":void 0,label:"In welchem Semester bist Du?",helpertext:f(1,20),value:p.semester||"",onChange:e=>b("semester",parseInt(e.target.value,10)||0),type:"number"})})]})},ra=e=>{let{activeStep:t,allSteps:r,stepsText:i,registerValidators:l,registerRequests:a,navigationComponent:s}=e,o=rc.requiredInfo[0].fields,c=rc.requiredInfo[1].fields,d=rm(r,o),u=rm(r,c);return(0,n.jsxs)(n.Fragment,{children:[t===d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Bildungsstand und Karrierelevel",subTitle:"Bitte gib Deinen h\xf6chsten Abschluss an. Dein Bildungsabschluss ist f\xfcr Kanzleien entscheidend, um zu pr\xfcfen, ob Du fachlich zum Job passt â und hilft, Deine Bewerbung gezielt einzuordnen.",stepsText:i,children:(0,n.jsx)(ri,{stepIndex:d,registerValidators:l,registerRequests:a})}),s]}),t===u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{title:"Abschlussnoten",subTitle:"Gib bitte die genaue Punktanzahl an. Arbeitgeber fordern teilweise eine Mindestpunktzahl f\xfcr die Einstellung.",stepsText:i,children:(0,n.jsx)(rl,{stepIndex:u,registerValidators:l,registerRequests:a})}),s]})]})},rs=e=>{let{width:t="",subTitle:r="",height:i=10}=e;return(0,n.jsxs)(b.A,{sx:{width:"100%"},children:[(0,n.jsx)(b.A,{sx:{bgcolor:"grey.100",color:"primary.contrastText",width:"100%",height:i},children:(0,n.jsx)(b.A,{sx:{bgcolor:"primary.main",color:"primary.contrastText",width:t||0,height:i,transition:"width 0.4s ease-in-out"}})}),r&&(0,n.jsx)(b.A,{sx:{color:"text.secondary",textAlign:"center",width:"100%"},children:r})]})},ro=e=>{let{activeStep:t,maxSteps:r,loadNextStep:l,loadPrevStep:a,disabled:s=!1,isLoading:o=!1,showCompleteButton:c=!1}=e;return(0,n.jsxs)(b.A,{sx:{display:"flex",gap:"0.75rem",justifyContent:"end"},children:[t>1&&(0,n.jsx)(i.A,{layout:"secondary",onClick:()=>s||o?null:a(),disabled:s||o,children:"Zur\xfcck"}),t<r&&(0,n.jsx)(i.A,{onClick:()=>s||o?null:l(),disabled:s||o,isLoading:o,children:"Weiter"}),t>=r&&c&&(0,n.jsx)(i.A,{onClick:()=>
1s||o?null:l(),disabled:s||o,isLoading:o,children:"Abschlie\xdfen"})]})},rc={requiredInfo:[{key:"degree",fields:["degree"]},{key:"scores",fields:["score1","score2","scoreMainFocuses","scoreMandatoryPart","scoreGrade","semester"]}],personalInfo:[{key:"personalData",fields:["firstName","lastName","contactEmail"]},{key:"credentials",fields:["newUser.email","newUser.password","newUser.passwordConfirm"]},{key:"authCode",fields:["newUser.code"]}],matchingInfo:[{key:"organisationalForms",fields:["organisationalForms"]},{key:"occupations",fields:["occupations"]},{key:"fieldOfLaws",fields:["fieldOfLaws"]},{key:"workLocation",fields:["preferredLocations"]},{key:"employmentType",fields:["employmentType"]},{key:"workExperience",fields:["workExperiences"]},{key:"salary",fields:["salaryYearMin"]}],additionalInfo:[{key:"documents",fields:["vitaFile"]}],applicationInfo:[{key:"documentSelectionAfterUpload",fields:["applicationInfo.documentSelectionAfterUpload"]},{key:"details",fields:["applicationInfo.availableFrom","applicationInfo.city","applicationInfo.salaryExpectation","applicationInfo.file"]},{key:"documentSelection",fields:["applicationInfo.documentSelection"]},{key:"preview",fields:["applicationInfo.messageToEmployer"]}]},rd={application:["requiredInfo","personalInfo","additionalInfo","applicationInfo"],bookmark:["personalInfo"],jobalert:["personalInfo"],jobmatch:["requiredInfo","personalInfo","matchingInfo"]},ru=(e,t)=>{let r=0,{show:n}=t;for(let t of["requiredInfo","personalInfo","matchingInfo","additionalInfo","applicationInfo"]){let i=n[t];if(i){for(let n=0;n<i.length;n++)if(++r===e)return"".concat(t,":").concat(i[n].key)}}return"unknown"},rm=(e,t)=>{for(let r in e)for(let n of t)if(e[r].fields.includes(n))return parseInt(r)+1;return 0},rh=(e,t,r)=>{let n=null==r?void 0:r[e];if(!n)return!1;let{conditions:i}=n;if(i&&!Array.isArray(i)&&"object"==typeof i)for(let e of Object.keys(i)){let r=i[e],n=(0,p.qI)(e,t);if(!Array.isArray(r)||!r.includes(n))return!1}return(0,p.CH)(r,e,t)},rp=(e,t,r)=>0!==Object.keys(r).length&&(!rh(e,t,r)||!(0,p.Po)((0,p.qI)(e,t))),rg=e=>{var t;let{job:r,handleShowLoginForm:i=()=>null,contextType:l,onComplete:a}=e,[s,o]=(0,w.useState)({activeStep:1,maxSteps:0,show:{}}),{user:c,fieldRequirements:d}=null!=(t=(0,w.useContext)(h.M))?t:{},[m,p]=(0,w.useState)({}),[g,x]=(0,w.useState)({}),[f,v]=(0,w.useState)({}),[j,y]=(0,w.useState)(!1),[_,A]=(0,w.useState)(!0),S=(0,w.useRef)(!1);(0,w.useEffect)(()=>{let{maxSteps:e,show:t}=((e,t)=>{let r=0,n=rd[t]||Object.keys(rc),i=Object.entries(rc).reduce((t,i)=>{let[l,a]=i;if(!Array.isArray(a)||!n.includes(l))return t;let s=a.reduce((t,r)=>{let n=r.fields.filter(t=>{var r;if(!(null==e?void 0:e.id)||t.startsWith("applicationInfo."))return!0;let n=null==e?void 0:e[t];return!((Array.isArray(n)?n.length>0:n)||R.BH.includes(t)&&(null==e?void 0:e.degree)&&!(null!=(r=R.Do[e.degree])?r:[]).includes(t))});return n.length>0&&t.push({key:r.key,fields:n}),t},[]);return s.length>0&&(t[l]=s,r+=s.length),t},{});return{maxSteps:r,show:i}})(c,l);o(r=>({...r,maxSteps:e,show:t})),0===e&&(null==c?void 0:c.id)&&"application"!==l&&a&&a()},[l]),(0,w.useEffect)(()=>{if(s.activeStep>0&&s.maxSteps>0){var e;let t=s.activeStep;for(;t<=s.maxSteps&&(null==(e=f["step-".concat(t)])?void 0:e.call(f,c))===!0;)t++;if(t>s.maxSteps&&"application"!==l&&(null==c?void 0:c.id)&&a){S.current||(S.current=!0,a());return}t!==s.activeStep&&o(e=>({...e,activeStep:t}))}},[f]),(0,w.useEffect)(()=>{if(s.activeStep>0&&s.maxSteps>0){let e=ru(s.activeStep,s);(0,u.sx)("wizard","wizard_step_view",e)}},[s.activeStep,s.maxSteps]);let k=(e,t)=>{p(r=>({...r,[e]:t}))},C=(e,t)=>{x(r=>({...r,[e]:t}))},I=(e,t)=>{v(r=>({...r,[e]:t}))},N=async()=>{var e;for(let e of m["step-".concat(s.activeStep)]||[]){let t=await e(c,d);if(!t.ok)return void(0,E.D)(t.error?t.error:"Ein Fehler ist aufgetreten.",D.O.ALERT)}for(let e of g["step-".concat(s.activeStep)]||[]){y(!0);let t=await e();if(y(!1),!t.ok){t.error&&(0,E.D)(t.error,D.O.ALERT);return}}let t=ru(s.activeStep,s);(0,u.sx)("wizard","wizard_step_completed",t,s.activeStep);let r=s.activeStep+1;for(;r<=s.maxSteps&&(null==(e=f["step-".concat(r)])?void 0:e.call(f,c))===!0;)r++;let n=r>s.maxSteps&&"application"!==l&&!!a;o(e=>({...e,activeStep:r<e.maxSteps?r:e.maxSteps})),n&&a()},F="Abfrage ".concat(s.activeStep," / ").concat(s.maxSteps),M=(0,n.jsx)(ro,{activeStep:s.activeStep,maxSteps:s.maxSteps,loadNextStep:N,loadPrevStep:()=>{o(e=>{var t;let r=e.activeStep-1;for(;r>=0&&(null==(t=f["step-".concat(r)])?void 0:t.call(f,c))===!0;)r--;return{...e,activeStep:r>=0?r:0}})},isLoading:j,showCompleteButton:"application"!==l&&!!a});return(0,n.jsxs)(n.Fragment,{children:[_&&(0,n.jsx)(rs,{width:((e,t)=>0===t?"0%":"".concat(e/t*95,"%"))(s.activeStep,s.maxSteps),height:"application"!==l?6:10}),(0,n.jsxs)(b.A,{sx:{maxWidth:{xs:"100%",md:"100%"},minHeight:{xs:"90%",md:"fit-content"},marginTop:"0",marginLeft:"auto",marginRight:"auto"},children:[s.show.requiredInfo&&(0,n.jsx)(ra,{activeStep:s.activeStep,allSteps:s.show.requiredInfo,stepsText:F,registerValidators:k,registerRequests:C,navigationComponent:M}),s.show.personalInfo&&(0,n.jsx)(rn,{activeStep:s.activeStep,allSteps:[...s.show.requiredInfo||[],...s.show.personalInfo],stepsText:F,registerValidators:k,registerRequests:C,registerSkipStep:I,navigationComponent:M,handleShowLoginForm:i,contextType:l}),s.show.matchingInfo&&(0,n.jsx)(tV,{activeStep:s.activeStep,allSteps:[...s.show.requiredInfo||[],...s.show.personalInfo||[],...s.show.matchingInfo],stepsText:F,registerValidators:k,registerRequests:C,registerSkipStep:I,navigationComponent:M}),s.show.additionalInfo&&(0,n.jsx)(ei,{activeStep:s.activeStep,allSteps:[...s.show.requiredInfo||[],...s.show.personalInfo||[],...s.show.additionalInfo],stepsText:F,registerValidators:k,navigationComponent:M}),s.show.applicationInfo&&(0,n.jsx)(eL,{job:r,activeStep:s.activeStep,allSteps:[...s.show.requiredInfo||[],...s.show.personalInfo||[],...s.show.additionalInfo||[],...s.show.applicationInfo],stepsText:F,registerValidators:k,registerSkipStep:I,navigationComponent:M,setShowProgressBar:A})]})]})},rx={application:{loginTabLabel:"Einloggen & bewerben",loginHeadline:"Jetzt einloggen und bewerben",loginDescription:"Du m\xf6chtest Dich mit Deinem Profil bewerben? Melde Dich an, um dieses Feature nutzen zu k\xf6nnen.",loginCta:"Login und bewerben",registerTabLabel:"Registrieren & bewerben",registerHeadline:"Jetzt registrieren und bewerben",registerCta:"Jetzt registrieren"},bookmark:{loginTabLabel:"Einloggen & merken",loginHeadline:"Jetzt einloggen und Job merken",loginDescription:"",loginCta:"Login und Job merken",registerTabLabel:"Registrieren & merken",registerHeadline:"Jetzt registrieren und Job merken",registerCta:"Jetzt registrieren",successHeadline:"Job gemerkt!",successDescription:"Der Job wurde Deiner Merkliste hinzugef\xfcgt.",errorHeadline:"Job konnte nicht gemerkt werden",errorDescription:"Beim Speichern ist ein Fehler aufgetreten."},jobalert:{loginTabLabel:"Einloggen & aktivieren",loginHeadline:"Melde Dich an, um Deinen Suchauftrag zu speichern und passende Jobs per E-Mail zu erhalten.",loginDescription:"",loginCta:"Login und Job Alert aktivieren",registerTabLabel:"Registrieren & aktivieren",registerHeadline:"Jetzt registrieren und Job Alert aktivieren",registerCta:"Jetzt registrieren",successHeadline:"Erfolgreich angemeldet!",errorHeadline:"Job Alert konnte nicht aktiviert werden",errorDescription:"Beim Aktivieren ist ein Fehler aufgetreten."},jobmatch:{loginTabLabel:"Einloggen & Match anzeigen",loginHeadline:"Jetzt einloggen und Job Matching Score freischalten",loginDescription:"Du m\xf6chtest sehen, wie gut dieser Job zu Deinem Profil passt? Jetzt einloggen, um den Matching Score anzuzeigen.",loginCta:"Jetzt einloggen",registerTabLabel:"Registrieren & Match anzeigen",registerHeadline:"Jetzt registrieren und Job Matching Score freischalten",registerDescription:"Registriere Dich jetzt kostenlos und schalte Deinen pers\xf6nlichen Job Matching Score frei. So siehst Du sofort, wie gut dieser Job zu Deinem Profil passt.",registerCta:"Jetzt registrieren",successHeadline:"Gratulation!",successDescription:"Du hast alle relevanten Infos f\xfcr Dein pers\xf6nliches Job Matching angegeben. Entdecke jetzt die passenden Jobs f\xfcr Dich.",errorHeadline:"Job Matching konnte nicht freigeschaltet werden",errorDescription:"Beim Speichern ist ein Fehler aufgetreten."}},rf=rx.application;function rb(e){let{children:t,value:r,index:i,...l}=e;return(0,n.jsx)("div",{role:"tabpanel",hidden:r!==i,id:"tabpanel-".concat(i),"aria-labelledby":"tab-".concat(i),...l,children:r===i&&(0,n.jsx)(b.A,{sx:{p:{xs:"1.5rem",md:"3rem 2rem"},minHeight:100},children:t})})}let rv=e=>{var t,r;let{contextType:k,contextProps:C}=e,I={application:B},N=!!I[k],E=null!=(t=I[k])?t:w.Fragment,D=rx[k]||rf,[F,M]=(0,w.useState)(0),[L,T]=(0,w.useState)(!1),[z,O]=(0,w.useState)(!1),[P,R]=(0,w.useState)(!1),[W,J]=(0,w.useState)(!1),G=(0,w.useRef)(null),{data:q,status:H}=(0,A.wV)(),{user:V,mutate:U}=null!=(r=(0,w.useContext)(h.M))?r:{},{cleanOverlayModal:Y}=(0,c.E)();(0,w.useEffect)(()=>{var e;if(!k)return;let t=null==C?void 0:C.job;
1(0,u.sx)("wizard","wizard_open","wizard_open:".concat(k),null==t?void 0:t.id,(null==t?void 0:t.employer)?{employer_id:null!=(e=t.employer.id)?e:t.employer.uid}:void 0)},[]);let Z="application"!==k&&!!D.successHeadline,K=()=>{(0,u.sx)("wizard","wizard_completed","wizard_completed:".concat(k)),O(!0)},X=async e=>{if(!e)return void K();G.current=e,J(!1),R(!0);try{await e(),K()}catch(e){J(!0)}finally{R(!1)}},Q=Z?async()=>{(0,S.k)("user/data"),await X(null==C?void 0:C.onComplete)}:null==C?void 0:C.onComplete,{isMobile:$}=(0,d.A)();if((0,s.s)()){let e=k&&({application:"Bewerbung derzeit nicht verf\xfcgbar",bookmark:"Merkliste derzeit nicht verf\xfcgbar",jobalert:"Job-Alert derzeit nicht verf\xfcgbar",jobmatch:"Job Matching derzeit nicht verf\xfcgbar"})[k]||"Funktion derzeit nicht verf\xfcgbar";return(0,n.jsx)(b.A,{sx:{p:{xs:2,sm:3}},children:(0,n.jsx)(a.A,{headline:e,actions:[{href:m.Ay.pagePaths.jobSearch,label:"Zum Stellenmarkt"}],children:"Diese Funktion ist vor\xfcbergehend nicht m\xf6glich. Der Stellenmarkt und alle Stellenanzeigen stehen Dir weiterhin uneingeschr\xe4nkt zur Verf\xfcgung."})})}return P&&Z?(0,n.jsx)(b.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",py:{xs:4,sm:6},minHeight:{xs:"200px",sm:"250px"}},children:(0,n.jsx)(v.A,{})}):W&&Z?(0,n.jsxs)(b.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",py:{xs:4,sm:6},px:{xs:2,sm:3},minHeight:{xs:"200px",sm:"250px"}},children:[(0,n.jsx)(g.A,{sx:{fontSize:48,color:"error.main",mb:2}}),(0,n.jsx)(_.A,{sx:{fontWeight:"bold",fontSize:{xs:"1.15rem",sm:"1.5rem"}},children:D.errorHeadline}),D.errorDescription&&(0,n.jsx)(_.A,{variant:"body1",sx:{mt:1,mb:4,color:"text.secondary"},children:D.errorDescription}),(0,n.jsx)(i.A,{onClick:()=>X(G.current),children:"Erneut versuchen"})]}):z&&Z?(0,n.jsxs)(b.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",py:(null==C?void 0:C.successContent)?{xs:1,sm:1.5}:{xs:4,sm:6},px:{xs:2,sm:3},minHeight:{xs:"200px",sm:"250px"}},children:[!(null==C?void 0:C.successContent)&&(0,n.jsxs)(b.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:{xs:1.5,sm:2},mb:2},children:[(0,n.jsx)(b.A,{className:er().successBadge,children:(0,n.jsxs)("svg",{className:er().successCheckmark,viewBox:"0 0 36 36",children:[(0,n.jsx)("circle",{cx:"18",cy:"18",r:"16"}),(0,n.jsx)("polyline",{points:"11 18 16 23 25 13"})]})}),(0,n.jsx)(_.A,{sx:{fontWeight:"bold",fontSize:{xs:"1.15rem",sm:"1.5rem"}},children:D.successHeadline})]}),(null==C?void 0:C.successContent)?C.successContent:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{variant:"body1",sx:{mb:4,color:"text.secondary"},children:D.successDescription}),(0,n.jsxs)(b.A,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",sm:"row"}},children:[(null==C?void 0:C.successActionLabel)&&(null==C?void 0:C.onSuccessAction)&&(0,n.jsx)(i.A,{onClick:C.onSuccessAction,children:C.successActionLabel}),(0,n.jsx)(i.A,{layout:"secondary",onClick:Y,children:"Schlie\xdfen"})]})]})]}):L?(0,n.jsx)(E,{...N?C:{},children:(0,n.jsx)(rg,{job:null==C?void 0:C.job,handleShowLoginForm:()=>{M(0),T(!1)},contextType:k,onComplete:Q})}):(0,p.GK)(H,q)?(0,n.jsx)(b.A,{children:(null==V?void 0:V.id)?(0,n.jsx)(E,{...N?C:{},children:(0,n.jsx)(rg,{job:null==C?void 0:C.job,contextType:k,onComplete:Q})}):(0,n.jsx)(b.A,{sx:{py:4},children:(0,n.jsx)(o.A,{})})}):(0,n.jsxs)(b.A,{sx:{maxWidth:{xs:"100%",md:"600px"},marginTop:"1.5rem",marginBottom:6,marginLeft:"auto",marginRight:"auto",border:"3px solid #f3f5f7"},children:[(0,n.jsx)(b.A,{sx:{borderBottom:1,borderColor:"divider"},children:(0,n.jsxs)(y.A,{value:F,onChange:(e,t)=>
1{M(t)},variant:"fullWidth",centered:!0,sx:{background:"#f3f5f7"},children:[(0,n.jsx)(j.A,{icon:(0,n.jsx)(x.A,{}),iconPosition:"start",label:D.loginTabLabel,id:"tab-0","aria-controls":"tabpanel-0",sx:{textTransform:"none","&.Mui-selected":{fontWeight:"bold"}}}),(0,n.jsx)(j.A,{icon:(0,n.jsx)(f.A,{}),iconPosition:"start",label:D.registerTabLabel,id:"tab-1","aria-controls":"tabpanel-1",sx:{textTransform:"none","&.Mui-selected":{fontWeight:"bold"}}})]})}),(0,n.jsx)(rb,{value:F,index:0,children:(0,n.jsx)(l.a,{showProgress:!1,emailTitle:D.loginHeadline,submitLabel:D.loginCta,hideLoginNotification:Z,onSuccess:async()=>{if((0,u.sx)("wizard","wizard_login","wizard_login:".concat(k)),null==U||U(),(0,S.k)("user/data"),Z&&"jobmatch"!==k)await X(null==C?void 0:C.onLoginSuccess);else{var e;null==C||null==(e=C.onLoginSuccess)||e.call(C)}}})}),(0,n.jsxs)(rb,{value:F,index:1,children:[(0,n.jsxs)(b.A,{children:[(0,n.jsx)("h4",{className:er().headline,children:D.registerHeadline}),D.registerDescription?(0,n.jsx)("p",{children:D.registerDescription}):(0,n.jsxs)("p",{children:["Registriere Dich jetzt f\xfcr Deutschlands gr\xf6\xdften juristischen Stellenmarkt und erhalte passende Jobs per E-Mail.",(0,n.jsx)("br",{}),"100% kostenlos."]})]}),(0,n.jsx)(b.A,{sx:{textAlign:{xs:"center",md:"right"},py:4},children:(0,n.jsx)(i.A,{customClassName:"button--auto-width",onClick:()=>{T(!0),(0,u.sx)("wizard","wizard_registration_start","wizard_registration_start:".concat(k))},children:D.registerCta})})]})]})}},22041:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(28131),i=r(11704),l=r(56473);let a=e=>Array.isArray(e.locations)?e.locations.filter(e=>e.city).map(e=>e.city||"").filter((e,t,r)=>r.indexOf(e)===t):[],s={getId:e=>e.id,getTitle:e=>e.title,getEmailSubject:e=>e.applicationEmailSubject,getJobSource:e=>e.jobSource,getJobGroupType:e=>e.groupType,getEmployerLogo:function(e){var t,r;let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(null==(r=e.employer)||null==(t=r.logo)?void 0:t.filePath)return e.employer.logo;if(n){let t=l.A.getEmployerLogoMasked(e.employer),r=l.A.getEmployerLogo(e.employer);return(null==t?void 0:t.filePath)?t:r}return l.A.getEmployerLogo(e.employer)},getEmployerLogoMasked:e=>l.A.getEmployerLogoMasked(e.employer),getEmployerName:e=>l.A.getEmployerName(e.employer)||"",getCities:a,getCitiesAsString:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:", ";return Array.isArray(e.locations)?a(e).join(t):""},getOgImage:e=>{var t,r,n;return(null==(r=e.seo)||null==(t=r.metaImage)?void 0:t.filePath)?null==(n=e.seo)?void 0:n.metaImage:void 0},getEndtime:e=>{var t;return parseInt(null==(t=e.endtime)?void 0:t.timestamp)},getHidden:e=>e.hidden,getStatus:e=>e.status,isPaused:e=>void 0!==e.status?"paused"===e.status:!!e.pause,isEndedEarly:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return"ended_early"===e.status||!!e.endedEarlyAt&&new Date(e.endedEarlyAt)<=t},getDescriptionSorting:e=>{var t;return(null==(t=e.sortingTexts)?void 0:t.length)>0?e.sortingTexts:["description_responsibilities","description_qualifications","description_benefits"]},getOrganisationalFormId:e=>{var t;return null==(t=e.organisationalForm)?void 0:t.id},getOccupationsIds:e=>((null==e?void 0:e.occupations)||[]).map(e=>e.id),getCareerLevelsIds:e=>((null==e?void 0:e.careerLevels)||[]).map(e=>e.id),getFieldsOfLawIds:e=>((null==e?void 0:e.fieldOfLaws)||[]).map(e=>e.id),getEmploymentTypesIds:e=>((null==e?void 0:e.employmentTypes)||[]).map(e=>e.id),getSalaryConfig:e=>({salaryYear:e.salaryYear,salaryDay:e.salaryDay}),getApplyLink:e=>e.applyLink,getLocationsAsStr:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!e||!Array.isArray(e)||0===e.length)return"";let l=e;if(n){n=n.map(e=>e.toString().toLowerCase());let t=[],r=[];for(let i of e){i.id;let e=i.city||"";e&&(n.includes(e.toString().toLowerCase())?t.push(e):r.push(e))}l=[...t,...r]}let[a,s]=(0,i.Jh)(l,t);return a.join(r)+s},getRemoteOnlyLabel:e=>{let t=(e||[]).find(e=>e.id===n.Bt);return t?t.label||n.Ay.specialJobAttributes.remoteOnly:""},getVideos:e=>{var t;return(null==e||null==(t=e.medias)?void 0:t.filter(e=>"video"===e.mediaType&&e.videoId))||[]},getTeaserImage:e=>{var t;if(null==(t=e.teaserImage)?void 0:t.filePath)return e.teaserImage}}},23108:e=>{e.exports={item:"ItemDefault_item__qPcsZ",item__title:"ItemDefault_item__title__ss8R_",subheader:"ItemDefault_subheader__jRYX3","item__title--layout-default":"ItemDefault_item__title--layout-default__1YYfZ","item__title--layout-big":"ItemDefault_item__title--layout-big__uJNA7",item__content:"ItemDefault_item__content__Dvek3"}},39560:e=>{e.exports={logo:"UserMultiStepWizard_logo__lHLZ0",headline:"UserMultiStepWizard_headline__uM9oh",subheadline:"UserMultiStepWizard_subheadline__70H25",successBadge:"UserMultiStepWizard_successBadge__eSVZI",badgeScale:"UserMultiStepWizard_badgeScale__bDUtq",successCheckmark:"UserMultiStepWizard_successCheckmark__2z5Nt",circleDraw:"UserMultiStepWizard_circleDraw__0Z34M",checkDraw:"UserMultiStepWizard_checkDraw__G_qCu"}},40139:e=>{e.exports={selectItemGroup:"SelectItemGroup_selectItemGroup__vavgE",items:"SelectItemGroup_items__F9Ndd",grid:"SelectItemGroup_grid__hqU9_",selectItemGroupDropdown:"SelectItemGroup_selectItemGroupDropdown__84PAe",itemContainer:"SelectItemGroup_itemContainer__gfLnO",itemContainerOpened:"SelectItemGroup_itemContainerOpened__jK_NL",itemContainerClose:"SelectItemGroup_itemContainerClose__Cq_49",arrow:"SelectItemGroup_arrow__vQNjB",arrowFor0:"SelectItemGroup_arrowFor0__Mt3WB",selectItemGroupSize_small:"SelectItemGroup_selectItemGroupSize_small__FabN4",arrowFor1:"SelectItemGroup_arrowFor1__Obtxw",arrowFor2:"SelectItemGroup_arrowFor2__YLh_Q",arrowFor3:"SelectItemGroup_arrowFor3__LE4mE",arrowFor4:"SelectItemGroup_arrowFor4___amhX",arrowFor5:"SelectItemGroup_arrowFor5__VoVBu",errorMessage:"SelectItemGroup_errorMessage__btanM"}},40630:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(95155),i=r(58924),l=r(22041),a=r(15095),s=r.n(a);let o=e=>{var t,r,a,o;let{employerName:c,locations:d,workLocationTypes:u,searchParams:m,searchMeta:h,searchBoosting:p,separator:g=", ",limit:x=5,className:f=""}=e,b=p&&Array.isArray(p)?p.reduce((e,t)=>{var r;return[...e||[],...(null==t||null==(r=t.filter)?void 0:r.geodatas)||[]]},[]):[],v=null==h||null==(t=h.geo)?void 0:t.map(e=>e.uid),j=(null==h||null==(r=h.locations)?void 0:r.flatMap(e=>e.city))||v||b,y=j?[...j]:[];h&&(null==(a=h.geo)?void 0:a.city)&&y.push(null==(o=h.geo)?void 0:o.city);let _=[d&&d.length>0?l.A.getLocationsAsStr(d,x,g,y):"",l.A.getRemoteOnlyLabel(u)].filter(Boolean).join(g);return(0,n.jsx)("div",{className:"".concat(s().jobSubheader," ").concat(f),children:(0,n.jsxs)("div",{className:s().jobHeaderItem,children:[c&&(0,n.jsxs)("span",{children:[(0,n.jsx)(i.A,{name:"interface-home",size:"small",otherClass:s().employerNameIcon}),(0,n.jsx)("span",{className:s().employerName,children:c})]}),_&&(0,n.jsxs)("span",{children:[(0,n.jsx)(i.A,{name:"location",size:"default",otherClass:s().locationIcon}),(0,n.jsx)("span",{children:_})]})]})})}},41144:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(95155),i=r(7560),l=r.n(i),a=r(12115),s=r(12758),o=r.n(s),c=r(48106),d=r(23108),u=r.n(d),m=r(20889),h=r.n(m),p=r(58924);let g=e=>{let{className:t="",items:r=[]}=e;return(0,n.jsx)("div",{className:"".concat(h().subheader," ").concat(t),children:(0,n.jsx)("div",{className:h().headerItem,children:r.map(e=>e.label?(0,n.jsxs)("span",{children:[(0,n.jsx)(p.A,{name:e.iconName,size:e.iconSize||"small",otherClass:"".concat(h().icon," ").concat(e.iconClass?e.iconClass:"")}),(0,n.jsx)("span",{className:h().label,children:e.label})]},e.label):null)})})};g.propTypes={className:o().string,items:o().arrayOf(o().shape({label:o().string,iconName:o().string,iconSize:o().string,iconClass:o().string}))};let x=e=>{let{item:t}=e;return(0,n.jsx)("li",{className:u().item,children:(0,n.jsx)(c.Link,{href:t.link,prefetch:!1,className:u().item__content,children:(0,n.jsxs)("div",{className:l().item__info,children:[(0,n.jsx)("p",{className:"".concat(l().item__title," ").concat(u()["item__title--layout-".concat(t.titleLayout||"default")]),children:t.title}),t.subTitle&&(0,n.jsx)("p",{className:"".concat(l().item__subtitle),children:t.subTitle}),(0,n.jsx)(g,{items:t.subHeaderItems})]})})},t.id)};x.propTypes={item:o().shape({id:o().number,title:o().string,link:o().string,subHeaderItems:o().arrayOf(o().shape({label:o().string,iconName:o().string,iconSize:o().string,iconClass:o().string}))})};let f=e=>{let{items:t,layout:r="default"}=e;return t&&0!==t.length?(0,n.jsx)("ul",{className:"".concat(l().joblist," ").concat(l()["layout-"+r]),children:t.map((e,t)=>(0,n.jsx)(a.Fragment,{children:((e,t,r)=>{if("default"===e)return(0,n.jsx)(x,{item:t},r)})(r,e,t)},"job-list-item-".concat(t)))}):null};f.propTypes={layout:o().string,items:o().arrayOf(o().object)};let b=f},42404:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(95155),i=r(44286),l=r(31190),a=r(41574),s=r(70999),o=r(12115),c=r(56939);let d=e=>{let{valuekey:t="id",labelkey:r="label",sort:d=!0}=e,u=o.useMemo(()=>{if(!Array.isArray(e.options))return[];if(!d)return e.options;{let n=e.options.map(e=>{var t;return String(null!=(t=e[r])?t:"")}),l=i.A.sortValuesByAlphabet(n,"asc"),a=new Set,s=[];for(let n of l)for(let i=0;i<e.options.length;i++){var t;if(a.has(i))continue;let l=e.options[i];if(String(null!=(t=l[r])?t:"")===n){a.add(i),s.push(l);break}}return s}},[e.options,r]);return(0,n.jsx)(c.A,{...e,children:(0,n.jsx)(l.A,{id:e.name,select:!0,variant:"filled",fullWidth:!0,SelectProps:{displayEmpty:!0,renderValue:i=>{var l;return i?null==(l=e.options.find(e=>e[t]===i))?void 0:l[r]:(0,n.jsx)(a.A,{component:"span",sx:{color:"rgba(0, 0, 0, 0.4)"},children:"Ausw\xe4hlen..."})}},...e,label:void 0,children:u.map((e,i)=>(0,n.jsx)(s.A,{value:e[t],children:e[r]},"option-".concat(i)))})})}},42814:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,i:()=>l});var n=r(76189),i=r(67016);let l=(e,t,r,n)=>{let i=e+1,l="/api/jobs/search?page=".concat(e,"&limit=").concat(r.limit).concat(n?"&userId=".concat(n):"");return 0===e?[l,{...r,page:i}]:i>Math.ceil((null==t?void 0:t.totalFound)/(null==t?void 0:t.limit))?null:[l,{...r,page:i}]},a=(e,t)=>{var r;let{data:a,error:s,size:o,setSize:c,isValidating:d,mutate:u}=(0,i.Ay)((r,n)=>l(r,n,e,t),e=>{let[t,r]=e;return(0,n.Vw)(r).then(e=>e).catch(()=>[])},{keepPreviousData:!0,revalidateOnFocus:!0,revalidateOnMount:!0,revalidateOnReconnect:!1});return{jobs:(a||[]).reduce((e,t)=>
1(null==t?void 0:t.hasOwnProperty("items"))?e.concat(t.items):e,[]),facets:(null==a||null==(r=a[0])?void 0:r.hasOwnProperty("facets"))?null==a?void 0:a[0].facets:[],isLoading:d,isError:s||(null==a?void 0:a[0])===null,totalFound:(null==a?void 0:a[0].hasOwnProperty("totalFound"))?null==a?void 0:a[0].totalFound:0,loadNextPage:()=>c(o+1),pageSize:(null==a?void 0:a[0].hasOwnProperty("count"))?null==a?void 0:a[0].count:0,mutate:u}}},44904:(e,t,r)=>{"use strict";r.d(t,{iw:()=>l,or:()=>n,tW:()=>i});let n=e=>"".concat("https://backend.lto.de").concat(e),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"short";return"short"===t?e?"".concat(e.city):"":e?"".concat(e.zip," ").concat(e.city):""},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"short",n=[];for(let t of e)if(t.city){let e="short"===r?t.city:"".concat(t.zip||""," ").concat(t.city).concat(t.federalState?" (".concat(t.federalState,")"):"").trim();n.includes(e)||n.push(e)}return t&&n.push("Bundesweit"),n.join(", ")}},46744:(e,t,r)=>{"use strict";r.d(t,{A:()=>X});var n=r(95155),i=r(44904),l=r(22041),a=r(12115),s=r(41144),o=r(44258),c=r(42121),d=r(68756),u=r(83148),m=r(48244),h=r(35153),p=r(58248),g=r(28131),x=r(11044);let f="".concat("/karriere","/api/jobSearchSubscription");var b=r(41574),v=r(79488),j=r(41521),y=r(20063),_=r(5939),A=r.n(_);let w=e=>{let{searchParams:t,searchMeta:r,facets:i,userData:l,onClose:s,embedded:o,successHeadline:c,autoSubmit:m}=e,_=(0,y.useRouter)(),[w,S]=(0,a.useState)(0),[k,C]=(0,a.useState)(!1),I=async e=>{if(k)return;e.user.id,e.user.type;let n={},l=new Set(["query","filter","sort","limit","page"]);for(let e in t)l.has(e)&&(n[e]=t[e]);let a=(0,x.YY)(i,r,n);n.filter&&"object"==typeof n.filter&&Object.keys(n.filter).forEach(e=>{var t;let r=n.filter[e];if(!Array.isArray(r)||!r.every(e=>"string"==typeof e||"number"==typeof e))return;let i=null==(t=a[e])?void 0:t.items,l=new Set(Array.isArray(i)?i.map(e=>String(e.id)):[]),s=r.filter(e=>l.has(String(e)));0===s.length?delete n.filter[e]:n.filter[e]=s}),C(!0);let s=await fetch(f,{method:"POST",body:JSON.stringify({searchConfig:n||{},searchConfigReadable:a})});s.ok&&((0,u.sx)("jobs_per_mail","submit","success"),(0,d._)("jobsPerMailSubmit",{})),S(s.status),C(!1)},N=(0,j.Wx)({initialValues:{user:{id:null==l?void 0:l.id,type:"ltoCandidate"},generalTerms:1,apiKey:"development"},onSubmit:I}),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{m&&(null==l?void 0:l.id)&&!E.current&&(E.current=!0,N.submitForm())},[m,null==l?void 0:l.id]);let D={204:{headline:"Erfolgreich gespeichert",message:"Deine Suche wurde erfolgreich gespeichert."},422:{headline:"Bereits abonniert",message:"Die aktuelle Suche ist bereits als Job Alert hinterlegt."},480:{headline:"Keine Berechtigung",message:"Eingeloggte Benutzer darf diese Operation nicht ausf\xfchren."},500:{headline:"Fehler",message:"Beim Speichern ist ein Fehler aufgetreten."}},F=0!==w,M={success:{bg:"#e6f9ed",stroke:"#2ebd59"},error:{bg:"#fde8e8",stroke:"#e53e3e"},info:{bg:"#e8f4fd",stroke:"#1a73e8"}},L=e=>{let{text:t,variant:r}=e,{bg:i,stroke:l}=M[r];return(0,n.jsxs)(b.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:{xs:1.5,sm:2},mb:3},children:[(0,n.jsx)(b.A,{sx:{width:{xs:40,sm:56},height:{xs:40,sm:56},flexShrink:0,borderRadius:"50%",bgcolor:i,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsxs)("svg",{viewBox:"0 0 36 36",style:{width:28,height:28},children:[(0,n.jsx)("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:l,strokeWidth:"2"}),"success"===r&&(0,n.jsx)("polyline",{points:"11 18 16 23 25 13",fill:"none",stroke:l,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),"error"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("line",{x1:"13",y1:"13",x2:"23",y2:"23",stroke:l,strokeWidth:"2.5",strokeLinecap:"round"}),(0,n.jsx)("line",{x1:"23",y1:"13",x2:"13",y2:"23",stroke:l,strokeWidth:"2.5",strokeLinecap:"round"})]}),"info"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("line",{x1:"18",y1:"12",x2:"18",y2:"20",stroke:l,strokeWidth:"2.5",strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:"18",cy:"24",r:"1.5",fill:l})]})]})}),(0,n.jsx)(v.A,{sx:{fontWeight:"bold",fontSize:{xs:"1.15rem",sm:"1.5rem"}},children:t})]})},T=204===w,z=F?(0,n.jsx)(L,{text:(e=>{var t;return(null==(t=D[e])?void 0:t.headline)||"Fehler ".concat(e)})(w),variant:T?"success":"error"}):m?(0,n.jsx)(L,{text:c||"Erfolgreich angemeldet!",variant:"success"}):c?(0,n.jsx)(L,{text:c,variant:"success"}):(0,n.jsx)(v.A,{sx:{fontWeight:"bold",fontSize:{xs:"2rem",sm:"1.5rem"},marginTop:{sm:"1rem"},textAlign:"center",mb:3},children:"Job Alert einrichten"}),O=F?(0,n.jsxs)(b.A,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",sm:"row"},justifyContent:"center"},children:[(0,n.jsx)(h.A,{onClick:()=>{s&&s(),_.push(g.Ay.pagePaths.searchSubscriptionList)},children:"Aktive Job Alerts ansehen"}),(0,n.jsx)(b.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,n.jsx)(h.A,{layout:"secondary",onClick:()=>s&&s(),children:"Schlie\xdfen"})})]}
1):m?(0,n.jsx)(b.A,{sx:{display:"flex",justifyContent:"center",py:2},children:(0,n.jsx)(p.A,{})}):(0,n.jsx)("div",{className:"ce--space-before-extra-small ce--space-after-extra-small",children:(0,n.jsx)(h.A,{layout:"primary",type:"submit",isLoading:k,disabled:k,children:o?"Job Alert aktivieren":"Abonnieren"})});return(0,n.jsxs)("div",{className:"".concat(A().content).concat(o?" ".concat(A().contentEmbedded):""),children:[z,(0,n.jsx)(v.A,{variant:"body1",sx:{color:"text.secondary",mb:"2rem"},children:F?(e=>{var t;return(null==(t=D[e])?void 0:t.message)||"status ".concat(e)})(w):m?"Job Alert wird aktiviert...":(0,n.jsxs)(n.Fragment,{children:["Ich m\xf6chte Jobs passend zu meiner Suche ",(0,n.jsx)(()=>{var e;let l=(0,x.YY)(i,r,t),a=[];if((null==r||null==(e=r.queriesFormatted)?void 0:e.length)&&r.queriesFormatted.forEach(e=>{a.push(e)}),Object.values(l).forEach(e=>{var t;(null==e||null==(t=e.items)?void 0:t.length)&&e.items.forEach(e=>{(null==e?void 0:e.label)&&a.push(e.label)})}),0===a.length)return null;let s=a.slice(0,8),o=a.length-8,c=s.join(", ")+(o>0?" (+".concat(o,")"):"");return(0,n.jsx)(n.Fragment,{children:c})},{})," per E-Mail erhalten."]})}),(0,n.jsxs)("form",{onSubmit:N.handleSubmit,children:[(0,n.jsx)("input",{type:"hidden",name:"apiKey",value:N.values.apiKey}),(0,n.jsx)("input",{type:"hidden",name:"generalTerms",value:N.values.generalTerms}),(0,n.jsx)("input",{type:"hidden",name:"user[id]",value:N.values.user.id}),(0,n.jsx)("input",{type:"hidden",name:"user[type]",value:N.values.user.type}),O,!o&&!F&&(0,n.jsxs)("p",{className:A().disclaimer,children:["Informationen zur Deinen Widerrufsrechten und wie wir Deine Anmeldung protokollieren, findest Du in unseren"," ",(0,n.jsx)("a",{target:"_blank",href:"https://www.lto.de/rechtliches/datenschutz/?elqTrackId=bee9ab6724fb4b05b157671da43fd9e4&elqTrack=true",rel:"noreferrer",children:"Datenschutzhinweise"}),". Wir senden dir ausschlie\xdflich passende Jobangebote per Email. Du kannst Dich jederzeit abmelden."]})]})]})};var S=r(13886);let k=e=>{let{searchParams:t,searchMeta:r,facets:i,onClose:l,successHeadline:a,autoSubmit:s}=e,{userData:o}=(0,S.A)();return(null==o?void 0:o.id)?(0,n.jsx)(w,{searchParams:t,searchMeta:r,facets:i,userData:o,onClose:l,embedded:!0,successHeadline:a,autoSubmit:s}):(0,n.jsx)(p.A,{})};var C=r(21145),I=r(94507),N=r(36039),E=r(90807),D=r.n(E);let F=e=>{let{searchParams:t,searchMeta:r,facets:i}=e,{userData:l}=(0,S.A)(),s=(0,a.useContext)(m.o),{setOverlayModal:o,cleanOverlayModal:h}=(0,c.E)(),p=(0,N.hf)("default",l);return(0,n.jsx)("div",{className:D().card,children:(0,n.jsxs)("div",{className:D().content,children:[(0,n.jsx)("div",{className:D().iconWrapper,children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:[(0,n.jsx)("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z",clipRule:"evenodd"})]})}),(0,n.jsxs)("div",{className:D().text,children:[(0,n.jsx)("p",{className:D().headline,children:"Job Alert f\xfcr diese Suche aktivieren"}),(0,n.jsxs)("p",{className:D().description,children:["Erhalte neue Jobs f\xfcr ",(0,n.jsx)(()=>{var e;let l=(0,x.YY)(i,r,t),a=[];if((null==r||null==(e=r.queriesFormatted)?void 0:e.length)&&r.queriesFormatted.forEach(e=>{a.push(e)}),Object.values(l).forEach(e=>{var t;(null==e||null==(t=e.items)?void 0:t.length)&&e.items.forEach(e=>{(null==e?void 0:e.label)&&a.push(e.label)})}),0===a.length)return null;let s=a.slice(0,3),o=a.length-3,c=s.join(", ")+(o>0?" (+".concat(o,")"):"");return(0,n.jsx)(n.Fragment,{children:c})},{})," direkt per E-Mail."]})]}),(0,n.jsx)("div",{className:D().action,children:(0,n.jsx)("button",{className:"button button--primary",onClick:()=>{(0,u.sx)("job_per_mail_expanded"),(0,d._)("jobsPerMailExpanded",{}),p?o({contentComponent:(0,n.jsx)(w,{searchParams:s.searchParams,searchMeta:r,facets:i,userData:l,onClose:h,embedded:!0}),maxWidth:"sm"}):o({contentComponent:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I.A,{variant:"small",contextType:"jobalert",children:(0,n.jsx)("h3",{children:"Keine Karrierechance verpassen â Job Alert einrichten"})}),(0,n.jsx)(C.A,{contextType:"jobalert",contextProps:{onLoginSuccess:()=>{},successContent:(0,n.jsx)(k,{searchParams:s.searchParams,searchMeta:r,facets:i,onClose:h,successHeadline:"Erfolgreich angemeldet!",autoSubmit:!0})}})]}),maxWidth:"md"})},type:"button",children:"Job Alert aktivieren"})})]})})};var M=r(48106),L=r(46429),T=r(15239),z=r(89081),O=r.n(z),P=r(40630),B=r(89085),R=r(11011),W=r(19522),J=r(8747),G=r(69021),q=r(50677),H=r(97608),V=r(20712),U=r(26762);let Y=e=>{let{jobStart:t,jobEnd:r,itemClass:i}=e,l=e.jobStartTime||0;l||(l=t?(0,J.A)(t).getTime()/1e3:0);let a=e.jobEndTime||0;a||(a=r?(0,J.A)(r).getTime()/1e3:0);let s=new Date;if(l>0){let e=new Date(1e3*a);if((0,G.A)(e))return(0,n.jsx)("div",{className:i,children:"L\xe4uft heute ab"});if((0,q.A)(e))return(0,n.jsx)("div",{className:i,children:"L\xe4uft morgen ab"});let t=new Date(s.getFullYear(),s.getMonth(),s.getDate(),23,59,59);if((0,H.A)(e,{start:(0,V.A)(t,1),end:(0,V.A)(t,7)}))return(0,n.jsx)("div",{className:i,children:"L\xe4uft in K\xfcrze ab"})}if(l>0){let e=new Date(1e3*l);if((0,G.A)(e))return(0,n.jsx)("div",{className:i,children:"Gerade ver\xf6ffentlicht"});if((0,H.A)(e,{start:(0,U.A)(s,48),end:s}))return(0,n.jsx)("div",{className:i,children:"Gestern ver\xf6ffentlicht"})}return(0,n.jsx)(n.Fragment,{})};var Z=r(56473);let K=e=>{var t,r;let{job:s,searchParams:c,searchMeta:d,searchBoosting:u,attributes:m}=e,{userData:h,isValidating:p,error:x}=(0,S.A)(),f=(null==d?void 0:d.currentPage)>1,[b,v]=(0,a.useState)(!f),j=(0,N.hf)("default",h),y=(0,N.hf)("matching",h),_=o.A.getPathConfig("jobDetail",{slug:s.slug}),{matchPercent:A,matchCount:w,matchFromCount:k,matchTooltipText:C,hideMatchingScore:I}=(0,W.mI)(l.A.getId(s),h,m,{jobIsBundesweit:s.bundesweit,jobIsRemoteOnly:null==s||null==(t=s.workLocationTypes)?void 0:t.some(e=>e.label===g.Ay.specialJobAttributes.remoteOnly),jobLocations:(null==s?void 0:s.locations)||[],jobOrganisationalFormId:l.A.getOrganisationalFormId(s),jobActivityIds:l.A.getOccupationsIds(s),jobDegreeIds:l.A.getCareerLevelsIds(s),jobFieldOfLawIds:l.A.getFieldsOfLawIds(s),jobEmploymentTypeIds:l.A.getEmploymentTypesIds(s),jobSalaryConfig:l.A.getSalaryConfig(s),jobScoreMinPoints:Z.A.getMinScorePoints(s.employer),jobScoreMinGrade:Z.A.getMinScoreGrade(s.employer)});
1return(0,n.jsx)(L.pL,{threshold:.3,triggerOnce:"true",onChange:e=>{b||v(e)},as:"li",className:"".concat(f?b?O().jobitem__show:O().jobitem__hidden:O().jobitem__show," list-item--job"),"data-testid":p&&!x&&"userdataLoading","data-id":l.A.getId(s),"data-score":s.score,children:(0,n.jsxs)("div",{className:O().jobitem__content,children:[(0,n.jsx)(M.Link,{href:_,prefetch:!1,className:O().jobitem__logo,children:(null==(r=l.A.getEmployerLogo(s))?void 0:r.filePath)&&(0,n.jsx)("div",{className:O().jobitem__lazylogo,children:(0,n.jsx)(T.default,{src:(0,i.or)(l.A.getEmployerLogo(s).filePath),alt:"Logo von ".concat(l.A.getEmployerName(s)),layout:"fill",objectFit:"contain",loading:"lazy"})})}),(0,n.jsxs)(M.Link,{href:_,prefetch:!1,className:O().jobitem__info,children:[(0,n.jsx)("p",{className:O().jobitem__title,children:l.A.getTitle(s)}),(0,n.jsx)(P.A,{employerName:l.A.getEmployerName(s),locations:s.locations,workLocationTypes:s.workLocationTypes,searchParams:c,searchMeta:d,searchBoosting:u}),(0,n.jsx)(Y,{jobStart:s.start,jobEnd:s.stop,itemClass:O().job_expires})]}),(0,n.jsxs)("div",{className:"list-flex list-flex--center align-spaced",children:[m.employmentTypes&&m.degrees&&(0,n.jsx)(R.A,{percent:A,tooltipText:C,circleTextOverride:"".concat(w," / ").concat(k),circleTextUnit:"passend",matchingFeatureUnlocked:y,noMatchingPossible:I,isLoggedInUser:(0,N.hf)("default",h),typeButton:"primary",job:s,attributes:m}),(0,n.jsx)(B.A,{id:l.A.getId(s),isLoggedInUser:j,variant:"small",layout:"button",typeButton:"secondary",job:s})]})]})},l.A.getId(s))},X=e=>{let{header:t,jobs:r,pageSize:c=0,searchParams:d,searchMeta:u,searchBoosting:m,layout:h="extended",showNoJobsMessage:p=!1,attributes:g,facets:x,isActiveSearch:f}=e,b=f&&"search"===h&&!!x;if(!r)return null;if(["small","extended"].includes(h))return(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("h4",{className:"".concat(O().header," br-bottom-2 br-light-gray br-switch-to-white-on-same-bg text-center"),children:t}),(0,n.jsx)(s.A,{items:r.map(e=>({id:e.id,title:e.title,titleLayout:"extended"===h?"big":"",link:o.A.getPathConfig("jobDetail",e),subHeaderItems:[{label:e.employer.name,iconName:"interface-home",iconSize:"default",iconClass:O().employerNameIcon},{label:[(0,i.iw)(e.locations),l.A.getRemoteOnlyLabel(e.workLocationTypes)].filter(Boolean).join(", "),iconName:"location",iconSize:"default",iconClass:O().locationIcon}]}))})]});let v=e=>(0,n.jsx)("li",{className:O().jobAlertInlineItem,children:(0,n.jsx)(F,{searchParams:d,searchMeta:u,facets:x})},e);return(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("h4",{children:t}),(0,n.jsx)("ul",{className:"".concat(O().joblist," ").concat(O()["layout-"+h]),children:r.map((e,t)=>(0,n.jsxs)(a.Fragment,{children:[((e,t,r)=>{if("search"===e)return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(K,{job:t,searchParams:d,searchMeta:u,searchBoosting:m,attributes:g},r)})})(h,e,t),b&&2===t&&v("job-alert-after-3"),b&&2!==t&&!!c&&(t+1)%c==0&&v("job-alert-page-".concat(t))]},"job-list-item-".concat(t)))})]})}},47921:(e,t,r)=>{"use strict";r.d(t,{SessionProvider:()=>c,s:()=>o,t:()=>s});var n=r(95155),i=r(12115),l=r(96199);let a=(0,i.createContext)({readonly:!1,candidateReadonly:!1});function s(){return(0,i.useContext)(a).readonly}function o(){let{readonly:e,candidateReadonly:t}=(0,i.useContext)(a);return e||t}function c(e){let{children:t,session:r,readonlyMode:i=!1,readonlyModeCandidates:s=!1}=e;return(0,n.jsx)(a.Provider,{value:{readonly:i,candidateReadonly:s},children:(0,n.jsx)(l.CP,{session:r,refetchInterval:3600,basePath:"/karriere/api/auth",children:t})})}},48244:(e,t,r)=>{"use strict";r.d(t,{A:()=>p,o:()=>h});var n=r(95155),i=r(44286),l=r(44258),a=r(79924),s=r(42814),o=r(11044),c=r(21746),d=r(36039),u=r(20063),m=r(12115);let h=(0,m.createContext)({}),p=e=>{var t,r;let{jobsSearchSlug:p,initialSearchParams:g={},userId:x,children:f}=e,[b,v]=(0,m.useState)(null),[j,y]=(0,m.useState)({...a.V,...g}),[_,A]=(0,m.useState)([]),[w,S]=(0,m.useState)(!1);(0,m.useEffect)(()=>{S(!0)},[]);let{jobs:k,facets:C,isLoading:I,isError:N,totalFound:E,loadNextPage:D,pageSize:F,mutate:M}=(0,s.A)(j,x),{userData:L}=(0,c.A)(),T=!!(L&&(0,d.hf)("matching",L)),z=(0,u.useRouter)(),O=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l={type:"default",title:(0,o.$I)(e,t,r),timestamp:new Date().getTime()/1e3,queriesFormatted:(null==e?void 0:e.queries)||[],locationFormatted:r.length>0?r.map(e=>
1e.city+", "+e.radius):[],locations:r.length>0?r:void 0,geo:null==b?void 0:b.geo,currentPage:n,pageSize:i};return(null==b?void 0:b["@id"])&&(l.type="seo",l.seoPageData={...b},l.seoSearchFormTitle=(null==b?void 0:b.searchTitle)||"",l.seoSearchFormHide=(null==b?void 0:b.hideTopSearchForm)||!1),l},P=e=>({...e,boosting:[]});(0,m.useEffect)(()=>{var e,t;if((null==j||null==(e=j.cookieParams)?void 0:e.query)&&(null==j||null==(t=j.cookieParams)?void 0:t.query)!==""){let e=i.A.trim(j.cookieParams.query).toLowerCase().split(" ");y(t=>P({...t,query:e.join(" ")}))}},[null==j||null==(t=j.cookieParams)?void 0:t.query]),(0,m.useEffect)(()=>{var e;(null==j||null==(e=j.cookieParams)?void 0:e.filter)&&Object.keys(j.cookieParams.filter).length>0&&y(e=>{var t;return P({...e,filter:(null==(t=j.cookieParams)?void 0:t.filter)||{}})})},[null==j||null==(r=j.cookieParams)?void 0:r.filter]);let B=()=>{let e={...j};return(null==j?void 0:j.query)&&""!==j.query&&(e.queries=i.A.trim(j.query).toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1))),e};return(0,n.jsx)(h.Provider,{value:{jobsSearchSlug:p,isLoading:I,isError:N,isActiveSearch:((null==j?void 0:j.query)||"").length>0||Object.keys((null==j?void 0:j.filter)||{}).length>0,jobs:T?k:(0,o.u_)(k),pageSize:F,facets:C,jobsFound:E,jobsShown:(null==k?void 0:k.length)||0,searchParams:j,selectedLocations:_,searchMeta:O(B(),C,_),searchHistory:w?(0,o.BB)():[],boosting:w?(0,o.Wu)():[],loadNextPage:D,handleParamChange:(e,t)=>
1{y(r=>P({...r,[e]:t}))},handleFacetChange:(e,t)=>{y(r=>{var n,i;let l=null==r?void 0:r.filter,a=null==l?void 0:l[e],s=Array.isArray(a)?a.includes(t)?a.filter(e=>e!=t):[...a,t]:t?[t]:[],o={...r,filter:{...r.filter,[e]:s}};return(null==o||null==(n=o.filter)?void 0:n[e])&&s&&0===s.length&&(null==o||null==(i=o.filter)||delete i[e]),P(o)})},handleRadiusChange:e=>{y(t=>{var r;let n=((null==(r=t.filter)?void 0:r.locations)||[]).map(t=>({...t,radius:e}));return P({...t,filter:{...t.filter,locations:n}})}),A(t=>t.map(t=>({...t,radius:e})))},handleLocationRemove:e=>{y(t=>{var r;let n=((null==t||null==(r=t.filter)?void 0:r.locations)||[]).filter((t,r)=>r!==e),i={...t.filter,locations:n};return 0===n.length&&delete i.locations,P({...t,filter:i})}),A(t=>t.filter((t,r)=>r!==e))},handleSort:(e,t)=>{e&&t?y(r=>({...r,sort:{[e]:t}})):y(e=>({...e,sort:{relevance:"desc"}}))},handleJobSearch:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2],(null==e?void 0:e.query)&&(null==e?void 0:e.query)!==""){let t=i.A.trim(e.query).toLowerCase().split(" ");e.query=t.join(" ")}t&&Array.isArray(t)&&A(t),y(t=>P({...t,...e}))},handleResetSearch:()=>{(0,o.Vx)({args:j,meta:O(B(),C,_)}),y({...a.V,...g}),A([]);let e=l.A.getPathConfig("jobSearch");z.push(e)},setSelectedLocations:A,userData:L,setSeoPageData:v,mutateJobList:M},children:f})}},56473:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={getId:e=>null==e?void 0:e.id,getEmployerName:e=>null==e?void 0:e.name,getEmployerLogo:e=>null==e?void 0:e.logo,getEmployerLogoMasked:e=>null==e?void 0:e.logoAdditional,getEmployerMetaImage:e=>{var t;return null==e||null==(t=e.seo)?void 0:t.metaImage},getMinScorePoints:e=>parseFloat(((null==e?void 0:e.scoreMinClass)||"").replace("gt_","")||"0.0"),getMinScoreGrade:e=>(null==e?void 0:e.scoreMinGrade)||0}},56729:e=>{e.exports={featureInfo:"FeatureInfo_featureInfo__4KiKc",featureInfo__icon:"FeatureInfo_featureInfo__icon__T7dAO",featureInfo__item:"FeatureInfo_featureInfo__item__n1VZ3",featureInfo__item_icon:"FeatureInfo_featureInfo__item_icon__I6Mwr",jobAlert:"FeatureInfo_jobAlert__Hdkih",matching:"FeatureInfo_matching__Xfkhk",oneClick:"FeatureInfo_oneClick__jWLW3",featureInfo__item_label:"FeatureInfo_featureInfo__item_label__VgJR2"}},56939:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(95155),i=r(60138),l=r(41574),a=r(68060),s=r(65654);r(12115);let o=e=>{let{name:t,label:r,tooltip:o,required:c,error:d=!1,helpertext:u="",center:m=!1,children:h}=e;return(0,n.jsxs)("div",{className:"p-relative",children:[r&&(0,n.jsxs)(a.A,{htmlFor:t,children:[r," ",c&&(0,n.jsx)("span",{children:"*"})," ",o?(0,n.jsx)(l.A,{component:"span",sx:{display:"inline"},children:(0,n.jsx)(i.A,{text:e.tooltip})}):null]}),h,(u||"string"==typeof d)&&(0,n.jsx)(s.A,{error:!!d,sx:{marginTop:"10px",fontSize:"12px",lineHeight:"15.6px"},children:"string"==typeof d?d:u})]})}},56989:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{let{condition:t,wrapper:r,children:n}=e;return t?r(n):n}},58248:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(95155);r(12115);let i=e=>{let{message:t}=e;return(0,n.jsxs)("div",{className:"sk-chase__content",children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"sk-chase",children:[(0,n.jsx)("div",{className:"sk-chase-dot"}),(0,n.jsx)("div",{className:"sk-chase-dot"}),(0,n.jsx)("div",{className:"sk-chase-dot"}),(0,n.jsx)("div",{className:"sk-chase-dot"}),(0,n.jsx)("div",{className:"sk-chase-dot"}),(0,n.jsx)("div",{className:"sk-chase-dot"})]})}),t&&(0,n.jsx)("p",{className:"sk-chase__message",children:t})]})}},60138:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(95155);r(12115);var i=r(82062),l=r(18444),a=r(12758),s=r.n(a),o=r(92032),c=r(21756);let d=e=>{let{text:t,placement:r="auto",icon:a,iconCssOverride:s={},className:d,children:u}=e,[m]=(0,c.c6)(),h=(0,o.A)();return a&&u?s={...s,position:"absolute",top:"-1rem",right:"-1rem"}:a||""===a||(a="Alert"),(0,n.jsx)(l.StatefulTooltip,{accessibilityType:"tooltip",content:t,placement:r,triggerType:h.isMobile?l.TRIGGER_TYPE.click:l.TRIGGER_TYPE.hover,overrides:{Body:{style:{zIndex:999}},Inner:{style:()=>({maxWidth:"35rem",fontSize:"1rem",lineHeight:"1.2"})}},children:(0,n.jsxs)("div",{className:m({position:"relative",display:"inline-block"}),children:["Alert"==a&&(0,n.jsx)(i.Alert,{className:d,overrides:{Svg:{style:()=>({margin:"0 0.1rem",transform:"rotate(180deg)!important",...s})}},size:20,title:""}),"DeleteAlt"==a&&(0,n.jsx)(i.DeleteAlt,{overrides:{Svg:{style:()=>({margin:"0 0.5rem",transform:"rotate(180deg)!important"})}},size:25,title:""}),"Check"==a&&(0,n.jsx)(i.Check,{overrides:{Svg:{style:()=>({margin:"0 0.5rem"})}},size:25,title:""}),u]})})};d.defaults={placement:"auto"}
1,d.propTypes={text:s().oneOfType([s().string,s().node]).isRequired,placement:s().string};let u=d},63950:e=>{e.exports={gridScore:"Fields_gridScore__JTc67",gridOneColumn:"Fields_gridOneColumn__mzlFm",contentSuccess:"Fields_contentSuccess__mwmEb",iconSuccess:"Fields_iconSuccess__7iNsq"}},68756:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=(e,t)=>{var r;(null==(r=window)?void 0:r.hasOwnProperty("dataLayer"))&&window.dataLayer.push({event:e,...t})}},70188:e=>{e.exports={match:"ProfilMatching_match__yGcXe",match__toptext:"ProfilMatching_match__toptext__aR9TZ",matchLocked:"ProfilMatching_matchLocked__FzXSy",match__progress:"ProfilMatching_match__progress__2czIm",match__percent:"ProfilMatching_match__percent__Q9iNM",unit:"ProfilMatching_unit__9JPzK",lockedMatching:"ProfilMatching_lockedMatching__Htf3l",lockedMatchingText:"ProfilMatching_lockedMatchingText__gfAJD",match__bottomtext:"ProfilMatching_match__bottomtext__XyNYa",blur:"ProfilMatching_blur__MoPnd"}},76189:(e,t,r)=>{"use strict";r.d(t,{J2:()=>s,Vw:()=>l,iA:()=>a});var n=r(85276),i=r(44258);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.F)("".concat("https://www.lto.de").concat(i.A.createLinkWithBasepath("/api/jobs/search")),e,"POST",!0,t)},a=(e,t)=>(0,n.F)("".concat("https://www.lto.de").concat(i.A.createLinkWithBasepath("/api/jobs/expand/".concat(e))),t,"POST"),s=(e,t)=>{let r="".concat("https://www.lto.de").concat(i.A.createLinkWithBasepath("/api/jobs/".concat(e,"/token/").concat(t,"/views")));return(0,n.F)(r)}},78336:e=>{e.exports={FormSectionContentOverride:"Files_FormSectionContentOverride__p87fX",fileWrapper:"Files_fileWrapper__sOW2n",headline:"Files_headline__QNMtc",text:"Files_text__i3W33",fileWrapperText:"Files_fileWrapperText__DPq1F",fileList:"Files_fileList__j0IvB",fileItem:"Files_fileItem__4JUJ9",fileIcon:"Files_fileIcon__BWxdp",fileName:"Files_fileName__WcPe2",deleteButton:"Files_deleteButton__JFy0S"}},78945:e=>{e.exports={container:"Skeleton_container__cPPe3",headerRow:"Skeleton_headerRow__gVEQW",titleShimmer:"Skeleton_titleShimmer__svWIQ",editShimmer:"Skeleton_editShimmer__Y_Jnu",options:"Skeleton_options__SlUeb",optionShimmer:"Skeleton_optionShimmer__Y0Wpv",shimmer:"Skeleton_shimmer__6sNo4"}},79924:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});let n={page:1,limit:20,sort:{relevance:"desc"}}},86391:e=>{e.exports={formSection:"FormSection_formSection__XJl40",formSectionEmbedded:"FormSection_formSectionEmbedded___gAGu",headerContainer:"FormSection_headerContainer__sdAwb",formSection__title:"FormSection_formSection__title__Mx2nd",formSection__title_highlight:"FormSection_formSection__title_highlight__SYZUu",formSection__hasRequiredFields:"FormSection_formSection__hasRequiredFields__ERmUG",formSection__edit:"FormSection_formSection__edit__8LoXK",formSection__add:"FormSection_formSection__add__r7yMw",subHeaderAreaContent:"FormSection_subHeaderAreaContent__22N33",subHeaderAreaContent_close:"FormSection_subHeaderAreaContent_close__W4ZPI",subHeaderAreaContent_open:"FormSection_subHeaderAreaContent_open__jGj0Z",description:"FormSection_description__FRZfA",content:"FormSection_content__c3Top",stateBar:"FormSection_stateBar__wmSbP",stateBar_open:"FormSection_stateBar_open__VPn_R",color:"FormSection_color__8BGY3",text:"FormSection_text__pUvdL",default:"FormSection_default__UUyaG",error:"FormSection_error___YLvx",subHeaderArea:"FormSection_subHeaderArea__5hGQG",pendingSaveInfo:"FormSection_pendingSaveInfo___9o6K",show:"FormSection_show__glC63",button_dropdown:"FormSection_button_dropdown__7zed8",dropdown__value:"FormSection_dropdown__value__EPq9Q",dropdown__edit:"FormSection_dropdown__edit__vAvZA",dropdown_close:"FormSection_dropdown_close__U02Ic",dropdown_open:"FormSection_dropdown_open__TWdK_",edit_info:"FormSection_edit_info__A8J5j",progres:"FormSection_progres__IMuvB"}},86896:(e,t,r)=>{"use strict";r.d(t,{BH:()=>l,Do:()=>a,Me:()=>n,N9:()=>i,lS:()=>o,rG:()=>s});let n={DEGREE:{VOLLJURIST:"fully_qualified_lawyer",JURIST:"lawyer",STUDENT_ONGOING:"student",STUDENT_MAIN_FOCUS:"student_with_main_focus",STUDENT_PFLICHTTEIL:"student_with_state_part",TRAINEE:"trainee_lawyer",RENO_REFA_ASSISTENCE:"lawyer_assistance",BACHELOR_OF_LAWS:"bachelor_of_laws",MASTER_OF_LAWS:"master_of_laws",BACHELOR_NON_LAW:"bachelor_non_law",MASTER_NON_LAW:"master_non_law"}},i=[n.DEGREE.RENO_REFA_ASSISTENCE,n.DEGREE.BACHELOR_OF_LAWS,n.DEGREE.MASTER_OF_LAWS,n.DEGREE.BACHELOR_NON_LAW,n.DEGREE.MASTER_NON_LAW],l=["score1","score2","scoreMainFocuses","scoreMandatoryPart","scoreGrade","semester"],a={[n.DEGREE.STUDENT_ONGOING]:["semester"],[n.DEGREE.STUDENT_MAIN_FOCUS]:["scoreMainFocuses","semester"],[n.DEGREE.STUDENT_PFLICHTTEIL]:["scoreMandatoryPart","semester"],[n.DEGREE.JURIST]:["score1","scoreMainFocuses","scoreMandatoryPart"],[n.DEGREE.TRAINEE]:["score1","scoreMainFocuses","scoreMandatoryPart"],[n.DEGREE.VOLLJURIST]:["score1","score2","scoreMainFocuses","scoreMandatoryPart"],[n.DEGREE.RENO_REFA_ASSISTENCE]:["scoreGrade"],[n.DEGREE.BACHELOR_OF_LAWS]:["scoreGrade"],[n.DEGREE.MASTER_OF_LAWS]:["scoreGrade"],[n.DEGREE.BACHELOR_NON_LAW]:["scoreGrade"],[n.DEGREE.MASTER_NON_LAW]:["scoreGrade"]},s={"Mr.":{id:"Mr.",label:"Herr"},"Ms.":{id:"Ms.",label:"Frau"},Divers:{id:"Divers",label:"Divers"}}
1,o={"Dr.":{id:"Dr.",label:"Dr."},"Prof.":{id:"Prof.",label:"Prof."}}},89081:e=>{e.exports={header:"JobList_header__DafzN",joblist:"JobList_joblist__fZ_eX","layout-small":"JobList_layout-small__EDE4t",jobitem__show:"JobList_jobitem__show__11sx_",jobitem__hidden:"JobList_jobitem__hidden__NcbdW",jobitem__tops:"JobList_jobitem__tops__LGjBa",jobitem__title:"JobList_jobitem__title__5n51B",jobitem__share:"JobList_jobitem__share__v0m2o",jobitem__social:"JobList_jobitem__social__ksosJ",jobitem__content:"JobList_jobitem__content__gZXfY",jobitem__logo:"JobList_jobitem__logo__EvUL2",jobitem__lazylogo:"JobList_jobitem__lazylogo__zbtjj",jobitem__info:"JobList_jobitem__info__H0Vvm",jobitem__sharetext:"JobList_jobitem__sharetext__NIT3h",locationIcon:"JobList_locationIcon__tnyQM",employerNameIcon:"JobList_employerNameIcon__bbzcy",jobAlertInlineItem:"JobList_jobAlertInlineItem__63Njt",job_expires:"JobList_job_expires__wE3G3"}},89085:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(95155),i=r(12115);let l="".concat("/karriere","/api/user/bookmarks"),a=e=>fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:e})});var s=r(46512),o=r(28131);let c=()=>fetch(l,{method:"GET",headers:{Accept:"application/json"}}).then(e=>e.json()).then(e=>{var t;return null!=(t=e["hydra:member"])?t:[]});var d=r(41823),u=r(88427),m=r(58924),h=r(20063),p=r(35153),g=r(42121),x=r(21145),f=r(94507);let b=e=>{let{id:t,job:r,layout:b="button",typeButton:v="primary",isLoggedInUser:j,className:y=""}=e,_=(0,h.useRouter)(),[A,w]=(0,i.useState)(!1),{bookmarks:S,mutate:k}=(()=>{let{data:e,error:t,mutate:r}=(0,s.Ay)("job-bookmarks",c,{...o.Ay.globalSwrConfig,revalidateOnMount:!0,revalidateOnFocus:!0,fallbackData:[]});return{bookmarks:e,error:t,mutate:r}})(),{setOverlayModal:C,cleanOverlayModal:I}=(0,g.E)(),N=j&&(S||[]).some(e=>{var r;return(null==(r=e.job)?void 0:r.id)==t}),E=async()=>{if(!(await a(t)).ok)throw Error("Bookmark konnte nicht gesetzt werden");k()},D=N?"Job nicht merken":"Job merken",F=N?"favorite-fill":"favorite",M=N?e=>{if(e.preventDefault(),A||!j)return;let r=(S||[]).find(e=>{var r;return(null==(r=e.job)?void 0:r.id)==t});if(r){let e;w(!0),(e=r.id,fetch("".concat(l,"/").concat(e),{method:"DELETE"})).then(async e=>{if(e.ok)k(),(0,d.D)("Der Bookmark wurde gel\xf6scht.",u.O.SUCCESS);else{var t;let r=await e.json();(0,d.D)(null==(t=r.errors)?void 0:t[0],u.O.ALERT)}}).finally(()=>{w(!1)})}}:e=>{if(e.preventDefault(),!j)return void(e.preventDefault(),C({contentComponent:(0,n.jsxs)(n.Fragment,{children:[(null==r?void 0:r.title)&&(0,n.jsx)(f.A,{variant:"small",contextType:"bookmark",children:(0,n.jsx)("h3",{children:r.title})}),(0,n.jsx)(x.A,{contextType:"bookmark",contextProps:{job:r,onLoginSuccess:E,onComplete:E,successActionLabel:"Zur Merkliste",onSuccessAction:()=>{I(),_.push(o.Ay.pagePaths.jobBookmarkList)}}})]}),maxWidth:"md"}));A||(w(!0),a(t).then(async e=>{if(e.ok)(0,d.D)("Job wurde der Merkliste hinzugef\xfcgt.",u.O.SUCCESS,{actionOnClick:()=>{_.push(o.Ay.pagePaths.jobBookmarkList)},actionMessage:"Zur Merkliste"}),k();else{var t;let r=await e.json();(0,d.D)(null==(t=r.errors)?void 0:t[0],u.O.ALERT)}}).finally(()=>{w(!1)}))};return(0,n.jsx)("div",{className:"add_to_bookmarks ".concat(y),"data-testid":"add-to-bookmarks-button",children:"button"===b?(0,n.jsx)(p.A,{layout:v,startEnhancer:()=>(0,n.jsx)(m.A,{name:F,size:"medium"}),onClick:M,type:"button",children:D}):(0,n.jsx)("button",{className:"add_to_bookmarks__button",onClick:M,title:D,children:(0,n.jsx)(m.A,{name:F,size:"base",otherClass:"mg-global-0 color-black"})})})}},89512:(e,t,r)=>{"use strict";r.d(t,{GT:()=>a});var n=r(85276),i=r(44258);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[0].startsWith("http")||(t[0]="https://www.lto.de"+i.A.createLinkWithBasepath(t[0])),(0,n.F)(...t)},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"simple";return l("/api/attributes/city/?term=".concat(e,"&responseType=").concat(t))}},90807:e=>{e.exports={card:"JobAlertInlineCard_card__DEAol",content:"JobAlertInlineCard_content__ippIH",iconWrapper:"JobAlertInlineCard_iconWrapper__6UPq9",text:"JobAlertInlineCard_text__EkH9w",headline:"JobAlertInlineCard_headline__6uOQK",description:"JobAlertInlineCard_description__PDHeF",action:"JobAlertInlineCard_action__Vg8ux"}},91996:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(95155),i=r(31190),l=r(79488);r(12115);var a=r(56939);let s=e=>{let{value:t,maxLength:r}=e;return(0,n.jsxs)(a.A,{...e,children:[(0,n.jsx)(i.A,{id:e.name,variant:"filled",fullWidth:!0,...e,inputProps:{maxLength:null!=r?r:void 0},multiline:!0,label:void 0,error:!1,helperText:void 0,sx:{"& .MuiInputBase-root":{padding:"0.3875rem 1rem"}}}),e.maxLength&&(0,n.jsxs)(l.A,{variant:"body2",gutterBottom:!0,sx:{marginTop:"10px",textAlign:"right",color:r<=t.length?"error.main":""},children:["Zeichen: ",null==t?void 0:t.length," / ",r]})]})}},94507:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(95155),i=r(41574),l=r(79488);r(12115);let a={application:"Easy Apply",bookmark:"Job Merkliste",jobalert:"Job Alert",jobmatch:"Job Matching"},s=e=>{let{children:t,variant:r="default",contextType:s}=e,o=s?a[s]:void 0;return(0,n.jsx)(i.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:2.5,md:5}},children:(0,n.jsxs)(i.A,{sx:{bgcolor:"grey.100",width:"100%",padding:{xs:"1rem",md:"1rem 2rem"}
1,marginBottom:0,marginTop:0,..."small"===r&&{"& h3":{fontSize:"1.25rem",margin:0}}},children:[o&&(0,n.jsx)(l.A,{component:"span",sx:{display:"block",fontSize:"0.75rem",fontWeight:700,color:"primary.main",mb:.5},children:o}),t]})})}}}]);
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.