import{a as k,e as w,f as x,g as b}from"./chunk-3GSTE76U.js";import"./chunk-ERH4HFS3.js";import"./chunk-IKQMUISD.js";import"./chunk-C7K6NHIV.js";import"./chunk-3BUU6LNF.js";import"./chunk-MFZ3EXVF.js";import"./chunk-MXSLISEG.js";import"./chunk-7GYHTWED.js";import"./chunk-7QEXVS2A.js";import"./chunk-MNVOJIXC.js";import"./chunk-UZB7YFT6.js";import"./chunk-HXEFMD5A.js";import"./chunk-KCLQIV7M.js";import"./chunk-5KCUTXXV.js";import"./chunk-JUDWAYYT.js";import"./chunk-LAJI7RPC.js";import"./chunk-WFZJP5WR.js";import"./chunk-F6KLNSUK.js";import"./chunk-CO3X7TQN.js";import"./chunk-VSFNMVXJ.js";import"./chunk-WQ6DP4JQ.js";import{Ob as P,j as u}from"./chunk-YSQLW2JA.js";import{o as v}from"./chunk-NVJ2ZZFT.js";import{Fb as c,ab as l,bb as s,cd as m,dd as f,ya as p}from"./chunk-SKPDQO4E.js";var C=`<div class="row justify-content-center" id="pacs-workplan-regular" *ngIf="visibleComponent">
    <div class="col-xl-8 col-lg-12 col-md-12">
        <armon-pacs-workplan-header [workplanType]="COMP_WORKPLAN_TYPE" [(workplan)]="workplan"
            (workplanUpdated)="workPlanUpdated($event)" [disabled]="editPeriodMode"></armon-pacs-workplan-header>
        <div class="row pt-3" *ngIf="editMode">
            <div class="col-12">
                <div class="b-b-1">
                    <span class="title">{{'PACS.WORKPLAN_PERIODS' | translate}}</span>
                </div>
            </div>
        </div>
        <div class="row py-3" *ngIf="editMode">
            <div class="col-12" *ngIf="(permissionAttendancePlanWrite==true) && !visibleNewPeriod">
                <button class="btn btn-sm btn-primary" (click)="periodAddStarted($event)"
                    [disabled]="editPeriodMode">{{'PACS.ADD_WORKPLAN_PERIOD'|translate}}</button>
            </div>
            <div class="col-12" *ngIf="visibleNewPeriod">
                <armon-pacs-period-regular-upsert (periodAddCancelled)="periodAddCancelled($event)"
                    (periodAddCompleted)="periodAddCompleted($event)" [workplan]="workplan">
                </armon-pacs-period-regular-upsert>
            </div>
        </div>
        <div class="row" *ngIf="editMode && workplanDetail.getPeriods().length>0">
            <div class="col-12" *ngFor="let period of workplanDetail.getPeriods(); let periodIndex = index">
                <armon-pacs-workplan-period [period]="period" [workplanType]="COMP_WORKPLAN_TYPE"
                    [disabled]="editPeriodMode" (periodEditStarted)="periodEditStarted($event)"
                    (periodEditCancelled)="periodEditCancelled($event)"
                    (periodEditCompleted)="periodEditCompleted($event)"
                    (periodDeleteCompleted)="periodDeleteCompleted($event)">
                </armon-pacs-workplan-period>
            </div>
        </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}:host .title{font-size:.924rem}
`;var R=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(d=i[a])&&(o=(n<3?d(o):n>3?d(e,t,o):d(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},h=class extends k{route;pacsService;translate;authService;constructor(e,t,r,n){super(e,t,r,n),this.route=e,this.pacsService=t,this.translate=r,this.authService=n}ngOnInit(){this.COMP_WORKPLAN_TYPE=v.Regular,this.initComponent()}ngOnDestroy(){}static ctorParameters=()=>[{type:c},{type:u},{type:m},{type:P}]};h=R([p({selector:"armon-pacs-workplan-regular",template:C,standalone:!0,imports:[s,b,w,l,x,f],styles:[g]})],h);export{h as PacsWorkplanRegularComponent};
