import{a as v}from"./chunk-MSDH4RMV.js";import{a as x}from"./chunk-GKCBFR3B.js";import"./chunk-PQGNYTS4.js";import"./chunk-P3WQM3KW.js";import"./chunk-D4RZOGGF.js";import{Ob as r}from"./chunk-YSQLW2JA.js";import{rd as h}from"./chunk-NVJ2ZZFT.js";import{$f as b,Rd as f,bb as p,dd as d,hd as u,ya as l}from"./chunk-SKPDQO4E.js";var S=`<div class="sub-menu-container">
    <div class="row justify-content-center">
        <div class="col-xl-8 col-lg-12 col-md-12 pos-relative">
            <!-- <button class="btn btn-primary" (click)="onRegistrationFormClicked($event)">{{'PAGES.VISITOR_REGISTRATION'|translate}}</button> -->
            <armon-submenu-cards></armon-submenu-cards>
            <button class="btn btn-sm btn-link p-0 m-0 color-gray-dark settings-button" (click)="onModuleSettingsClicked($event)" *ngIf="permissionVisitorWrite">
                <cds-icon solid shape="file-settings" size="sm"></cds-icon>
                {{'BUTTON.CONFIGURATION' | translate}}
            </button>
        </div>
    </div>
</div>`;var g=`.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}.settings-button{position:absolute;top:24px;right:12px}
`;var y=function(o,e,t,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(m=o[a])&&(n=(s<3?m(n):s>3?m(e,t,n):m(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},c=class{modalService;authService;permissionVisitorWrite=!1;constructor(e,t){this.modalService=e,this.authService=t}ngOnInit(){this.permissionVisitorWrite=this.authService.checkPermission(u.VISITOR.getWrite())}ngOnDestroy(){}onModuleSettingsClicked(e){let t=new h;t.module=b.Visitor,this.modalService.open(v,{settings:{size:"md"},props:{licenseModule:t}}).result.then(i=>{}).catch(i=>{})}static ctorParameters=()=>[{type:f},{type:r}]};c=y([l({selector:"armon-visitor-submenu",template:S,standalone:!0,imports:[x,p,d],styles:[g]})],c);var D=[{path:"menu",component:c,canActivate:[r]},{path:"register",loadComponent:()=>import("./chunk-3PHSBO7I.js").then(o=>o.VisitorsComponent),canActivate:[r]},{path:"list",loadComponent:()=>import("./chunk-2JDF7G7Z.js").then(o=>o.VisitorListComponent),canActivate:[r]}];export{D as ROUTES};
