import{vb as v}from"./chunk-YSQLW2JA.js";import{Aa as c,Sd as g,bb as d,cd as p,dd as m,ya as l}from"./chunk-SKPDQO4E.js";var f=`  <div class="modal-header">\r
    <span class="text-lg">{{'LICENSE.MODULE_NAME_'+ licenseModule.module | translate}}</span>\r
  </div>\r
  <div class="modal-body py-2" *ngIf="visibleComponent">\r
    <ng-container *ngIf="visitorSettings">\r
      <div class="row" *ngIf="visitorSettings.registrationPointsText">\r
        <div class="col-12 info-container">\r
          <p class="title b-b-1">{{'VISITOR.REGISTRATION_POINTS_TITLE'|translate}}</p>\r
          <p>{{visitorSettings.registrationPointsText}}</p>\r
        </div>\r
      </div>\r
      <div class="row" *ngIf="visitorSettings.visitorProfileFormFieldsText">\r
        <div class="col-12 info-container">\r
          <p class="title b-b-1">{{'VISITOR.VISITOR_PROFILE'|translate}}</p>\r
          <p>{{visitorSettings.visitorProfileFormFieldsText}}</p>\r
        </div>\r
      </div>\r
      <div class="row" *ngIf="visitorSettings.visitFormFieldsText">\r
        <div class="col-12 info-container">\r
          <p class="title b-b-1">{{'VISITOR.VISIT_DETAILS'|translate}}</p>\r
          <p>{{visitorSettings.visitFormFieldsText}}</p>\r
        </div>\r
      </div>\r
      <div class="row" *ngIf="visitorSettings.gdprSettings">\r
        <div class="col-12 info-container">\r
          <p class="title b-b-1">{{'VISITOR.GDPR_TITLE'|translate}}</p>\r
          <p>{{'VISITOR.MODULE_LEGAL_TEXT'|translate}}</p>\r
          <div class="legal-text mb-3 ms-2">\r
            <p class="italic-text">"{{visitorSettings.gdprSettings.legalText}}"</p>\r
          </div>\r
          <p>{{'VISITOR.MODULE_APPROVEMENT_TIMEOUT'|translate:visitorSettings.gdprSettings}}</p>\r
          <p>\r
            {{ ( visitorSettings.gdprSettings.showRejectButton ? 'VISITOR.MODULE_SHOW_REJECT_BUTTON' : 'VISITOR.MODULE_NOT_SHOW_REJECT_BUTTON' ) | translate }}\r
          </p>\r
          <p>{{'VISITOR.MODULE_PHOTO_STATE_'+visitorSettings.gdprSettings.visitorPhotoState|translate}}</p>\r
          <p>{{'VISITOR.MODULE_ANONYMIZATION_DURATION'|translate:visitorSettings.gdprSettings}}</p>\r
          <p *ngIf="visitorSettings.gdprSettings.canBeDeleted">{{'VISITOR.MODULE_CAN_DELETED'|translate}}</p>\r
        </div>\r
      </div>\r
    </ng-container>\r
  </div>\r
  <div class="modal-footer">\r
    <button class="btn btn-primary" (click)="onCancelClicked($event)">{{'BUTTON.OK' | translate}}</button>\r
  </div>`;var S=`.justify-content-center{-webkit-box-pack:center;-moz-box-pack:center;-webkit-flex-pack:center;-ms-flex-pack:center;-moz-justify-content:center;-webkit-justify-content:center;justify-content:center}.justify-content-flex-end{-webkit-box-pack:end;-moz-box-pack:end;-webkit-flex-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;-webkit-justify-content:flex-end;justify-content:flex-end}.card-footer{padding:.28rem .7rem}.alert{font-size:.756rem}@media screen and (min-width: 992px){.modal-xxl{max-width:1640px}}@media screen and (min-width: 1200px){.modal-xxxl{max-width:1860px}}.modal-fs{max-width:none;position:absolute;margin:auto;inset:16px;height:100vh;display:flex}.btn-link{text-decoration:none}.btn-link:hover{text-decoration:underline}.invalid-feedback{margin-top:0!important;font-size:.672rem!important}.info-container p{margin:0;font-size:.672rem;padding-left:.45rem}.info-container .title{margin-top:6px;font-weight:500;padding-left:0rem}.info-container .legal-text{height:200px;overflow-x:auto;background-color:#fbfbfb}.info-container .italic-text{font-style:italic}
`;var _=function(o,t,e,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(n=(s<3?r(n):s>3?r(t,e,n):r(t,e))||n);return s>3&&n&&Object.defineProperty(t,e,n),n},I=class extends g{translate;visitorService;licenseModule;visibleComponent=!1;visitorSettings;constructor(t,e){super(),this.translate=t,this.visitorService=e}onModalInitialized(){super.onModalInitialized(),this.getModuleSettings()}getModuleSettings(){this.visitorService.moduleSettings().subscribe(t=>{this.visitorSettings=t,this.translate.get(["VISITOR.GDPR_FIELD_TITLE"]).subscribe(e=>{this.visitorSettings.visitorProfileFormFields&&this.visitorSettings.visitorProfileFormFields.length>0&&(this.visitorSettings.visitorProfileFormFieldsText=this.visitorSettings.visitorProfileFormFields.map(i=>i.gdpr?i.caption+" ("+e["VISITOR.GDPR_FIELD_TITLE"]+")":i.caption).join(", ")),this.visibleComponent=!0})})}closeClicked(t){this.cancelModal()}static ctorParameters=()=>[{type:p},{type:v}];static propDecorators={licenseModule:[{type:c}]}};I=_([l({selector:"armon-management-module-settings-modal",template:f,standalone:!0,imports:[d,m],styles:[S]})],I);export{I as a};
