PageSourceSearch

https://cdn.erstegroup.com/etc/designs/gem/themes/js/build/notificationContainer.2f1bd41669f09005f307.js

js erstegroup.com collected 2026-10-01 10:24:07 UTC 28,098 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkGEM=self.webpackChunkGEM||[]).push([[21423],{3369:(e,t,r)=>{r.d(t,{Dy:()=>c,VV:()=>l,YR:()=>a});var i=r(2150),n=r(29365),o=r(83620);const s=7e3;function a(e,t){let r=e?e.message:"Unknown error";e instanceof i.C5?(r="StructError",console.error("Data are not in correct shape ",e.message)):e&&console.error(e);const n=t.find((t=>Boolean(e)&&t.errorCode===r));return n?n.message:r}function l(e,t){(0,o.vP)({title:e,message:t,dismissAfter:s})}function c(e,t){(0,o.vP)({title:e,message:t,status:n._.SUCCESS,dismissAfter:s})}},4252:(e,t,r)=>{r.d(t,{F:()=>n});var i=r(47768);async function n(e,t){let r;try{r=await fetch(e,t)}catch(e){if(e instanceof Error&&"AbortError"===e.name)throw new o("fetchFailed");throw new Error("fetchFailed")}if(!r.ok){if((0,i.x)(r.status),t?.method&&-1!==["POST","PATCH","PUT"].indexOf(t.method))throw new Error(String(`${String(r.status)}Save`));throw new Error(String(r.status))}return r.json()}class o extends Error{constructor(e){super(e),this.name="FetchAbortError"}}},4438:(e,t,r)=>{r.d(t,{f:()=>i});const i="timebank-profile"},8339:(e,t,r)=>{r.d(t,{Qp:()=>s,Wq:()=>a,n0:()=>l,x7:()=>h,zs:()=>c});var i=r(18987),n=r(9478);const o=1036800;function s(e){try{return decodeURIComponent(Array.prototype.map.call(window.atob(decodeURIComponent(e)),(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`)).join(""))}catch{return e}}function a({storeForAllSubdomains:e}){const t=window.location.hostname;return e?t.substring(t.lastIndexOf(".",t.lastIndexOf(".")-1)+1):t}function l(e,t,r=o,n=!1){const s=new Date;s.setSeconds(s.getSeconds()+r),i.A.set(e,t,{domain:a({storeForAllSubdomains:n}),expires:s})}function c(e){const t=a({storeForAllSubdomains:!0}),r=a({storeForAllSubdomains:!1});i.A.remove(e,{domain:t}),i.A.remove(e,{domain:r})}function h(e){return{access:e,jwt:(t=e,t.replace("access_token","jwt")),instituteNumber:n.Eb};var t}},8743:(e,t,r)=>{r.d(t,{r:()=>n});var i=r(47509);const n=e=>(0,i.n)((()=>r.e(68698).then(r.t.bind(r,68698,17))),e)},10691:(e,t,r)=>{r.d(t,{v:()=>s,z:()=>o});var i=r(9478),n=r(8339);const o="social_jwt_token";function s(e){e?(0,n.zs)(e):((0,n.zs)(i.I),(0,n.zs)(o))}},12372:(e,t,r)=>{r.r(t),r.d(t,{default:()=>W});var i=r(16522),n=r(52260),o=r(72749);const s=(0,r(81923).A)("div",{target:"e8s44k30"})({name:"4r3vo2",styles:"a{color:var(--color-link);cursor:pointer;display:inline-block;font-weight:var(--font-weight-link);text-decoration:var(--text-decoration-link);}"});var a=r(28907),l=r(4438),c=r(7754),h=r(65609),f=r(50296),d=r(75724),u=r(47803),p=r(68478),g=r(38468),m=r(92406),E=r(6653),b=r(2445);const A=(0,n.memo)((e=>{const t=(0,i.c)(9),r=e.notification.data;let n,o;if(t[0]!==e.profileUrl){const r=function(){const e=(0,m.P)(g.N.getInstance().location.pathname);return e[h.A]??={},e}(),i={...r[h.A]};i.tab=h.f.COMMENTS_OVERVIEW,r[h.A]=i,n=e.profileUrl,o=(0,E.SU)(r),t[0]=e.profileUrl,t[1]=n,t[2]=o}else n=t[1],o=t[2];const s=`${n}#${o}`;let l;e:switch(r.commentStatus){case a.EB.RETRACTED:l=e.labels.retracted;break e;case a.EB.DELETED:l=e.labels.deleted;break e;default:l=e.labels.approved}const c=l;let f;return t[3]!==r.annotation||t[4]!==e.labels||t[5]!==e.notification.createdAt||t[6]!==c||t[7]!==s?(f=(0,b.Y)(y,{annotation:r.annotation,createdAt:e.notification.createdAt,labels:e.labels,url:s,verb:c}),t[3]=r.annotation,t[4]=e.labels,t[5]=e.notification.createdAt,t[6]=c,t[7]=s,t[8]=f):f=t[8],f})),S=(0,n.memo)((e=>{const t=(0,i.c)(11),{replyLabel:r,notification:n}=e,o=n.data,s=r??"";let a,l,c,h;return t[0]!==o.annotation||t[1]!==o.commentUrl?(a=(0,b.Y)(p.Y,{className:"fw-sb",href:o.commentUrl,children:o.annotation}),t[0]=o.annotation,t[1]=o.commentUrl,t[2]=a):a=t[2],t[3]!==s||t[4]!==a?(l=(0,b.FD)("span",{children:[s," ",'"',a,'"']}),t[3]=s,t[4]=a,t[5]=l):l=t[5],t[6]!==n.createdAt?(c=(0,b.Y)(w,{date:n.createdAt}),t[6]=n.createdAt,t[7]=c):c=t[7],t[8]!==l||t[9]!==c?(h=(0,b.FD)(b.FK,{children:[l,c]}),t[8]=l,t[9]=c,t[10]=h):h=t[10],h})),y=(0,n.memo)((e=>{const t=(0,i.c)(13),{annotation:r,createdAt:n,labels:o,url:s,verb:a}=e;let l,c,h,f;return t[0]!==r||t[1]!==s?(l=(0,b.Y)(p.Y,{className:"fw-sb",href:s,children:r}),t[0]=r,t[1]=s,t[2]=l):l=t[2],t[3]!==o.was||t[4]!==o.yourComment||t[5]!==l||t[6]!==a?(c=(0,b.FD)("span",{children:[o.yourComment," ",'"',l,'"'," ",o.was," ",a]}),t[3]=o.was,t[4]=o.yourComment,t[5]=l,t[6]=a,t[7]=c):c=t[7],t[8]!==n?(h=(0,b.Y)(w,{date:n}),t[8]=n,t[9]=h):h=t[9],t[10]!==c||t[11]!==h?(f=(0,b.FD)(b.FK,{children:[c,h]}),t[10]=c,t[11]=h,t[12]=f):f=t[12],f}));function R(e){const t=(0,i.c)(20),r=e.notification.data,n=e.labels.permissionsChanged,o=e.labels.from;let s;t[0]!==r.currentRole||t[1]!==e.general?(s=(0,f.d9)(r.currentRole,e.general),t[0]=r.currentRole,t[1]=e.general,t[2]=s):s=t[2];const a=`<strong>${s}</strong>`,l=e.labels.to;let c;t[3]!==r.newRole||t[4]!==e.general?(c=(0,f.d9)(r.newRole,e.general),t[3]=r.newRole,t[4]=e.general,t[5]=c):c=t[5];const h=`<strong>${c}</strong>.`;let d;t[6]!==e.labels.from||t[7]!==e.labels.loginAgainMessage||t[8]!==e.labels.permissionsChanged||t[9]!==e.labels.to||t[10]!==a||t[11]!==h?(d=[n,o,a,l,h,e.labels.loginAgainMessage],t[6]=e.labels.from,t[7]=e.labels.loginAgainMessage,t[8]=e.labels.permissionsChanged,t[9]=e.labels.to,t[10]=a,t[11]=h,t[12]=d):d=t[12];const p=d.join(" ");let g,m,E;return t[13]!==p?(g=(0,b.Y)(u.ZO,{children:p}),t[13]=p,t[14]=g):g=t[14],t[15]!==e.notification.createdAt?(m=(0,b.Y)(w,{date:e.notification.createdAt}),t[15]=e.notification.createdAt,t[16]=m):m=t[16],t[17]!==m||t[18]!==g?(E=(0,b.FD)(b.FK,{children:[g,m]}),t[17]=m,t[18]=g,t[19]=E):E=t[19],E}function C(e){const t=(0,i.c)(14),r=`<strong>"${e.notification.data.nickname}"</strong>`,n=`${e.familyMemberLabel}.`,o=e.labels.contactOption??"";let s;t[0]!==e.labels.hasRegisteredAs||t[1]!==e.labels.userWith||t[2]!==e.labels.your||t[3]!==r||t[4]!==n||t[5]!==o?(s=[e.labels.userWith,r,e.labels.hasRegisteredAs,e.labels.your,n,o],t[0]=e.labels.hasRegisteredAs,t[1]=e.labels.userWith,t[2]=e.labels.your,t[3]=r,t[4]=n,t[5]=o,t[6]=s):s=t[6];const a=s.join(" ");let l,c,h;return t[7]!==a?(l=(0,b.Y)(u.ZO,{children:a}),t[7]=a,t[8]=l):l=t[8],t[9]!==e.notification.createdAt?(c=(0,b.Y)(w,{date:e.notification.createdAt}
1),t[9]=e.notification.createdAt,t[10]=c):c=t[10],t[11]!==l||t[12]!==c?(h=(0,b.FD)(b.FK,{children:[l,c]}),t[11]=l,t[12]=c,t[13]=h):h=t[13],h}function U(e){const t=(0,i.c)(16),r=e.notification.data;let n,o;if(t[0]!==r.nickname||t[1]!==e.profileUrl){const i=D();i[l.f]={...i[l.f],id:"users",0:encodeURIComponent(r.nickname)},n=e.profileUrl,o=(0,E.SU)(i),t[0]=r.nickname,t[1]=e.profileUrl,t[2]=n,t[3]=o}else n=t[2],o=t[3];const s=`<strong><a href="${n}#${o}" class="link" title="${r.nickname}">"${r.nickname}"</a></strong>`;let a;t[4]!==e.labels.hasRegisteredAs||t[5]!==e.labels.userWith||t[6]!==e.retiredEmployeeLabel||t[7]!==s?(a=[e.labels.userWith,s,e.labels.hasRegisteredAs,e.retiredEmployeeLabel],t[4]=e.labels.hasRegisteredAs,t[5]=e.labels.userWith,t[6]=e.retiredEmployeeLabel,t[7]=s,t[8]=a):a=t[8];const c=a.join(" ");let h,f,d;return t[9]!==c?(h=(0,b.Y)(u.ZO,{children:c}),t[9]=c,t[10]=h):h=t[10],t[11]!==e.notification.createdAt?(f=(0,b.Y)(w,{date:e.notification.createdAt}),t[11]=e.notification.createdAt,t[12]=f):f=t[12],t[13]!==h||t[14]!==f?(d=(0,b.FD)(b.FK,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=d):d=t[15],d}function I(e){const t=(0,i.c)(18),r=e.notification.data;let n,o;if(t[0]!==r.nickname||t[1]!==e.profileUrl){const i=D();i[l.f]={...i[l.f],id:"users",0:encodeURIComponent(r.nickname)},n=e.profileUrl,o=(0,E.SU)(i),t[0]=r.nickname,t[1]=e.profileUrl,t[2]=n,t[3]=o}else n=t[2],o=t[3];const s=`<strong><a href="${n}#${o}" class="link" title="${r.nickname}">"${r.nickname}"</a></strong>`;let a;t[4]!==r.employer||t[5]!==e.labels.employeeLabel||t[6]!==e.labels.forTheInstitute||t[7]!==e.labels.hasRegisteredAs||t[8]!==e.labels.userWith||t[9]!==s?(a=[e.labels.userWith,s,e.labels.hasRegisteredAs,e.labels.employeeLabel,e.labels.forTheInstitute,r.employer],t[4]=r.employer,t[5]=e.labels.employeeLabel,t[6]=e.labels.forTheInstitute,t[7]=e.labels.hasRegisteredAs,t[8]=e.labels.userWith,t[9]=s,t[10]=a):a=t[10];const c=a.join(" ");let h,f,d;return t[11]!==c?(h=(0,b.Y)(u.ZO,{children:c}),t[11]=c,t[12]=h):h=t[12],t[13]!==e.notification.createdAt?(f=(0,b.Y)(w,{date:e.notification.createdAt}),t[13]=e.notification.createdAt,t[14]=f):f=t[14],t[15]!==h||t[16]!==f?(d=(0,b.FD)(b.FK,{children:[h,f]}),t[15]=h,t[16]=f,t[17]=d):d=t[17],d}const T=(0,n.memo)((e=>{const t=(0,i.c)(6),{labels:r,notification:n}=e,o=n.data,s=r.likedLabel??"";let a;return t[0]!==o.annotation||t[1]!==o.commentUrl||t[2]!==r||t[3]!==n.createdAt||t[4]!==s?(a=(0,b.Y)(y,{annotation:o.annotation,createdAt:n.createdAt,labels:r,url:o.commentUrl,verb:s}),t[0]=o.annotation,t[1]=o.commentUrl,t[2]=r,t[3]=n.createdAt,t[4]=s,t[5]=a):a=t[5],a}));function _(e){const t=(0,i.c)(11),r=e.notification.data,n=`<strong><a href="${e.profileUrl}#/sca/tab/offers" class="link" title="${r.offerName}">"${r.offerName}"</a></strong>`;let o;t[0]!==e.labels.hasExpiredAndHasBeenDeactivatedLabel||t[1]!==e.labels.offerLabel||t[2]!==n?(o=[e.labels.offerLabel,n,e.labels.hasExpiredAndHasBeenDeactivatedLabel],t[0]=e.labels.hasExpiredAndHasBeenDeactivatedLabel,t[1]=e.labels.offerLabel,t[2]=n,t[3]=o):o=t[3];const s=o.join(" ");let a,l,c;return t[4]!==s?(a=(0,b.Y)(u.ZO,{children:s}),t[4]=s,t[5]=a):a=t[5],t[6]!==e.notification.createdAt?(l=(0,b.Y)(w,{date:e.notification.createdAt}),t[6]=e.notification.createdAt,t[7]=l):l=t[7],t[8]!==a||t[9]!==l?(c=(0,b.FD)(b.FK,{children:[a,l]}),t[8]=a,t[9]=l,t[10]=c):c=t[10],c}function D(){const e=(0,m.P)(g.N.getInstance().location.pathname);return e[l.f]??={},e}const w=(0,n.memo)((e=>{const t=(0,i.c)(5),{date:r}=e,n=(0,d.Fq)();if(!n)return null;let o,s;return t[0]!==r||t[1]!==n?(o=n.format(new Date(r),"dd.MM.yyyy HH:mm",{locale:n.lang}),t[0]=r,t[1]=n,t[2]=o):o=t[2],t[3]!==o?(s=(0,b.Y)(c.Fo,{children:o}),t[3]=o,t[4]=s):s=t[4],s})),v=e=>{const t=(0,i.c)(7),{notification:r}=e;let n,o,a;return t[0]!==r.data.text?(n=(0,b.Y)(u.ZO,{children:r.data.text}),t[0]=r.data.text,t[1]=n):n=t[1],t[2]!==r.createdAt?(o=(0,b.Y)(w,{date:r.createdAt}),t[2]=r.createdAt,t[3]=o):o=t[3],t[4]!==n||t[5]!==o?(a=(0,b.FD)(s,{children:[n,o]}),t[4]=n,t[5]=o,t[6]=a):a=t[6],a},O=e=>{const t=(0,i.c)(29),{notification:r,config:n,userLoginConfiguration:o}=e;e:switch(r.type){case"USER_GROUP_CHANGE":{let e;return t[0]!==n.general||t[1]!==n.notification||t[2]!==r?(e=(0,b.Y)(R,{general:n.general,notification:r,labels:n.notification}),t[0]=n.general,t[1]=n.notification,t[2]=r,t[3]=e):e=t[3],e}case"COMMENT_STATUS":if(o.profile?.profileUrl){let e;return t[4]!==n.notification||t[5]!==r||t[6]!==o.profile.profileUrl?(e=(0,b.Y)(A,{labels:n.notification,profileUrl:o.profile.profileUrl,notification:r}),t[4]=n.notification,t[5]=r,t[6]=o.profile.profileUrl,t[7]=e):e
1=t[7],e}break e;case"COMMENT_LIKE":{let e;return t[8]!==n.notification||t[9]!==r?(e=(0,b.Y)(T,{labels:n.notification,notification:r}),t[8]=n.notification,t[9]=r,t[10]=e):e=t[10],e}case"ETB_FAMILY_MEMBER":if(n.general.useTimeBankConfiguration){const e=n;let i;return t[11]!==r||t[12]!==e.etbUserProfileConfig?(i=(0,b.Y)(C,{labels:e.etbUserProfileConfig,notification:r,familyMemberLabel:e.etbUserProfileConfig.familyMemberLabel}),t[11]=r,t[12]=e.etbUserProfileConfig,t[13]=i):i=t[13],i}break e;case"COMMENT_REPLY":{let e;return t[14]!==n.notification.replyToComment||t[15]!==r?(e=(0,b.Y)(S,{replyLabel:n.notification.replyToComment,notification:r}),t[14]=n.notification.replyToComment,t[15]=r,t[16]=e):e=t[16],e}case"ETB_RETIRED_EMPLOYEE":if(n.general.useTimeBankConfiguration&&o.profile?.profileUrl){const e=n;let i;return t[17]!==r||t[18]!==e.etbUserProfileConfig||t[19]!==o.profile.profileUrl?(i=(0,b.Y)(U,{labels:e.etbUserProfileConfig,notification:r,profileUrl:o.profile.profileUrl,retiredEmployeeLabel:e.etbUserProfileConfig.retiredEmployeeLabel}),t[17]=r,t[18]=e.etbUserProfileConfig,t[19]=o.profile.profileUrl,t[20]=i):i=t[20],i}break e;case"OFFER_DEACTIVATE":if(o.profile?.profileUrl){let e;return t[21]!==n.notification||t[22]!==r||t[23]!==o.profile.profileUrl?(e=(0,b.Y)(_,{notification:r,labels:n.notification,profileUrl:o.profile.profileUrl}),t[21]=n.notification,t[22]=r,t[23]=o.profile.profileUrl,t[24]=e):e=t[24],e}break e;case"ETB_EMPLOYEE_OTHER":if(n.general.useTimeBankConfiguration&&o.profile?.profileUrl){const e=n;let i;return t[25]!==r||t[26]!==e.etbUserProfileConfig||t[27]!==o.profile.profileUrl?(i=(0,b.Y)(I,{labels:e.etbUserProfileConfig,notification:r,profileUrl:o.profile.profileUrl}),t[25]=r,t[26]=e.etbUserProfileConfig,t[27]=o.profile.profileUrl,t[28]=i):i=t[28],i}}return null};var N=r(87873),x=r(81828),L=r(3369),M=r(37159),k=r(52255),P=r(73174),F=r(8743),Y=r(22497),B=r(4252),$=r(72039),z=r(90124);class j extends n.PureComponent{constructor(e){super(e),this.state={data:[],offset:0,limit:10,isLoading:!0,isError:!1},this.wrapperRef=(0,n.createRef)(),this.lastOneRef=(0,n.createRef)();const t=(0,x.g)(this.props.userLoginConfiguration);if(!t)throw new Error("Social config is missing!");this.config=t}componentDidMount(){this.getNotifications()}componentDidUpdate(e,t){this.state.data.length>0&&0===t.data.length&&this.wrapperRef.current&&this.wrapperRef.current.querySelector("li")?.focus(),this.state.isError&&t.isError!==this.state.isError&&this.props.closeNotificationBar()}componentWillUnmount(){this.intersectionObserver?.disconnect(),this.abortController&&this.abortController.abort()}registerIntersection(){this.lastOneRef.current&&(this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.setState({offset:this.state.offset+this.state.limit},(()=>{this.getNotifications()}))}))}),{rootMargin:"300px",threshold:.01}),this.intersectionObserver.observe(this.lastOneRef.current))}async getNotifications(){let e;this.setState({isLoading:!0});try{this.abortController=new AbortController,e=await async function(e,t,r,i,n){const o={headers:{Authorization:`Bearer ${t}`,Accept:"application/json"},signal:n},s=(0,z._)({offset:String(r),limit:String(i)}),a=await(0,B.F)(`${e}/users/notification?${s}`,o);if((0,$.c)("rows",a)&&Array.isArray(a.rows))return(0,Y.A)(a.rows)}((0,o.ID)(this.config.general),this.props.loginUser.jwtToken,this.state.offset,this.state.limit,this.abortController.signal),this.abortController=void 0,e&&e.length>0?(await this.handleNotifications(),this.setState({data:this.state.offset>0?[...this.state.data,...e]:e,isLoading:!1})):(this.intersectionObserver?.disconnect(),this.setState({isLoading:!1}))}catch(e){const t=e instanceof Error?e:new Error(String(e));"FetchAbortError"!==t.name&&(this.handleError(t),this.setState({isError:!0,isLoading:!1}))}}async handleNotifications(){if(0===this.state.offset&&(this.registerIntersection(),this.props.isNewNotification))try{await async function(e,t){const r={headers:{Authorization:`Bearer ${t}`,Accept:"application/json"},method:"PUT"};await(0,B.F)(`${e}/users/notification`,r)}((0,o.ID)(this.config.general),this.props.loginUser.jwtToken)}catch(e){const t=e instanceof Error?e:new Error(String(e));this.handleError(t)}}handleError(e,t){(0,L.VV)((0,L.YR)(e,this.config.errorMessage.errorCodes),t),this.setState({isLoading:!1})}renderRecord(e,t){const r=`${t}-aria-label`,i=`${t}-aria-desc`;return(0,b.FD)(c.Pv,{tabIndex:0,role:"article","aria-labelledby":r,"aria-describedby":i,"aria-setsize":this.state.data.length,"aria-posinset":t+1,children:[(0,b.Y)(c.s5,{id:r,children:(0,b.Y)(M.p,{iconPath:F.r,width:(0,P.a)(16)})}),(0,b.FD)(c.Cz,{id:i,children:["INSTITUTE_NOTIFICATION"===e.type&&(0,b.Y)(v,{notification:e}),"social"===this.config.componentType&&(0,b.Y)(O,{notification:e,config:this.config,userLoginConfiguration:this.props.userLoginConfiguration})]})]},t)}
1renderEmptyRecord(){return(0,b.Y)(c.Lo,{children:(0,b.Y)("span",{children:"be-ready"===this.config.componentType?this.config.errorMessage.noDataMessage:this.config.general.noDataMessage})})}render(){return(0,b.Y)(c.S,{ref:this.wrapperRef,children:(0,b.FD)(c.hH,{children:[(0,b.FD)("ul",{role:"feed","aria-busy":this.state.isLoading,children:[this.state.data.length>0&&this.state.data.map(((e,t)=>this.renderRecord(e,t))),!this.state.isLoading&&0===this.state.data.length&&0===this.state.offset&&this.renderEmptyRecord()]}),(0,b.Y)(c.QE,{ref:this.lastOneRef,children:this.state.isLoading&&(0,b.Y)(k.h,{})})]})})}}const V={closeNotificationBar:()=>{N.gemStore.getState().closeNotificationBar()}},W=e=>{const t=(0,i.c)(2);let r;return t[0]!==e?(r=(0,b.Y)(j,{...e,...V}),t[0]=e,t[1]=r):r=t[1],r}},22497:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(48089);const n=/[\p{Lu}]/u,o=/[\p{Ll}]/u,s=/^[\p{Lu}](?![\p{Lu}])/gu,a=/([\p{Alpha}\p{N}_]|$)/u,l=/[_.\- ]+/,c=new RegExp("^"+l.source),h=new RegExp(l.source+a.source,"gu"),f=new RegExp("\\d+"+a.source,"gu");class d extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,r]of e)this.onEviction(t,r.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const r=t.get(e);return this._getItemValue(e,r)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,r]=e;this.cache.has(t)||!1===this._deleteIfExpired(t,r)&&(yield e)}for(const e of this.cache){const[t,r]=e;!1===this._deleteIfExpired(t,r)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t,{maxAge:r=this.maxAge}={}){const i="number"==typeof r&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.cache.has(e)?this.cache.set(e,{value:t,expiry:i}):this._set(e,{value:t,expiry:i}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],r=t.length-e;r<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(r>0&&this._emitEvictions(t.slice(0,r)),this.oldCache=new Map(t.slice(r)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,r]=e;!1===this._deleteIfExpired(t,r)&&(yield[t,r.value])}for(const e of this.oldCache){const[t,r]=e;this.cache.has(t)||!1===this._deleteIfExpired(t,r)&&(yield[t,r.value])}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const r=e[t],[i,n]=r;!1===this._deleteIfExpired(i,n)&&(yield[i,n.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const r=e[t],[i,n]=r;this.cache.has(i)||!1===this._deleteIfExpired(i,n)&&(yield[i,n.value])}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[r,i]of this.entriesAscending())e.call(t,i,r,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}const u=new d({maxSize:1e5}),p=e=>!("object"!=typeof e||null===e||e instanceof RegExp||e instanceof Error||e instanceof Date),g=(e,t)=>{if(!p(e))return e;t={deep:!1,pascalCase:!1,...t};const{exclude:r,pascalCase:a,stopPaths:d,deep:g}=t,m=new Set(d),E=e=>(t,d)=>{if(g&&p(d)){const r=void 0===e?t:`${e}.${t}`;m.has(r)||(d=i(d,E(r)))}if(!r||!((e,t)=>e.some((e=>"string"==typeof e?e===t:(e.lastIndex=0,e.test(t)))))(r,t)){const e=a?`${t}_`:t;if(u.has(e))t=u.get(e);else{const r=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const r=!1===t.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t.locale),i=!1===t.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t.locale);return 1===e.length?l.test(e)?"":t.pascalCase?i(e):r(e):(e!==r(e)&&(e=((e,t,r,i)=>{let s=!1,a=!1,l=!1,c=!1;for(let h=0;h<e.length;h++){const f=e[h];c=!(h>2)||"-"===e[h-3],s&&n.test(f)?(e=e.slice(0,h)+"-"+e.slice(h),s=!1,l=a,a=!0,h++):a&&l&&o.test(f)&&(!c||i)?(e=e.slice(0,h-1)+"-"+e.slice(h-1),l=a,a=!1,s=!0):(s=t(f)===f&&r(f)!==f,l=a,a=r(f)===f&&t(f)!==f)}return e})(e,r,i,t.preserveConsecutiveUppercase)),e=e.replace(c,""),e=t.preserveConsecutiveUppercase?((e,t)=>(s.lastIndex=0,e.replace(s,(e=>t(e)))))(e,r):r(e),t.pascalCase&&(e=i(e.charAt(0))+e.slice(1)),((e,t)=>(h.lastIndex=0,f.lastIndex=0,e.replace(h,((e,r)=>t(r))).replace(f,(e=>t(e)))))(e,i))}(t,{pascalCase:a,locale:!1});t.length<100&&u.set(e,r),t=r}}return[t,d]};return i(e,E(void 0))};function m(e,t){return Array.isArray(e)?Object.keys(e).map((r=>g(e[r],t))):g(e,t)}},26936:(e,t,r)=>{r.d(t,{CO:()=>
1o,Cm:()=>d,FL:()=>h,WV:()=>c,ZJ:()=>s,bO:()=>u,e$:()=>f,h_:()=>l,uD:()=>a,v$:()=>n});var i=r(87873);const n=e=>i.gemStore.getState().setSocialUser(e),o=()=>i.gemStore.getState().unsetSocialUser(),s=e=>i.gemStore.getState().setResearchUser(e),a=()=>i.gemStore.getState().unsetResearchUser(),l=e=>i.gemStore.getState().setBetriebUser(e),c=()=>i.gemStore.getState().unsetBetriebUser(),h=e=>i.gemStore.getState().setInvestUser(e),f=()=>i.gemStore.getState().unsetInvestUser(),d=e=>i.gemStore.getState().setBeReadyUser(e),u=()=>i.gemStore.getState().unsetBeReadyUser()},27111:(e,t,r)=>{r.d(t,{VQ:()=>i,YK:()=>o,bb:()=>n});var i=(e=>(e.NGO_ADMIN="ngoAdmin",e.NGO_USER="ngoUser",e.CONFIRM_RESET_DISCLAIMER="confirmResetDisclaimer",e.DELETE_USER="deleteUser",e))(i||{}),n=(e=>(e.BANNED="BANNED",e.DEFAULT="DEFAULT",e.TRUSTED="TRUSTED",e.MODERATOR="MODERATOR",e.NGO_ADMIN="NGO_ADMIN",e.NGO_USER="NGO_USER",e.ADMIN="ADMIN",e.UNREGISTERED="UNREGISTERED",e))(n||{}),o=(e=>(e.ETB_USER_INFORMATION="ETB_USER_INFORMATION",e.SLAB_NEWSLETTER="SLAB_NEWSLETTER",e.TERMS_CONDITIONS="TERMS_CONDITIONS",e))(o||{})},28907:(e,t,r)=>{r.d(t,{$:()=>o,AW:()=>i,EB:()=>n});var i=(e=>(e.TIME_DESC="time_desc",e.TIME_ASC="time_asc",e.LIKE="like",e))(i||{}),n=(e=>(e.APPROVED="APPROVED",e.RETRACTED="RETRACTED",e.DELETED="DELETED",e.NEW="NEW",e.DENIED="DENIED",e.EDITED="EDITED",e))(n||{}),o=(e=>(e.POST="POST",e.DELETE="DELETE",e))(o||{})},30916:(e,t,r)=>{function i(e,t={}){const{cache:r=new Map,getCacheKey:i}=t,n=function(t){const n=i?i(t):t;if(r.has(n))return r.get(n);const o=e.call(this,t);return r.set(n,o),o};return n.cache=r,n}r.d(t,{B:()=>i})},47768:(e,t,r)=>{r.d(t,{x:()=>o});var i=r(26936),n=r(10691);function o(e){401===e&&((0,n.v)(n.z),(0,i.CO)())}},48089:e=>{const t=e=>"object"==typeof e&&null!==e,r=Symbol("skip"),i=e=>t(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),n=(e,t,o,s=new WeakMap)=>{if(o={deep:!1,target:{},...o},s.has(e))return s.get(e);s.set(e,o.target);const{target:a}=o;delete o.target;const l=e=>e.map((e=>i(e)?n(e,t,o,s):e));if(Array.isArray(e))return l(e);for(const[c,h]of Object.entries(e)){const f=t(c,h,e);if(f===r)continue;let[d,u,{shouldRecurse:p=!0}={}]=f;"__proto__"!==d&&(o.deep&&p&&i(u)&&(u=Array.isArray(u)?l(u):n(u,t,o,s)),a[d]=u)}return a};e.exports=(e,r,i)=>{if(!t(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return n(e,r,i)},e.exports.mapObjectSkip=r},50296:(e,t,r)=>{r.d(t,{UU:()=>l,Wj:()=>o,d9:()=>a,dJ:()=>c,sC:()=>s});var i=r(28907),n=r(27111);const o=10,s="d MMM yyyy";function a(e,t){let r="";switch(e){case n.bb.MODERATOR:r=t.moderator;break;case n.bb.NGO_USER:r=t.ngoUser||"";break;case n.bb.NGO_ADMIN:r=t.ngoAdmin||"";break;case n.bb.ADMIN:r=t.admin;break;case n.bb.BANNED:r=t.banned;break;case n.bb.DEFAULT:r=t.defaultUserType;break;case n.bb.UNREGISTERED:r=t.unregistered}return r}function l(e){return t=>{switch(t){case i.EB.APPROVED:return e.approved;case i.EB.DELETED:return e.deleted;case i.EB.NEW:return e.new;case i.EB.RETRACTED:return e.retracted;case i.EB.DENIED:return e.denied;case i.EB.EDITED:return e.edited}}}function c(e,t){return t?"FORM_DATA"===e?{headers:{Authorization:`Bearer ${t}`}}:{headers:{Authorization:`Bearer ${t}`,Accept:"application/json","Content-Type":"application/json"}}:{}}},65609:(e,t,r)=>{r.d(t,{A:()=>n,f:()=>i});var i=(e=>(e.PROFILE="profile",e.COMMENTS_OVERVIEW="commentsOverview",e.REPORTING="reporting",e.APPROVAL="approval",e.NGO_INFO="ngoInfo",e.USERS="users",e.NGO="ngo",e.POLLS="polls",e.BE_READY_NOTIFICATIONS="beReadyNotifications",e.BE_READY_USERS="beReadyUsers",e.BE_READY_FAVOURITES="beReadyFavourites",e))(i||{});const n="sca"},72749:(e,t,r)=>{r.d(t,{DL:()=>o,HT:()=>s,ID:()=>a,VE:()=>n});var i=r(22497);function n(e){return{rows:(0,i.A)(e.rows),users:(0,i.A)(e.users),count:parseInt(e.count,10)}}function o(e){return e.reduce(((e,t)=>({...e,[t.id]:t})),{})}function s(e){return{row:(0,i.A)(e.row),user:(0,i.A)(e.user||{})}}function a(e){return`${e.socialEndpoint}/${e.databaseSchema}/communities/${e.communityId}`}},75724:(e,t,r)=>{r.d(t,{El:()=>s,Fq:()=>a});var i=r(16522),n=r(52260),o=r(40676);function s(e,t){switch(t||e.language){case"bs":case"sr":return Promise.all([r.e(45850),r.e(95457)]).then(r.bind(r,95457));case"bg":return Promise.all([r.e(45850),r.e(69031)]).then(r.bind(r,69031));case"hr_hr":return Promise.all([r.e(45850),r.e(94337)]).then(r.bind(r,94337));case"cs":return Promise.all([r.e(45850),r.e(28549)]).then(r.bind(r,28549));case"en":default:return Promise.all([r.e(45850),r.e(43496)]).then(r.bind(r,43496));case"de":return Promise.all([r.e(45850),r.e(34945)]).then(r.bind(r,34945));case"hu":return Promise.all([r.e(45850),r.e(22997)]).then(r.bind(r,22997));case"mk":return Promise.all([r.e(45850),r.e(84750)]).then(r.bind(r,84750));case"pl":return Promise.all([r.e(45850),r.e(46109)]).then(r.bind(r,46109));case"ro":return Promise.all([r.e(45850),r.e(53863)]).then(r.bind(r,53863));case"ru":return Promise.all([r.e(45850),r.e(5800)]).then(r.bind(r,5800));case"sr_me":return Promise.all([r.e(45850),r.e(14864)]).then(r.bind(r,14864));case"sk":return Promise.all([r.e(45850),r.e(17399)]).then(r.bind(r,17399));case"sl":return Promise.all([r.e(45850),r.e(4276)]).then(r.bind(r,4276));case"tr":return Promise.all([r.e(45850),r.e(74215)]).then(r.bind(r,74215));case"uk":return Promise.all([r.e(45850),r.e(54613)]).then(r.bind(r,54613))}}
1function a(e){const t=(0,i.c)(4),[r,a]=(0,n.useState)(),l=(0,o.useGemSettings)();let c,h;return t[0]!==l||t[1]!==e?(c=()=>{let t=!1;return s(l,e).then((e=>{!t&&a(e)})),()=>{t=!0}},h=[e,l],t[0]=l,t[1]=e,t[2]=c,t[3]=h):(c=t[2],h=t[3]),(0,n.useEffect)(c,h),r}},81828:(e,t,r)=>{r.d(t,{I:()=>o,g:()=>s});var i=r(30916),n=r(88924);const o=(0,i.B)((()=>(0,n.E)("mobile-header")));function s(e){const t=e.general.additionalConfiguration;if(t?.general?.socialEndpoint)return t}},83620:(e,t,r)=>{r.d(t,{OX:()=>s,vP:()=>n,wz:()=>o});var i=r(87873);const n=e=>i.gemStore.getState().addNotification(e),o=e=>i.gemStore.getState().removeNotification(e),s=()=>i.gemStore.getState().removeAllNotifications()}}]);

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.