"use strict";(self.webpackChunkmavunoorgbackend=self.webpackChunkmavunoorgbackend||[]).push([[1532],{41532:(K,s,_)=>{_.r(s),_.d(s,{UserListPageEE:()=>m});var o=_(19968),a=_(86156),n=_(15264),A=_(62552),C=_(95840),R=_(12132),i=_(23792),v=_(54320),U=_(5240),B=_(91892),t=_(36196),l=_(20880),L=_(21424),I=_(70516),d=_(31812),O=_(18424),T=_(52540),M=_(21968),E=_(48632),D=_(85676),W=_(35184),P=_(99568),h=_(96556),r=_(13192),f=_(30840),g=_(77784),S=_(79371),y=_(67888),j=_(52600),N=_(95752),x=_(37388),F=_(61840),G=_(49108),V=_(44632),c=_(50840),$=_(20252),H=_(86432),X=_(22612),z=_(24808),J=_(24024),Y=_(40960),Q=_(33656),Z=_(43280),e=_(79804),u=_(19632),p=_(29576),k=_(61152),w=_(9589),b=_(45488),q=_(75516),__=_(60080),E_=_(31292),t_=_(94776),s_=_(64240),O_=_(17892),M_=_(31212),D_=_(81136);const m=()=>((0,n.u)(),(0,o.jsx)(a.C,{}))},15264:(K,s,_)=>{_.d(s,{u:()=>B});var o=_(62552),a=_(95840),n=_(81136),A=_(14632),C=_(49008),R=_(23792);const i="strapi-notification-seat-limit",v="https://cloud.strapi.io/profile/billing",U="https://strapi.io/billing/request-seats",B=()=>{const{formatMessage:t}=(0,A.c)(),{license:l,isError:L,isLoading:I}=(0,R.m)(),d=(0,a.eo)(),{pathname:O}=(0,C.IT)(),{enforcementUserCount:T,permittedSeats:M,licenseLimitStatus:E,isHostedOnStrapiCloud:D}=l??{};o.useEffect(()=>{if(L||I)return;const W=!n(M)&&!window.sessionStorage.getItem(`${i}-${O}`)&&(E==="AT_LIMIT"||E==="OVER_LIMIT");let P;E==="OVER_LIMIT"?P="warning":E==="AT_LIMIT"&&(P="softWarning"),W&&d({type:P,message:t({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:E}),title:t({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:E,enforcementUserCount:T,permittedSeats:M}),link:{url:D?v:U,label:t({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:D})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${i}-${O}`,"true")}})},[d,l,O,t,I,M,E,T,D,L])}}}]);
