import{b as f}from"./chunk-LAJI7RPC.js";import{Aa as n,Dc as l,bb as p,dd as d,ya as c}from"./chunk-SKPDQO4E.js";var x=`<ng-container *ngIf="visible">
    <cds-icon shape="local_date" solid class="cds-icon-18 mx-2 color-gray-dark cursor-pointer" nz-popover [nzPopoverTitle]="titleTemplate"
        [nzPopoverContent]="contentTemplate"></cds-icon>
        <span class="text-xs color-gray-dark" *ngIf="showLabel" nz-popover [nzPopoverTitle]="titleTemplate"
        [nzPopoverContent]="contentTemplate">{{'COMMON.LOCAL_DATE_INFO'|translate}}</span>
    <ng-template #titleTemplate>
        <div class="d-flex align-items-end mt-2">
            <div class="d-flex flex-column">
                <span class="mb-1">{{'COMMON.LOCAL_DATE'|translate}}</span>
                <span class="text-xs text-italic">{{timezone}}</span>
            </div>
            <span class="ms-auto text-xs text-italic">{{timezoneOffset}}</span>
        </div>
    </ng-template>
    <ng-template #contentTemplate>
        <div class="d-flex flex-column">
            <span class="text-xl">{{mainFormatted}}</span>
            <span class="text-xs mt-2">{{subFormatted}}</span>
        </div>
    </ng-template>
</ng-container>`;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}
`;var v=function(a,t,o,i){var s=arguments.length,e=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,t,o,i);else for(var r=a.length-1;r>=0;r--)(m=a[r])&&(e=(s<3?m(e):s>3?m(t,o,e):m(t,o))||e);return s>3&&e&&Object.defineProperty(t,o,e),e},h=class{visible=!1;timezone;timezoneOffset;constructor(){}dateUtc;mainFormat="HH:mm";subFormat="DDD";showLabel=!1;dateTime;ngOnInit(){this.dateTime=l.fromJSDate(this.dateUtc,{zone:"Europe/Istanbul"});let t=l.fromJSDate(this.dateUtc);t.zone.name!=this.dateTime.zone.name&&t.toFormat("yyoooHHmmss")!=this.dateTime.toFormat("yyoooHHmmss")&&(this.timezone=this.dateTime.zone.name,this.timezoneOffset=this.dateTime.toFormat("ZZ"),this.visible=!0)}ngOnDestroy(){}get mainFormatted(){return this.dateTime.toFormat(this.mainFormat)}get subFormatted(){return this.dateTime.toFormat(this.subFormat)}static ctorParameters=()=>[];static propDecorators={dateUtc:[{type:n}],mainFormat:[{type:n}],subFormat:[{type:n}],showLabel:[{type:n}]}};h=v([c({selector:"armon-local-date",template:x,standalone:!0,imports:[p,f,d],styles:[u]})],h);export{h as a};
