"use strict";(self.webpackChunkmavunoorgbackend=self.webpackChunkmavunoorgbackend||[]).push([[6176],{96176:(c,n,_)=>{_.r(n),_.d(n,{AdminSeatInfoEE:()=>K});var E=_(19968),l=_(70996),t=_(63358),M=_(48936),i=_(70544),L=_(55716),C=_(5540),a=_(95840),A=_(30048),v=_(73648),I=_(14632),U=_(70516),B=_(64240),R=_(23792),N=_(62552),F=_(17892),G=_(31212),H=_(35184),z=_(85676),V=_(96556),J=_(54320),Q=_(5240),X=_(91892),Y=_(36196),Z=_(20880),$=_(21424),e=_(31812),p=_(18424),u=_(52540),k=_(21968),w=_(12132),b=_(48632),q=_(99568),__=_(13192),E_=_(30840),s_=_(77784),t_=_(79371),a_=_(67888),O_=_(52600),n_=_(95752),M_=_(37388),D_=_(61840),P_=_(49108),o_=_(44632),d_=_(50840),l_=_(20252),i_=_(86432),L_=_(22612),C_=_(24808),A_=_(24024),v_=_(40960),I_=_(33656),U_=_(43280),B_=_(79804),R_=_(19632),W_=_(29576),T_=_(61152),K_=_(9589),m_=_(45488),h_=_(75516);const W="https://cloud.strapi.io/profile/billing",T="https://strapi.io/billing/request-seats",K=()=>{const{formatMessage:s}=(0,I.c)(),{settings:m}=(0,U.w1)(B.s),{isLoading:D,allowedActions:{canRead:h,canCreate:r,canUpdate:g,canDelete:f}}=(0,a.aU)(m?.users??{}),{license:P,isError:x,isLoading:j}=(0,R.m)({enabled:!D&&h&&r&&g&&f});if(x||(D||j)||!P)return null;const{licenseLimitStatus:S,enforcementUserCount:o,permittedSeats:O,isHostedOnStrapiCloud:d}=P;return O?(0,E.jsxs)(l.C,{col:6,s:12,children:[(0,E.jsx)(t.O,{variant:"sigma",textColor:"neutral600",children:s({id:"Settings.application.admin-seats",defaultMessage:"Admin seats"})}),(0,E.jsxs)(M.C,{gap:2,children:[(0,E.jsx)(M.C,{children:(0,E.jsx)(t.O,{as:"p",children:s({id:"Settings.application.ee.admin-seats.count",defaultMessage:"<text>{enforcementUserCount}</text>/{permittedSeats}"},{permittedSeats:O,enforcementUserCount:o,text:y=>(0,E.jsx)(t.O,{fontWeight:"semiBold",textColor:o>O?"danger500":void 0,children:y})})})}),S==="OVER_LIMIT"&&(0,E.jsx)(i.o,{description:s({id:"Settings.application.ee.admin-seats.at-limit-tooltip",defaultMessage:"At limit: add seats to invite more users"}),children:(0,E.jsx)(L.G,{width:(0,a.W8)(14),height:(0,a.W8)(14),color:"danger500",as:A.c})})]}),(0,E.jsx)(C.c,{href:d?W:T,isExternal:!0,endIcon:(0,E.jsx)(v.c,{}),children:s({id:"Settings.application.ee.admin-seats.add-seats",defaultMessage:"{isHostedOnStrapiCloud, select, true {Add seats} other {Contact sales}}"},{isHostedOnStrapiCloud:d})})]}):null}}}]);
