import{a as w}from"./chunk-3NZUMR4F.js";import{c as D}from"./chunk-JQJV7TYV.js";import{f as k}from"./chunk-YM543BQE.js";import{o as z,p as P}from"./chunk-STBSUBIU.js";import{Ac as x,Cb as b,Cd as I,Jc as m,Kc as C,Nc as c,Ob as S,Tb as n,Ub as d,Vb as f,_ as g,cc as _,kb as r,lb as u,qa as v,qc as l,rc as o,xb as h,zc as y}from"./chunk-NW2U37DI.js";function E(t,T){if(t&1&&(n(0,"div",1)(1,"h4",13)(2,"span",14),l(3),m(4,"translate"),d()()()),t&2){let i=_();r(3),o(C(4,1,i.title))}}var O=(()=>{class t extends P{constructor(i,a){super(a),this.adminService=i,this.today=new Date,this.today=new Date}ngOnInit(){this.adminService.time().pipe(g(this.unSubscribe$)).subscribe({next:i=>{this.data=i,this.timezone=this.data?.setting?.original?.default_timezone??"UTC"}})}static{this.\u0275fac=function(a){return new(a||t)(u(k),u(z))}}static{this.\u0275cmp=v({type:t,selectors:[["admin-page-header"]],inputs:{title:"title"},standalone:!0,features:[y([I]),h,x],decls:19,vars:13,consts:[[1,"page-header","d-xl-flex","d-block"],[1,"page-leftheader"],[1,"page-rightheader","ms-md-auto","mt-md-1"],[1,"d-flex","align-items-end","flex-wrap","my-auto","end-content","breadcrumb-end"],[1,"d-flex","breadcrumb-res"],[1,"header-datepicker","me-3"],[1,"input-group"],[1,"input-group-text"],[1,"feather","feather-calendar"],[1,"form-control","input-small","pb-0","pt-1"],[1,"header-datepicker","picker2","me-3"],[1,"feather","feather-clock"],["id","tpBasic",1,"form-control","input-small","pb-0","pt-1"],[1,"page-title"],[1,"font-weight-normal","text-muted","ms-2"]],template:function(a,e){if(a&1&&(n(0,"div",0),b(1,E,5,3,"div",1),n(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),f(8,"i",8),d(),n(9,"span",9),l(10),m(11,"custtimezone"),d()()(),n(12,"div",10)(13,"div",6)(14,"div",7),f(15,"i",11),d(),n(16,"span",12),l(17),m(18,"custtimezone"),d()()()()()()()),a&2){let p,s;r(),S(e.title?1:-1),r(9),o(c(11,3,e.today,(p=e.data==null||e.data.setting==null||e.data.setting.original==null?null:e.data.setting.original.date_format)!==null&&p!==void 0?p:"dd-M-y",void 0,e.timezone)),r(7),o(c(18,8,e.today,void 0,(s=e.data==null||e.data.setting==null||e.data.setting.original==null?null:e.data.setting.original.time_format)!==null&&s!==void 0?s:"h:mm a",e.timezone))}},dependencies:[D,w]})}}return t})();export{O as a};
