import{Aa as l,bb as c,dd as f,fb as d,ya as m}from"./chunk-SKPDQO4E.js";var p=`<!-- nz-tooltip nzTooltipTitle="{{data.tooltip|translate}}" -->
<div [className]="'main-container ' + className" [attr.minimal]="minimal">
    <div class="value-container">
        <span class="duration-value" *ngIf="hours!=0">{{hours}}</span>
        <span class="value-label" *ngIf="hours!=0">{{'PACS.WORKPLAN_PERIOD_UNIT_HOUR_SHORT'|translate}}</span>
        <span class="duration-value" *ngIf="minutes!=0">{{minutes}}</span>
        <span class="value-label" *ngIf="minutes!=0">{{'PACS.WORKPLAN_PERIOD_UNIT_MINUTE_SHORT'|translate}}</span>
        <span class="duration-value" *ngIf="minutes==0 && hours==0">&lt;1</span>
        <span class="value-label"
            *ngIf="minutes==0 && hours==0">{{'PACS.WORKPLAN_PERIOD_UNIT_MINUTE_SHORT'|translate}}</span>
    </div>
    <span class="duration-label d-flex align-items-center">
        <div class="label-color me-1" [ngStyle]="{'background-color': data.color}" *ngIf="data.color"></div>
        {{data.label|translate}}
    </span>
</div>`;var u=`.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}.main-container{display:-webkit-box;display:-moz-box;display:-webkit-flexbox;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:.3rem .3rem .3rem 0;margin-right:.6rem;background-color:initial}@media screen and (max-width: 768px){.main-container{margin-right:.3rem}}.main-container[minimal=true] .value-container .duration-value{font-size:1.176rem;line-height:1.344rem}.main-container .value-container{display:-webkit-box;display:-moz-box;display:-webkit-flexbox;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-moz-box-orient:horizontal;-webkit-flex-direction:row;-moz-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:baseline;-ms-flex-align:baseline;-webkit-align-items:baseline;-moz-align-items:baseline;align-items:baseline}.main-container .value-container .duration-value{font-size:1.512rem;line-height:1.68rem;color:#ccc;font-weight:lighter}@media screen and (max-width: 768px){.main-container .value-container .duration-value{font-size:.84rem;line-height:.924rem}}.main-container .value-container .value-label{font-size:.672rem;color:#ccc;margin-right:3px}.main-container .duration-label{font-size:.504rem;color:#999}.main-container .duration-label .label-color{display:inline-block;width:6px;height:6px;-webkit-border-radius:.375rem;-moz-border-radius:.375rem;border-radius:.375rem;background-color:#fff}
`;var g=function(i,e,t,a){var o=arguments.length,n=o<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,t):a,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,a);else for(var s=i.length-1;s>=0;s--)(r=i[s])&&(n=(o<3?r(n):o>3?r(e,t,n):r(e,t))||n);return o>3&&n&&Object.defineProperty(e,t,n),n},x=class{data;minimal=!1;className=void 0;hours;minutes;delayTooltip=5;constructor(){}ngOnInit(){this.render()}ngOnChanges(e){e.data.isFirstChange()||this.render()}render(){this.hours=Math.floor(this.data.minutes/60)|0,this.minutes=this.data.minutes%60|0}ngOnDestroy(){}static ctorParameters=()=>[];static propDecorators={data:[{type:l}],minimal:[{type:l}],className:[{type:l}]}};x=g([m({selector:"armon-duration-formatter",template:p,standalone:!0,imports:[c,d,f],styles:[u]})],x);export{x as a};
