"use strict";(self.webpackChunkmavunoorgbackend=self.webpackChunkmavunoorgbackend||[]).push([[5656],{88038:(m,s,_)=>{_.r(s),_.d(s,{HomePageEE:()=>K});var P=_(19968),D=_(51812),n=_(15264),A=_(62552),C=_(95840),v=_(21424),i=_(64240),R=_(17892),U=_(31212),B=_(23792),t=_(54320),l=_(5240),L=_(91892),I=_(36196),d=_(20880),o=_(70516),T=_(31812),O=_(18424),E=_(52540),a=_(21968),W=_(12132),M=_(48632),h=_(85676),r=_(35184),f=_(99568),g=_(96556),S=_(13192),y=_(30840),N=_(77784),j=_(79371),H=_(67888),x=_(52600),c=_(95752),e=_(37388),F=_(61840),G=_(49108),V=_(44632),$=_(50840),J=_(20252),z=_(86432),X=_(22612),Y=_(24808),Q=_(24024),Z=_(40960),u=_(33656),p=_(43280),k=_(79804),w=_(19632),b=_(29576),q=_(61152),__=_(9589),E_=_(45488),t_=_(75516),s_=_(7188),o_=_(81136);const K=()=>((0,n.u)(),(0,P.jsx)(D.HomePageCE,{}))},15264:(m,s,_)=>{_.d(s,{u:()=>B});var P=_(62552),D=_(95840),n=_(81136),A=_(14632),C=_(49008),v=_(23792);const i="strapi-notification-seat-limit",R="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,v.m)(),d=(0,D.eo)(),{pathname:o}=(0,C.IT)(),{enforcementUserCount:T,permittedSeats:O,licenseLimitStatus:E,isHostedOnStrapiCloud:a}=l??{};P.useEffect(()=>{if(L||I)return;const W=!n(O)&&!window.sessionStorage.getItem(`${i}-${o}`)&&(E==="AT_LIMIT"||E==="OVER_LIMIT");let M;E==="OVER_LIMIT"?M="warning":E==="AT_LIMIT"&&(M="softWarning"),W&&d({type:M,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:O}),link:{url:a?R:U,label:t({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:a})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${i}-${o}`,"true")}})},[d,l,o,t,I,O,E,T,a,L])}}}]);
