1"use strict";(globalThis.rspackChunk_karriere_karriere_at_k4||=[]).push([[9231],{42965(e,t,o){o.d(t,{A:()=>m});var n=o(20641),i=o(90033),l=o(50953),a=o(27328),s=o(42579),r=o(31286);let u={class:"m-followButton"},d=["data-event"];var m={__name:"FollowButton",props:{id:{type:String},link:{type:Boolean},smallButton:{type:Boolean},event:{type:String},labelGreen:{type:Boolean}},setup(e){let{isFollowed:t,follow:o,unfollow:m}=(0,r.Z)(e.id);function v(){t.value?m():o()}return(o,r)=>((0,n.uX)(),(0,n.CE)("div",u,[(0,n.Lk)("button",{class:(0,i.C4)(["m-followButton__button",[e.link?"m-followButton__button--link":"",e.smallButton?"m-followButton__button--small":""]]),"data-event":!(0,l.R1)(t)&&e.event?e.event:null,onClick:v},[(0,l.R1)(t)?((0,n.uX)(),(0,n.Wv)((0,l.R1)(a.A),{key:0,class:"m-icon--small m-followButton__icon"})):((0,n.uX)(),(0,n.Wv)((0,l.R1)(s.A),{key:1,class:"m-icon--small m-followButton__icon"})),(0,n.Lk)("span",{class:(0,i.C4)(["m-followButton__label",{"m-followButton__labelGreen":e.labelGreen}])},(0,i.v_)((0,l.R1)(t)?"Firma gefolgt":"Firma folgen"),3)],10,d)]))}}},64226(e,t,o){o.d(t,{A:()=>d});var n=o(20641),i=o(90033),l=o(50953),a=o(42965);let s={class:"m-subNavigation__wrap"},r=["href","data-event"],u={key:0,class:"m-subNavigation__follow"};var d={__name:"SubNavigation",props:{id:{type:String},hasAnchor:{type:Boolean,default:!1},links:{type:Object},isSticky:{type:Boolean,default:!1},hasFollowButton:{type:Boolean,default:!1},hasBottomBorder:{type:Boolean,default:!1},isWrapped:{type:Boolean,default:!1},wrapFullWidth:{type:Boolean,default:!1},hasSlimItems:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:t}){let o=(0,n.rk)("subNavigationList"),d=(0,n.rk)("shadowStart"),m=(0,n.rk)("shadowEnd"),v=(0,l.KR)([]),h=(0,n.EW)(()=>e.links.find(e=>e.active)),c=(0,n.EW)(()=>{let t=e.links.findIndex(e=>e.active);return -1!==t?v.value[t]:null});function f(e,t){window.requestAnimationFrame(()=>{e.classList.toggle("m-subNavigation__shadow--visible",t)})}function w(e){t("navigate",e)}return(0,n.sV)(()=>{let t,n;c.value&&!window.matchMedia("(min-width: 1024px)").matches&&function(){if(h.value){let e=o.value,t=e.clientWidth,n=h.value.clientWidth;e.scrollLeft=h.value.offsetLeft-(t/2-n/2)}}(),t=o.value.scrollLeft<=0,n=Math.ceil(o.value.scrollLeft)>=o.value.scrollWidth-o.value.offsetWidth,f(d.value,!t),f(m.value,!n),window.addEventListener("firstUserInteraction",()=>{e.links.forEach(t=>{let o=t.href.includes("?")?"&":"?";"true"===new URLSearchParams(window.location.search).get("hide-mf-header")&&(t.href+=`${o}hide-mf-header=true`),e.hasAnchor&&(t.href+="#content")})})}),(t,l)=>((0,n.uX)(),(0,n.CE)("nav",{class:(0,i.C4)(["m-subNavigation",{"m-subNavigation--grayBorder":e.hasBottomBorder,"m-subNavigation--sticky":e.isSticky}])},[(0,n.Lk)("div",s,[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e.isWrapped?"div":"template"),{class:(0,i.C4)(["m-subNavigation__wrapInner",{"m-subNavigation__wrapInner--fullWidth":e.wrapFullWidth}])},{default:(0,n.k6)(()=>[(0,n.Lk)("ul",{ref_key:"subNavigationList",ref:o,class:"m-subNavigation__list"},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.links,(t,o)=>((0,n.uX)(),(0,n.CE)("li",{key:o,class:"m-subNavigation__item"},[(0,n.Lk)("a",{ref_for:!0,ref:e=>v.value[o]=e,class:(0,i.C4)(["m-subNavigation__link",{"m-subNavigation__link--active":t.active,"m-subNavigation__link--small":e.hasSlimItems}]),href:t.href,"data-event":t.event||null,onClick:w},(0,i.v_)(t.title),11,r)]))),128))],512),(0,n.Lk)("div",{ref_key:"shadowStart",ref:d,class:"m-subNavigation__shadow m-subNavigation__shadow--start"},null,512),(0,n.Lk)("div",{ref_key:"shadowEnd",ref:m,class:"m-subNavigation__shadow m-subNavigation__shadow--end"},null,512),e.hasFollowButton?((0,n.uX)(),(0,n.CE)("div",u,[(0,n.bF)(a.A)])):(0,n.Q3)("",!0)]),_:1},8,["class"]))])],2))}}},6103(e,t,o){var n=o(24407),i=o.n(n),l=o(22929),a=o(40423),s=o(86599),r=o(5308),u=o(66970),d=o(33897);let m=new class{constructor(){this.events=new(i()),this.events.setMaxListeners(30),this.ids=null,this.fetch=null}fetchAll(){return!!l.k.isLoggedIn()&&!this.fetch&&(this.fetch=(0,a.Tt)(u.vp,{},e=>this.onResponse(e),e=>this.onError(e)),!0)}onResponse(e){this.fetch=!1,this.ids=e.ids,this.events.emit("onResponse")}onError(e){this.fetch=!1,this.ids=null,this.events.emit("onError",{error:e})}onFollowError(e){if(l.k.isLoggedIn())this.events.emit("onFollowError",e);else{let t=(0,s.b)(e);this.events.emit("onUnauthorized",{companyFollowObject:t})}}onFollowResponse(e){if(!Array.isArray(this.ids))return!1;this.ids.push(e),this.events.emit("onAddJob");let t=document.documentElement.getAttribute("data-event-category"),o="company_follow_success";return"page: companies"===t?(0,r.KW)({event:o,company_id:e??null,method:"Company Search"}):(0,r.KW)({event:o,company_id:e??null,method:"Company Profile"}),!0}followCompany(e){return(0,a.B2)(`${u.mk}/${e}`,{},()=>this.onFollowResponse(e),e=>this.onFollowError(e)),!0}unfollowCompany(e){if((0,a.ig)(`${u.nb}/${e}`,{},!1,e=>(0,s.b)(e)),null===this.ids)return!1;let t=this.ids.indexOf(e);return(!!Array.isArray(this.ids)||-1!==t)&&(this.ids.splice(t,1),this.events.emit("onRemoveJob"),!0)}isFollowed(e){return!!Array.isArray(this.ids)&&this.ids.indexOf(e)>-1}};!(0,d.f)()&&window.app&&(window.app.userCompanyFollow=m),o.d(t,{},{w:m})},31286(e,t,o){var n=o(50953),i=o(20641),l=o(6103),a=o(21992),s=o(95190),r=o(37513);let{showLoginModal:u,setRedirectUrl:d}=(0,a.v)();l.w.events.on("onUnauthorized",e=>{let{companyFollowObject:t}=e.arguments[0];d(t.state),u()});let m=null;function v(e){let t=(0,n.KR)(!1),o=()=>{e&&(t.value=l.w.isFollowed(e))};return(0,i.sV)(()=>{l.w.fetchAll(),o(),l.w.events.on("onResponse",o),l.w.events.on("onAddJob",o),l.w.events.on("onRemoveJob",o)}),(0,i.xo)(()=>{l.w.events.removeListener("onResponse",o),l.w.events.removeListener("onAddJob",o),l.w.events.removeListener("onRemoveJob",o)}),{isFollowed:t,follow:()=>{e&&l.w.followCompany(e)},unfollow:()=>{e&&l.w.unfollowCompany(e)},setCompanyAlarmNotificationInterval:e=>{m=e}}}l.w.events.on("onAddJob",()=>{let e;if(m){let t=(0,r.k7)(m).toLowerCase();e=`Ab sofort erh\xe4ltst du ${t} neue Jobs dieser Firma per E-Mail.`}else e="Ab sofort ist diese Firma in deinem Firmen-Alarm hinterlegt.";(0,s.t)({text:e,icon:!1,link:"/settings/notifications#c-notificationIndex-companyalarm",linkText:"Anpassen"})}),l.w.events.on("onRemoveJob",()=>{(0,s.t)({text:"Du erhältst ab sofort keine Neuigkeiten mehr zu dieser Firma."})}),l.w.events.on("onFollowError",e=>{let{error:t}=e;[].forEach.call(t.arguments[0].errors,e=>{e.meta.company_follow_max_limit&&(0,s.t)({text:"Oje, du hast das Maximum schon erreicht! Um dieser Firma zu folgen, entfolge einer anderen Firma.",link:"/companyalarm?openAccordion=true",linkText:"Zum Firmen-Alarm "})})}),o.d(t,{Z:()=>v})}}]); 2//# sourceMappingURL=9231.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.