1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{7484:function(e){var n;n=function(){"use strict";var e="millisecond",n="second",t="minute",r="hour",i="week",a="month",o="quarter",u="year",s="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}},v=function(e,n,t){var r=String(e);return!r||r.length>=n?e:""+Array(n+1-r.length).join(t)+e},h="en",p={};p[h]=f;var g="$isDayjsObject",m=function(e){return e instanceof S||!(!e||!e[g])},y=function e(n,t,r){var i;if(!n)return h;if("string"==typeof n){var a=n.toLowerCase();p[a]&&(i=a),t&&(p[a]=t,i=a);var o=n.split("-");if(!i&&o.length>1)return e(o[0])}else{var u=n.name;p[u]=n,i=u}return!r&&i&&(h=i),i||!r&&h},b=function(e,n){if(m(e))return e.clone();var t="object"==typeof n?n:{};return t.date=e,t.args=arguments,new S(t)},_={s:v,z:function(e){var n=-e.utcOffset(),t=Math.abs(n);return(n<=0?"+":"-")+v(Math.floor(t/60),2,"0")+":"+v(t%60,2,"0")},m:function e(n,t){if(n.date()<t.date())return-e(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,a),o=t-i<0,u=n.clone().add(r+(o?-1:1),a);return+(-(r+(t-i)/(o?i-u:u-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:u,w:i,d:"day",D:s,h:r,m:t,s:n,ms:e,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};_.l=y,_.i=m,_.w=function(e,n){return b(e,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var S=function(){function f(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var n=e.date,t=e.utc;if(null===n)return new Date(NaN);if(_.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(l);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return t?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(n)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return _},v.isValid=function(){return this.$d.toString()!==c},v.isSame=function(e,n){var t=b(e);return this.startOf(n)<=t&&t<=this.endOf(n)},v.isAfter=function(e,n){return b(e)<this.startOf(n)},v.isBefore=function(e,n){return this.endOf(n)<b(e)},v.$g=function(e,n,t){return _.u(e)?this[n]:this.set(t,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,o){var c=this,l=!!_.u(o)||o,d=_.p(e),f=function(e,n){var t=_.w(c.$u?Date.UTC(c.$y,n,e):new Date(c.$y,n,e),c);return l?t:t.endOf("day")},v=function(e,n){return _.w(c.toDate()[e].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(n)),c)},h=this.$W,p=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return l?f(1,0):f(31,11);case a:return l?f(1,p):f(0,p+1);case i:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return f(l?g-b:g+(6-b),p);case"day":case s:return v(m+"Hours",0);case r:return v(m+"Minutes",1);case t:return v(m+"Seconds",2);case n:return v(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(i,o){var c,l=_.p(i),d="set"+(this.$u?"UTC":""),f=((c={}).day=d+"Date",c[s]=d+"Date",c[a]=d+"Month",c[u]=d+"FullYear",c[r]=d+"Hours",c[t]=d+"Minutes",c[n]=d+"Seconds",c[e]=d+"Milliseconds",c)[l],v="day"===l?this.$D+(o-this.$W):o;if(l===a||l===u){var h=this.clone().set(s,1);h.$d[f](v),h.init(),this.$d=h.set(s,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](v);return this.init(),this},v.set=function(e,n){return this.clone().$set(e,n)},v.get=function(e){return this[_.p(e)]()},v.add=function(e,o){var s,c=this;e=Number(e);var l=_.p(o),d=function(n){var t=b(c);return _.w(t.date(t.date()+Math.round(n*e)),c)};if(l===a)return this.set(a,this.$M+e);if(l===u)return this.set(u,this.$y+e);if("day"===l)return d(1);if(l===i)return d(7);var f=((s={})[t]=6e4,s[r]=36e5,s[n]=1e3,s)[l]||1,v=this.$d.getTime()+e*f;return _.w(v,this)},v.subtract=function(e,n){return this.add(-1*e,n)},v.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return t.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,o=this.$m,u=this.$M,s=t.weekdays,l=t.months,f=t.meridiem,v=function(e,t,i,a){return e&&(e[t]||e(n,r))||i[t].slice(0,a)},h=function(e){return _.s(a%12||12,e,"0")},p=f||function(e,n,t){var r=e<12?"AM":"PM";return t?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return _.s(n.$y,4,"0");case"M":return u+1;case"MM":return _.s(u+1,2,"0");case"MMM":return v(t.monthsShort,u,l,3);case"MMMM":return v(l,u);case"D":return n.$D;case"DD":return _.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return v(t.weekdaysMin,n.$W,s,2);case"ddd":return v(t.weekdaysShort,n.$W,s,3);case"dddd":return s[n.$W];case"H":return String(a);case"HH":return _.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return _.s(o,2,"0");case"s":return String(n.$s);case"ss":return _.s(n.$s,2,"0");case"SSS":return _.s(n.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},v.diff=function(e,s,c){var l,d=this,f=_.p(s),v=b(e),h=(v.utcOffset()-this.utcOffset())*6e4,p=this-v,g=function(){return _.m(d,v)};switch(f){case u:l=g()/12;break;case a:l=g();break;case o:l=g()/3;break;case i:l=(p-h)/6048e5;break;case"day":l=(p-h)/864e5;break;case r:l=p/36e5;break;case t:l=p/6e4;break;case n:l=p/1e3;break;default:l=p}return c?l:_.a(l)},v.daysInMonth=function(){return this.endOf(a).$D},v.$locale=function(){return p[this.$L]},v.locale=function(e,n){if(!e)return this.$L;var t=this.clone(),r=y(e,n,!0);return r&&(t.$L=r),t},v.clone=function(){return _.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),x=S.prototype;return b.prototype=x,[["$ms",e],["$s",n],["$m",t],["$H",r],["$W","day"],["$M",a],["$y",u],["$D",s]].forEac
1h(function(e){x[e[1]]=function(n){return this.$g(n,e[0],e[1])}}),b.extend=function(e,n){return e.$i||(e(n,S,b),e.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=p[h],b.Ls=p,b.p={},b},e.exports=n()},7124:function(e){var n;n=function(){return function(e,n,t){n.prototype.isToday=function(){var e="YYYY-MM-DD",n=t();return this.format(e)===n.format(e)}}},e.exports=n()},356:function(e){var n;n=function(){return function(e,n,t){n.prototype.isYesterday=function(){var e="YYYY-MM-DD",n=t().subtract(1,"day");return this.format(e)===n.format(e)}}},e.exports=n()},1935:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stellen",function(){return t(7197)}])},5532:function(e,n,t){"use strict";t.d(n,{H:function(){return u}});var r=t(7568),i=t(2670),a=t(7582),o=t(7066);function u(e,n){return s.apply(this,arguments)}function s(){return(s=(0,r.Z)(function(e,n){var t,r;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),(0,i.Z)(n,Error)||(n=Error(JSON.stringify(n))),console.error("".concat(e,": ").concat(n)),t={errorMessage:e,name:null==n?void 0:n.name,message:null==n?void 0:n.message,stack:null==n?void 0:n.stack},[4,o.Z.post("/api/log-error",t)];case 1:return a.sent(),[3,3];case 2:return r=a.sent(),console.error("Error capturing error",r),[3,3];case 3:return[2]}})})).apply(this,arguments)}},76:function(e,n,t){"use strict";t.d(n,{QY:function(){return d},yP:function(){return r}});var r,i,a=t(7568),o=t(7582),u=t(7066),s=t(7294),c=t(6514),l=t(5532);(i=r||(r={})).SUCCESS="SUCCESS",i.PENDING="PENDING",i.FAILURE="FAILURE",i.UNKNOWN="UNKNOWN";var d=function(e){var n;return new Promise((n=(0,a.Z)(function(n){var t,i;return(0,o.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,u.Z.get("".concat(c.Y.EXTERNAL_REST_GATEWAY_ENDPOINT).concat(c.Y.SAGA_STATUS_URL,"/").concat(e))];case 1:switch((t=a.sent()).data){case"SUCCESS":return[2,n(r.SUCCESS)];case"FAILURE":default:return[2,n(r.FAILURE)];case"PENDING":return[2,n(r.PENDING)]}return[3,3];case 2:return i=a.sent(),(0,l.H)("Fetching saga status failed for saga ".concat(e),i),n(r.FAILURE),[3,3];case 3:return[2]}})}),function(e){return n.apply(this,arguments)}))},f=function(){var e=(0,s.useState)(r.UNKNOWN),n=e[0],t=e[1],i=(0,s.useState)(""),u=i[0],c=i[1],l=(0,s.useState)(""),f=l[0],v=l[1],h=(0,s.useCallback)(function(e){var n=0,i=setInterval((0,a.Z)(function(){var a;return(0,o.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),[4,d(e)];case 1:return(a=o.sent())!==r.PENDING&&(t(a),clearInterval(i)),[3,4];case 2:return o.sent(),t(r.FAILURE),clearInterval(i),[3,4];case 3:return++n>60&&(t(r.FAILURE),clearInterval(i)),[7];case 4:return[2]}})}),1e3)},[]);return(0,s.useEffect)(function(){u?(t(r.PENDING),h(u)):t(r.UNKNOWN)},[u,h]),[n,c,t,f,v]};n.ZP=f},4148:function(e,n,t){"use strict";var r=t(1794);n.Z=function(e,n,t){return(0,r.aM)(e,{variables:n,skip:(null==t?void 0:t.skip)||!1,fetchPolicy:(null==t?void 0:t.fetchPolicy)||"cache-first"})}},7197:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eo}});var r,i=t(7568),a=t(6042),o=t(9396),u=t(828),s=t(7297),c=t(7582),l=t(5893),d=t(9545),f=t(796),v=t(7066),h=t(7484),p=t.n(h),g=t(7124),m=t.n(g),y=t(356),b=t.n(y),_=t(9008),S=t.n(_),x=t(1163),$=t(7294),w=t(4173),C=t(9521),k=t(9787),j=t(5371),I=t(2442),D=function(e){var n=e.theme;return(0,l.jsxs)(d.xu,{alignItems:"center",alignSelf:"center",flexDirection:"column",width:"33.25rem",children:[(0,l.jsx)(d.ck,{marginBottom:"1.5rem",children:(0,l.jsx)(d.A.IconBox,{type:"upgrade",icon:"GeneralLock"})}),(0,l.jsx)(d.ck,{marginBottom:"0.5rem",width:"17rem",children:(0,l.jsx)(d.A.Title,{size:"Headline16Medium",style:{textAlign:"center"},children:"Schalten Sie dieses Feature f\xfcr Ihr Unternehmen frei."})}),(0,l.jsx)(d.ck,{children:(0,l.jsx)(d.A.Text,{size:"Body14Regular",marginBottom:"1rem",align:"center",color:n.common.colors.tertiary._500,children:"Nutzen Sie ein Upgrade, um Stellen ver\xf6ffentlichen zu k\xf6nnen."})}),(0,l.jsx)(d.A.Button,{buttonType:"upgrade",size:"l",href:"mailto:[email protected]",target:"_blank",children:"Jetzt Upgrade freischalten"})]})},A=(0,C.withTheme)(D),E=t(349),M=t(9534),N=t(1873);function P(){var e=(0,s.Z)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 2.5rem;\n width: auto;\n min-width: 2.5rem;\n padding: 0.375rem 0.5rem;\n margin-right: 0.5rem;\n background-color: var(--bg-inline);\n\n border: solid 1px;\n border-radius: var(--radius-button-general);\n border-color: var(--border-inline);\n\n font-size: var(--fontSize-14);\n line-height: var(--lineHeight-20);\n font-weight: 500;\n color: var(--color-inline);\n white-space: nowrap;\n text-decoration: none;\n\n outline: none;\n cursor: pointer;\n transition:\n border-color ease 0.3s,\n color ease 0.3s,\n background-color ease 0.3s;\n flex: auto;
1\n\n :nth-last-child(1) {\n margin-right: 0;\n }\n\n &:hover {\n transition: ease 0.3s;\n color: var(--color-hover-inline);\n border-color: var(--border-hover-inline);\n background-color: var(--bg-hover-inline);\n }\n "," {\n height: 2rem;\n min-width: var(--filterButton-Width);\n width: var(--width-inline);\n flex: auto;\n }\n"]);return P=function(){return e},e}function T(){var e=(0,s.Z)(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return T=function(){return e},e}var Z=C.default.a.withConfig({componentId:"sc-14fed1af-0"})(P(),d.mq.desktop),O=C.default.div.withConfig({componentId:"sc-14fed1af-1"})(T()),U=function(e){var n=e.pages,t=e.value,r=e.onPageChanged,i=e.href,u=(0,M.Z)(e,["pages","value","onPageChanged","href"]),s=[];t<1&&(t=1),t>n&&(t=n);var c=n>=3?3:n;s=1==t?Array.from({length:c},function(e,n){return n+1}):t==n?Array.from({length:c},function(e,t){return n+t-(c-1)}):[t-1,t,t+1];var d=(0,$.useCallback)(function(e,t){e>=1&&e<=n&&r(e),t.preventDefault()},[r,n]);return(0,l.jsxs)(O,(0,o.Z)((0,a.Z)({},u),{children:[(0,l.jsx)(Z,{onClick:function(e){return d(1,e)},style:{cursor:1==t?"not-allowed":"pointer","--color-inline":1==t?"var(--tertiary_200)":"var(--tertiary_500)","--color-hover-inline":1==t?"var(--tertiary_200)":"var(--tertiary_800)","--border-inline":1==t?"var(--tertiary_100)":"var(--tertiary_200)","--border-hover-inline":1==t?"var(--tertiary_100)":"var(--tertiary_500)","--bg-inline":"var(--filter-button-bg)","--bg-hover-inline":"var(--filter-button-bg)"},children:(0,l.jsx)(N.Icon,{size:"small",icon:"GeneralChevronsLeft"})}),(0,l.jsx)(Z,{style:{cursor:1==t?"not-allowed":"pointer","--color-inline":1==t?"var(--tertiary_200)":"var(--tertiary_500)","--color-hover-inline":1==t?"var(--tertiary_200)":"var(--tertiary_800)","--border-inline":1==t?"var(--tertiary_100)":"var(--tertiary_200)","--border-hover-inline":1==t?"var(--tertiary_100)":"var(--tertiary_500)","--bg-inline":"var(--filter-button-bg)","--bg-hover-inline":"var(--filter-button-bg)"},onClick:function(e){return d(t-1,e)},children:(0,l.jsx)(N.Icon,{size:"small",icon:"GeneralChevronLeft"})}),s.map(function(e,n){return(0,l.jsx)(Z,(0,o.Z)((0,a.Z)({onClick:function(n){return d(e,n)},style:{cursor:"pointer","--color-inline":t===e?"white":"var(--tertiary_500)","--color-hover-inline":t===e?"white":"var(--tertiary_800)","--border-inline":t===e?"var(--tertiary_500)":"var(--tertiary_200)","--border-hover-inline":"var(--tertiary_500)","--bg-inline":t===e?"var(--tertiary_500)":"var(--filter-button-bg)","--bg-hover-inline":t===e?"var(--tertiary_500)":"var(--filter-button-bg)"},href:i+(1===e?"":"?page=".concat(e))},u),{children:e}),n)}),(0,l.jsx)(Z,{style:{cursor:t==n?"not-allowed":"pointer","--color-inline":t==n?"var(--tertiary_200)":"var(--tertiary_500)","--color-hover-inline":t==n?"var(--tertiary_200)":"var(--tertiary_800)","--border-inline":t==n?"var(--tertiary_100)":"var(--tertiary_200)","--border-hover-inline":t==n?"var(--tertiary_100)":"var(--tertiary_500)","--bg-inline":"var(--filter-button-bg)","--bg-hover-inline":"var(--filter-button-bg)"},onClick:function(e){return d(t+1,e)},children:(0,l.jsx)(N.Icon,{size:"small",icon:"GeneralChevronRight"})}),(0,l.jsx)(Z,{style:{cursor:t==n?"not-allowed":"pointer","--color-inline":t==n?"var(--tertiary_200)":"var(--tertiary_500)","--color-hover-inline":t==n?"var(--tertiary_200)":"var(--tertiary_800)","--border-inline":t==n?"var(--tertiary_100)":"var(--tertiary_200)","--border-hover-inline":t==n?"var(--tertiary_100)":"var(--tertiary_500)","--bg-inline":"var(--filter-button-bg)","--bg-hover-inline":"var(--filter-button-bg)"},onClick:function(e){return d(n,e)},children:(0,l.jsx)(N.Icon,{size:"small",icon:"GeneralChevronsRight"})})]}))},Y=t(2996),L=t(6514),G=t(8806);function H(){var e=(0,s.Z)(['\n query ($id: String!, $portal_type: String) {\n customer(\n filter: [\n { field: "customers.id", operation: "$eq", value: $id }\n { field: "portals.portal_type", operation: "$eq", value: $portal_type }\n ]\n ) {\n id\n slug\n portals {\n id\n vacancy_consumption\n max_vacancy_count\n customer_tier\n }\n branches: non_main_branches {\n id\n identifier\n }\n }\n }\n']);return H=function(){return e},e}var z=(0,G.Ps)(H());function R(){var e=(0,s.Z)(['\n query ($id: String!, $portal_type: String!, $limit: Int, $page: Int, $searchFilter: String) {\n job_postings(\n page: $page\n limit: $limit\n sort: [{ field: "created_at", order: "ASC" }
1]\n filter: [\n { field: "job_postings.customer_id", operation: "$eq", value: $id }\n { field: "origin_portal_type", operation: "$eq", value: $portal_type }\n ]\n s: $searchFilter\n ) {\n entities {\n id\n name\n status\n employment_start_date\n activated_till\n updated_at\n imported\n internal_custom_reference_id\n vacancies {\n id\n slug\n vacancy_count\n branch {\n city\n postal_code\n }\n }\n }\n page\n total\n count\n pageCount\n }\n }\n']);return R=function(){return e},e}var F=(0,G.Ps)(R()),B=t(5532),W=t(76),J=t(4148);function q(){var e=(0,s.Z)(["\n height: 45rem;\n display: flex;\n justify-content: center;\n"]);return q=function(){return e},e}function V(){var e=(0,s.Z)(["\n padding: 1.5rem 2rem 0;\n width: 100%;\n margin-bottom: 2rem;\n"]);return V=function(){return e},e}function X(){var e=(0,s.Z)(["\n margin-right: 2rem;\n min-height: 1.5rem;\n"]);return X=function(){return e},e}function K(){var e=(0,s.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-bottom: 1.5rem;\n"]);return K=function(){return e},e}var Q,ee=(0,C.default)(function(e){return(0,l.jsx)(d.A.Card,(0,a.Z)({},e))}).withConfig({componentId:"sc-2d9bbe62-0"})(q()),en=(0,C.default)(function(e){return(0,l.jsx)(d.xu,(0,a.Z)({flexFlow:"row nowrap",justifyContent:"space-between"},e))}).withConfig({componentId:"sc-2d9bbe62-1"})(V()),et=C.default.div.withConfig({componentId:"sc-2d9bbe62-2"})(X()),er=C.default.div.withConfig({componentId:"sc-2d9bbe62-3"})(K());(Q=r||(r={})).active="aktivieren",Q.inactive="deaktivieren",Q.paused="pausieren";var ei=L.Y.PORTAL_TYPE,ea=function(e){var n,t,s,f,h,g,y,_,C,D,M,N,P,T,Z,O,G,H,R,q=e.user,V=(0,$.useState)([]),X=V[0],K=V[1],Q=(0,$.useState)(""),ea=Q[0],eo=Q[1],eu=(0,u.Z)((0,W.ZP)(),3),es=eu[0],ec=eu[1],el=eu[2],ed=(0,$.useState)(!1),ef=ed[0],ev=ed[1],eh=(0,$.useState)(!1),ep=eh[0],eg=eh[1],em=(0,$.useState)(!1),ey=em[0],eb=em[1],e_=(0,$.useState)(!1),eS=e_[0],ex=e_[1],e$=(0,$.useState)(""),ew=e$[0],eC=e$[1],ek=(0,$.useState)(""),ej=ek[0],eI=ek[1],eD=(0,$.useState)(""),eA=eD[0],eE=eD[1],eM=(0,$.useState)(!1),eN=eM[0],eP=eM[1],eT=(0,$.useState)({limitPerPage:25,pageCount:0,currentPage:1}),eZ=eT[0],eO=eT[1],eU=(0,$.useState)(""),eY=eU[0],eL=eU[1],eG=(0,x.useRouter)();p().extend(m()),p().extend(b());var eH,ez,eR=(0,J.Z)(F,{id:q.maintainedCustomers[0].id,portal_type:ei,limit:eZ.limitPerPage,page:eZ.currentPage,searchFilter:eY},{fetchPolicy:"cache-and-network"}),eF=(0,J.Z)(z,{id:q.maintainedCustomers[0].id,portal_type:ei},{fetchPolicy:"cache-and-network"}),eB=(null===(s=((null==eF?void 0:null===(n=eF.data)||void 0===n?void 0:null===(t=n.customer)||void 0===t?void 0:t.portals)||[])[0])||void 0===s?void 0:s.max_vacancy_count)||0,eW=(null===(g=((null==eF?void 0:null===(f=eF.data)||void 0===f?void 0:null===(h=f.customer)||void 0===h?void 0:h.portals)||[])[0])||void 0===g?void 0:g.vacancy_consumption)||0,eJ=(0,$.useMemo)(function(){return null==eR?void 0:eR.loading},[eR]),eq=(0,$.useMemo)(function(){var e,n;return(null==eR?void 0:null===(e=eR.data)||void 0===e?void 0:null===(n=e.job_postings)||void 0===n?void 0:n.total)===0&&""===ea},[null==eR?void 0:null===(y=eR.data)||void 0===y?void 0:y.job_postings,ea]),eV=(0,$.useMemo)(function(){var e,n,t;return(null==eF?void 0:null===(e=eF.data)||void 0===e?void 0:null===(n=e.customer)||void 0===n?void 0:null===(t=n.branches)||void 0===t?void 0:t.length)===0},[null==eF?void 0:null===(_=eF.data)||void 0===_?void 0:null===(C=_.customer)||void 0===C?void 0:C.branches]),eX=(0,$.useMemo)(function(){var e,n;return(null==eF?void 0:null===(e=eF.data)||void 0===e?void 0:null===(n=e.customer)||void 0===n?void 0:n.portals[0].customer_tier)==="non_partner"},[null==eF?void 0:null===(D=eF.data)||void 0===D?void 0:null===(M=D.customer)||void 0===M?void 0:M.portals]),eK=(0,$.useMemo)(function(){var e,n,t;return null===(t=((null==eF?void 0:null===(e=eF.data)||void 0===e?void 0:null===(n=e.customer)||void 0===n?void 0:n.portals)||[])[0])||void 0===t?void 0:t.id},[eF]),eQ=(0,$.useMemo)(function(){var e=new Date;return e.setHours(0,0,0,0),e.getTime()},[]),e0=(0,$.useMemo)(function(){return[{Header:"Stellentitel",accessor:"title"},{Header:"Ort",accessor:"location"},{Header:"Beginn",accessor:"employment_start_date"},{Header:"L\xe4uft ab",accessor:"end"},{Header:"Letztes Update",accessor:"updated_at"},{Header:"Status",accessor:"status"},{Header:"id",accessor:"id"},{Header:"slug",accessor:"slug"},{Header:"imported",accessor:"imported"},{Header:"Interne ID",accessor:"internalCustomReferenceId"},]}
1,[]),e1=(0,$.useMemo)(function(){return["job_postings.name","internal_custom_reference_id"]},[]),e2=(0,$.useCallback)(function(){(0,w.Am)((0,l.jsx)(d.A.Notification,{icon:"GeneralCheck",mode:"primary",message:ew}))},[ew]),e3=(0,$.useCallback)((eH=(0,i.Z)(function(e){var n,t;return(0,c.__generator)(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,3,4]),ef)return[2];return ev(!0),eg(!1),eC("Stelle wurde gel\xf6scht"),[4,v.Z.delete("".concat(L.Y.EXTERNAL_REST_GATEWAY_ENDPOINT).concat(L.Y.SAGA_JOB_POSTING_BASE_URL,"/").concat(e))];case 1:return ec(n.sent().data),[3,4];case 2:return t=n.sent(),(0,B.H)("Deleting job posting failed for id ".concat(e),t),ev(!1),el(W.yP.FAILURE),[3,4];case 3:return eI(""),[7];case 4:return[2]}})}),function(e){return eH.apply(this,arguments)}),[ef,el,ec]),e5=(0,$.useCallback)(function(e){"undefined"!=typeof localStorage&&localStorage.getItem("overviewJobPostingDelete")?e3(e):(eI(e),eg(!0))},[]),e4=(0,$.useCallback)(function(e,n){eI(e),eE(n),eb(!0)},[]),e6=(0,$.useCallback)(function(e){eO((0,o.Z)((0,a.Z)({},eZ),{currentPage:e}))},[eZ]),e7=(0,$.useCallback)(function(e){eo(e.target.value)},[]),e9=(0,$.useCallback)((ez=(0,i.Z)(function(e,n){var t,r,i,a,o,u,s,l;return(0,c.__generator)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,2,3,4]),ef)return[2];return ev(!0),eb(!1),eC("Stelle wurde ".concat("active"===n?"aktiviert":"deaktiviert")),o=null===(a=null===(t=eR.data)||void 0===t?void 0:null===(r=t.job_postings)||void 0===r?void 0:null===(i=r.entities)||void 0===i?void 0:i.find(function(n){return n.id==e}))||void 0===a?void 0:a.activated_till,u={jobPostingId:e,portalId:eK,postingStatus:n,activatedTill:new Date(o)<new Date?null:o},[4,(0,v.Z)({url:"".concat(L.Y.EXTERNAL_REST_GATEWAY_ENDPOINT).concat(L.Y.SAGA_JOB_POSTING_UPDATE_SETTINGS_TAB_URL),method:"PATCH",data:u})];case 1:return ec(s.sent().data),[3,4];case 2:return l=s.sent(),(0,B.H)("Updating job posting failed for id ".concat(e),l),ev(!1),el(W.yP.FAILURE),[3,4];case 3:return eI(""),eE(""),[7];case 4:return[2]}})}),function(e,n){return ez.apply(this,arguments)}),[ef,eK,el,ec,null===(N=eR.data)||void 0===N?void 0:null===(P=N.job_postings)||void 0===P?void 0:P.entities,]),e8=(0,$.useCallback)(function(e,n){eG.push("/stellen/bearbeiten/[id]?active=".concat(n),"/stellen/bearbeiten/".concat(e,"?active=").concat(n))},[eG]),ne=(0,$.useCallback)(function(e){eG.push({pathname:"/stellen/neu",query:{duplicateId:e}})},[eG]),nn=(0,$.useCallback)(function(){eG.push("/standorte","/standorte")},[eG]),nt=(0,$.useCallback)(function(){eV?ex(!0):eG.push("/stellen/neu","/stellen/neu")},[eV,eG]),nr=(0,$.useCallback)(function(e){return"".concat(("0"+e.date()).slice(-2),".").concat(("0"+(e.month()+1)).slice(-2),".").concat(e.year())},[]);return(0,$.useEffect)(function(){es===W.yP.SUCCESS&&(eR.refetch(),eF.refetch(),e2()),es!==W.yP.PENDING&&ev(!1)},[es]),(0,$.useEffect)(function(){eV&&!eX&&ex(!0)},[eV,eX]),(0,$.useEffect)(function(){eW==eB||eX?eP(!0):eP(!1)},[eW,eB,eX]),(0,$.useEffect)(function(){if(!(null==eR?void 0:eR.loading)){var e,n,t=null===(e=eR.data)||void 0===e?void 0:null===(n=e.job_postings)||void 0===n?void 0:n.pageCount;eO((0,o.Z)((0,a.Z)({},eZ),{currentPage:eZ.currentPage>t?t>0?t:1:eZ.currentPage,pageCount:t}))}},[eR]),(0,$.useEffect)(function(){var e=[];e.push({"job_postings.customer_id":q.maintainedCustomers[0].id}),e.push({origin_portal_type:ei});var n=ea.split(" ").filter(function(e){return!!e});if(0!=n.length){var t={$and:n.map(function(e){return{$or:e1.map(function(n){var t={};return t[n]={$contL:e},t})}})};e.push(t)}eL(JSON.stringify({$and:e}))},[ea,e1,q.maintainedCustomers]),(0,$.useEffect)(function(){var e,n,t,r;(null==eR?void 0:null===(e=eR.data)||void 0===e?void 0:null===(n=e.job_postings)||void 0===n?void 0:n.entities)&&K(null==eR?void 0:null===(t=eR.data)||void 0===t?void 0:null===(r=t.job_postings)||void 0===r?void 0:r.entities.map(function(e){var n,t=((null==e?void 0:e.vacancies)||[]).filter(function(e){return e.vacancy_count>0}).map(function(e){var n=e.branch;return"".concat((null==n?void 0:n.postal_code)||""," ").concat((null==n?void 0:n.city)||"")}).join(", "),r=p()(e.employment_start_date),i=e.activated_till?p()(e.activated_till):"Unbefristet",a=p()(e.updated_at),o=", ".concat(("0"+a.hour()).slice(-2),":").concat(("0"+a.minute()).slice(-2)," Uhr"),u=a.isToday()?"Heute":a.isYesterday()?"Gestern":nr(a);return{id:e.id,title:e.name,location:t,employment_start_date:r.isValid()?nr(r):"Nach Absprache",end:"string"==typeof i?i:nr(i),updated_at:"".concat(u).
1concat(o),status:e.status,imported:e.imported,vacancies:e.vacancies.length?e.vacancies.map(function(e){return e.vacancy_count}).reduce(function(e,n){return e+n}):0,firstVacancySlug:null===(n=e.vacancies[0])||void 0===n?void 0:n.slug,internalCustomReferenceId:e.internal_custom_reference_id}}))},[nr,null==eR?void 0:null===(T=eR.data)||void 0===T?void 0:null===(Z=T.job_postings)||void 0===Z?void 0:Z.entities,eQ]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S(),{children:(0,l.jsx)("title",{children:"MeinPraktikum.de Dashboard - Stellen"})}),(null==q?void 0:q.impersonatedBy)?(0,l.jsx)(I.Z,{user:q}):null,(0,l.jsxs)(Y.Z,{activeLink:/[/]stellen/g,customerSlug:null==eF?void 0:null===(O=eF.data)||void 0===O?void 0:null===(G=O.customer)||void 0===G?void 0:G.slug,collapsed:!1,profileName:"".concat(q.firstName," ").concat(q.lastName),profileImgAlt:"Profil",pageTitle:"Verwalten Sie Ihre Stellen",pageOverline:"Stellen",children:[(0,l.jsx)(d.A.Grid.Row,{children:(0,l.jsxs)(d.A.Grid.Col,{w:"",children:[eX&&eq?(0,l.jsx)(ee,{style:{alignItems:"center"},children:(0,l.jsx)(A,{})}):null,eX||eV||!eq?null:(0,l.jsx)(ee,{children:(0,l.jsx)(j.Z,{marginTop:"14rem",onClickCallback:nt,type:"Jobs",headline:"Bisher sind noch keine Stellen vorhanden.",subtext:"Erstellen und ver\xf6ffentlichen Sie jetzt Ihre erste Stellenanzeige f\xfcr Ihr Unternehmen und freuen Sie sich auf Ihre ersten Bewerbungen.",buttonText:"Stelle hinzuf\xfcgen"})}),eV||eq?null:(0,l.jsxs)(d.A.Card,{padding:"0",children:[(0,l.jsxs)(en,{children:[(0,l.jsx)(d.A.Input,{id:"overviewSearch",prependIcon:"GeneralSearch",placeholder:"Suchen Sie nach einer Stelle oder einer internen ID",type:"text",value:ea,onChange:e7,width:"30rem"}),(0,l.jsxs)(d.xu,{flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",children:[(0,l.jsx)(et,{children:(0,l.jsx)(d.A.Badge,{variant:"tertiary",size:"24",children:"".concat(eW,"/").concat(eB," Vakanzen")})}),(0,l.jsx)(d.A.Button,{buttonType:"tertiary",size:"l",disabled:eN,href:eN?"":"/stellen/neu",children:"Stelle hinzuf\xfcgen"})]})]}),(0,l.jsx)(E.Z,{onDeleteCallback:e5,onActivationCallback:e4,onEditCallback:e8,onDuplicateCallback:ne,customerSlug:null==eF?void 0:null===(H=eF.data)||void 0===H?void 0:null===(R=H.customer)||void 0===R?void 0:R.slug,maxVacancies:eB,vacancyConsumption:eW,columns:e0,initialData:X,filter:ea,isNonPartner:eX,isLoading:eJ}),eZ.pageCount>1?(0,l.jsx)(er,{children:(0,l.jsx)(U,{pages:eZ.pageCount,value:eZ.currentPage,onPageChanged:e6})}):null]})]})}),(0,l.jsx)(k.Z,{icon:"GeneralMapPin",iconBoxType:"neutral",headline:"Sie m\xfcssen zuerst einen Standort anlegen.",body:"Um eine Stelle anlegen zu k\xf6nnen, m\xfcssen Sie zun\xe4chst einen Standort anlegen.",buttonType:"primary",buttonText:"Standort anlegen",handleAccept:nn,handleCancel:function(){ex(!1)},isOpen:eS,identifier:"overviewRedirectModal",disableCheckbox:!0}),(0,l.jsx)(k.Z,{headline:"Stelle dauerhaft l\xf6schen?",body:"M\xf6chten Sie die Stelle l\xf6schen? Dies kann nicht r\xfcckg\xe4ngig gemacht werden.",buttonText:"Ja, Stelle entfernen",handleAccept:function(){return e3(ej)},handleCancel:function(){eg(!1),eI("")},isOpen:ep,identifier:"overviewJobPostingDelete",loading:es===W.yP.PENDING}),(0,l.jsx)(k.Z,{iconBoxType:"active"===eA?"positive":"negative",icon:"active"===eA?"GeneralEye":"GeneralEyeOff",headline:"Stelle ".concat(r[eA]),body:"active"===eA?"Ihre Stelle wird aktiviert und somit auf Ihrem Profil und in der Suche sichtbar.":"Ihre Stelle wird deaktiviert. Sie k\xf6nnen sie aber jederzeit wieder aktivieren.",buttonType:"active"===eA?"primary":"secondary",buttonText:"Ja, Stelle ".concat(r[eA]),handleAccept:function(){return e9(ej,eA)},handleCancel:function(){eb(!1),eI(""),eE("")},isOpen:ey,identifier:"overviewJobPostingStateUpdate",loading:es===W.yP.PENDING,disableCheckbox:!0})]})]})},eo=(0,f.withAuth)({necessaryPortalType:ei})(ea)},943:function(e,n,t){"use strict";function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}t.d(n,{Z:function(){return r}})},2670:function(e,n,t){"use strict";function r(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}t.d(n,{Z:function(){return r}})},3375:function(e,n,t){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.d(n,{Z:function(){return r}})},828:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(3375),i=t(1566);function a(e,n){return function(e){if(Array.isArray(e))return e}
1(e)||(0,r.Z)(e,n)||(0,i.Z)(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1566:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(943);function i(e,n){if(e){if("string"==typeof e)return(0,r.Z)(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return(0,r.Z)(e,n)}}}},function(e){e.O(0,[58,794,509,728,939,349,774,888,179],function(){return e(e.s=1935)}),_N_E=e.O()}]);
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.