<!--

    Copyright © 2016-2026 The Thingsboard Authors

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div class="entity-limit-exceeded-dialog">
  <button mat-icon-button class="close-btn" (click)="cancel()">
    <tb-icon>close</tb-icon>
  </button>
  <div class="entity-limit-exceeded-bg"></div>
  <div class="entity-limit-exceeded-title">{{ 'entity.limit-reached' | translate }}</div>
  <div class="entity-limit-exceeded-container">
    <div class="entity-limit-exceeded-text" [innerHTML]="limitReachedText | safe: 'html'"></div>
  </div>
  <div class="flex flex-row justify-center gap-2">
    <button mat-flat-button color="primary" (click)="requestLimitIncrease($event)">
      {{ 'entity.request-limit-increase' | translate }}
    </button>
    <button mat-button (click)="cancel()">
      {{ 'action.cancel' | translate }}
    </button>
  </div>
  <div class="request-entity-limit-increase-sysadmin-prompt">
    {{ 'entity.request-sysadmin-text' | translate }}
    <a href="" (click)="loginAsSysAdmin($event)"> {{ 'entity.login-here' | translate }} </a>
    {{ 'entity.to-increase-limit' | translate }}
  </div>
</div>
