PageSourceSearch

https://residents.emeraldheights.com/5575.645714feceb05197.js

js emeraldheights.com collected 2026-10-08 05:19:18 UTC 40,257 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkMVP=self.webpackChunkMVP||[]).push([[5575],{55575:(jt,U,l)=>{l.r(U),l.d(U,{BookingsModule:()=>Ht});var h=l(36895),S=l(82761),m=l(24006),$=l(13495),I=l(81282),j=l(48052),x=l(95017),v=l(78372),b=l(71884),d=l(30671),y=l(96308),B=l(17009),L=l(41486),t=l(94650),O=l(85143),M=l(21505),J=l(32260),P=l(65938),F=l(3238),Y=l(4859),R=l(56709),A=l(99602),k=l(59549),q=l(97392),Q=l(44144),w=l(28255),K=l(98739),z=l(84385),G=l(28424);const X=["paginator"],W=["gridSort"];function tt(n,s){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.service_name," ")}}function et(n,s){1&n&&t._UZ(0,"app-loading")}function ot(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",51),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteSelectedCategory(null))}),t.TgZ(2,"span",52)(3,"mat-icon",53),t._uU(4," delete"),t.qZA(),t._uU(5," Delete "),t.qZA(),t._UZ(6,"span",54)(7,"span",55),t.qZA(),t.BQk()}}function it(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",56),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.resetList())}),t.TgZ(2,"mat-icon",57),t._uU(3,"autorenew"),t.qZA(),t.TgZ(4,"span"),t._uU(5,"Reset"),t.qZA()(),t.TgZ(6,"button",58)(7,"mat-icon",59),t._uU(8,"add"),t.qZA(),t._uU(9," Add New "),t.qZA(),t.BQk()}}function nt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"mat-header-cell",60)(1,"mat-checkbox",61),t.NdJ("change",function(i){t.CHM(e);const a=t.oxw();return t.KtG(i?a.toggleAllRows():null)}),t.qZA()()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function at(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",60)(1,"mat-checkbox",62),t.NdJ("click",function(i){return i.stopPropagation()})("change",function(i){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(i?c.selection.toggle(r):null)}),t.qZA()()}if(2&n){const e=s.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(e))}}function st(n,s){1&n&&(t.TgZ(0,"mat-header-cell",60),t._uU(1," Services "),t.qZA())}function rt(n,s){if(1&n&&(t.TgZ(0,"mat-cell",60),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.hij(" ",e.appointment_type_id?e.appointment_type_id.service_name:""," ")}}function lt(n,s){1&n&&(t.TgZ(0,"mat-header-cell",63),t._uU(1,"User Details "),t.qZA())}function ct(n,s){if(1&n&&(t.TgZ(0,"mat-cell",63),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.AsE(" ",null==e.user?null:e.user.first_name," ",null==e.user?null:e.user.last_name," ")}}function mt(n,s){1&n&&(t.TgZ(0,"mat-header-cell",64),t._uU(1,"Booking StartDate"),t.qZA())}function dt(n,s){if(1&n&&(t.TgZ(0,"mat-cell",65),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.hij(" ",e.date," ")}}function ut(n,s){1&n&&(t.TgZ(0,"mat-header-cell",66),t._uU(1,"Booking StartTime"),t.qZA())}function gt(n,s){if(1&n&&(t.TgZ(0,"mat-cell",60),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.hij(" ",e.time," ")}}function pt(n,s){1&n&&(t.TgZ(0,"mat-header-cell",67),t._uU(1," Email "),t.qZA())}function ht(n,s){if(1&n&&(t.TgZ(0,"mat-cell",68),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.hij(" ",e.email," ")}}function ft(n,s){1&n&&(t.TgZ(0,"mat-header-cell",69),t._uU(1," Status "),t.qZA())}function _t(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",70)(1,"mat-select",71),t.NdJ("selectionChange",function(i){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.rowStatusUpdated(i,r))}),t.TgZ(2,"mat-option",11),t._uU(3,"Pending"),t.qZA(),t.TgZ(4,"mat-option",12),t._uU(5,"Cancelled"),t.qZA(),t.TgZ(6,"mat-option",13),t._uU(7,"Confirmed"),t.qZA()()()}if(2&n){const e=s.$implicit;t.xp6(1),t.Q6J("value",e.status)}}function vt(n,s){1&n&&(t.TgZ(0,"mat-header-cell",60),t._uU(1,"Action"),t.qZA())}function bt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",72)(1,"button",73)(2,"mat-icon"),t._uU(3,"more_vert"),t.qZA()(),t.TgZ(4,"mat-menu",74,75)(6,"a",76),t._uU(7," Edit "),t.qZA(),t.TgZ(8,"button",77),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.deleteSelectedCategory(a.id))}),t._uU(9," Delete "),t.qZA()()()}if(2&n){const e=s.$implicit,o=t.MAs(5);t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink","../edit/"+e.id)}}function Ct(n,s){1&n&&t._UZ(0,"mat-header-row")}function kt(n,s){1&n&&t._UZ(0,"mat-row")}function St(n,s){1&n&&(t.TgZ(0,"div",78),t._uU(1," No Records Found "),t.qZA())}let Tt=(()=>{class n{constructor(e,o,i,a,r,c){this.service=e,this.datepipe=o,this.bookingService=i,this.commonService=a,this.snackBar=r,this.dialog=c,this.keywordSearch=new m.NI(""),this.statusSearch=new m.NI(""),this.serviceSearch=new m.NI(""),this.fromDateSearch=new m.NI(""),this.toDateSearch=new m.NI(""),this.selection=new x.Ov(!0,[]),this.allowMultiSelect=!0,this.initialSelection=[],this.dataSource=new d.by,this.displayedColumns=["select","service_name","username","date","time","email","status","action"],this.total=0,this.size=30,this.current=1,this.pageSizeOptions=[30,60,100],this.showFirstLastButtons=!0,this.loading=!1,this.sortColumn="updated_at",this.sortDirection="desc",this.snackBarConfig=new B.u_}ngOnInit(){this.selection=new x.Ov(this.allowMultiSelect,this.initialSelection),this.keywordSearch.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(()=>{this.getBookingsList()}),this.statusSearch.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(()=>{this.getBookingsList()}),this.serviceSearch.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(()=>{this.getBookingsList()}),this.fromDateSearch.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(()=>{this.getBookingsList()}),this.toDateSearch.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(()=>{this.getBookingsList()}
1),this.getServices(),this.getBookingsList()}ngAfterViewInit(){this.sort.sortChange.subscribe(e=>{""===e.direction?(this.sortColumn="updated_at",this.sortDirection="desc"):(this.sortColumn=e.active,this.sortDirection=e.direction),this.getBookingsList()})}getServices(){this.service.getServices(1,-1,"",1,null).subscribe({next:e=>{e.status.error||(this.serviceList=e.data)}})}resetList(){this.keywordSearch.setValue(""),this.statusSearch.setValue(""),this.serviceSearch.setValue(""),this.fromDateSearch.setValue(""),this.toDateSearch.setValue("")}isAllSelected(){return this.selection.selected.length==this.dataSource.data.length}toggleAllRows(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}getBookingsList(){if(this.fromDateSearch.value){const e=new Date(this.fromDateSearch.value);this.fromdate=[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-")}if(this.toDateSearch.value){const e=new Date(this.toDateSearch.value);this.todate=[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-")}this.loading=!0,this.bookingService.getBookings(this.current,this.size,this.serviceSearch.value,this.keywordSearch.value,this.statusSearch.value,this.fromdate,this.todate,this.sortColumn,this.sortDirection).subscribe({next:e=>{this.loading=!1,e.status.error||(this.dataSource=new d.by(e.data),this.dataSource.data=e.data.map(o=>{const i=o.time.split(":"),a=new Date(0,0,0,+i[0],+i[1],+i[2]),r=this.commonService.modifyDate(a,"hh:mm a");return o.time=r||"",o}),this.total=e.status.total,(!e.data||0===e.data.length)&&this.current>1&&this.getFirstPage())},error:e=>{this.loading=!1,this.dataSource=new d.by([]),"data not found"===e.error?.status?.message.toLowerCase()&&this.current>1?this.getFirstPage():this.commonService.errorHandling(e)}})}getFirstPage(){this.current=1,this.paginator.firstPage()}changeNextPage(e){this.current=e.pageIndex+1,this.size=e.pageSize,this.getBookingsList()}rowStatusUpdated(e,o){if(o.id){const i=o.id;this.loading=!0,this.bookingService.cancelAppointment({status:e.value},i,"dashboard").subscribe(a=>{this.loading=!1,a.status.error||this.snackBar.open("Appointment Service Status Updated Successfully","Close",{duration:3e3,horizontalPosition:"center",verticalPosition:"top"})},a=>{this.loading=!1;let r="";r=a.error?.status?.message?a.error.status.message:a.error.message?a.error.message:"Some unexpected error occurred",this.getServices(),this.snackBar.open(r,"Close",{duration:3e3,horizontalPosition:"center",verticalPosition:"top"})})}}deleteSelectedCategory(e){const o=this.dialog.open(L.N,{data:{title:"Confirm",message:`Are you sure you want to delete selected ${e?"booking":"bookings"}?`}});let i;e?i=e:this.selection.selected.forEach(a=>{a.id&&(i=this.selection.selected.map(r=>r.id).join("%2C"))}),o.afterClosed().subscribe(a=>{a&&(this.loading=!0,this.bookingService.deleteAll(i).subscribe(r=>{this.loading=!1,r.status.error||(this.snackBar.open("Service Deleted Successfully","Close",{duration:3e3,horizontalPosition:"center",verticalPosition:"top"}),this.getBookingsList(),this.selection=new x.Ov(this.allowMultiSelect,this.initialSelection))},r=>{this.loading=!1;let c="";c=r.error?.status?.message?r.error.status.message:r.error.message?r.error.message:"Some unexpected error occurred",this.snackBar.open(c,"Close",{duration:3e3,horizontalPosition:"center",verticalPosition:"top"})}))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.m),t.Y36(h.uU),t.Y36(M.F),t.Y36(J.v),t.Y36(B.ux),t.Y36(P.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-bookings-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(X,5),t.Gf(W,5),t.Gf(y.YE,5)),2&e){let i;t.iGM(i=t.CRH())&&(o.paginator=i.first),t.iGM(i=t.CRH())&&(o.gridSort=i.first),t.iGM(i=t.CRH())&&(o.sort=i.first)}},decls:88,vars:21,consts:[[1,"card","page-header-card"],[1,"card-body"],[1,"row"],[1,"col-md-8","my-md-0","my-4","page-heading"],[1,"header-icon"],[1,"col-md-2"],["appearance","outline"],["matInput","","placeholder","Search",3,"formControl"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","fxFlex","100"],["value","Pending"],["value","Cancelled"],["value","Confirmed"],["appearance","outline","floatLabel","always","fxFlex","",1,"w-80-p","mr-8"],["matInput","",3,"matDatepicker","formControl","focus"],["matSuffix","",3,"for"],["picker3",""],["picker2",""],[4,"ngIf"],[1,"card","mt-4","page-header-card"],[1,"row","mx-0","btns-row","flex-row-reverse","page-actions"],["matSortDirection","asc","matSort","",3,"dataSource"],["gridSort","matSort"],["matColumnDef","select"],["class","col-1",4,"matHeaderCellDef"],["class","col-1",4,"matCellDef"],["matColumnDef","service_name"],["matColumnDef","username"],["class","col-2",4,"matHeaderCellDef"],["class","col-2",4,"matCellDef"],["matColumnDef","date"],["class","col-2 text-right","mat-sort-header","",4,"matHeaderCellDef"],["class","col-2 text-right",4,"matCellDef"],["matColumnDef","time"],["class","col-1","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","email"],["class","col-3",4,"matHeaderCellDef"],["class","col-3 text-wrap",4,"matCellDef"],["matColumnDef","status"],["mat-sort-header","status","class","col-1 text-right",4,"matHeaderCellDef"],["class","col-1 text-right",4,"matCellDef"],["matColumnDef","action"],["class","align-center col-1",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["class","row col-12 my-3 justify-content-center grid-heading noDatafou
1nd",4,"ngIf"],[1,"row","pagination-row"],[1,"blue-grey-50",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["paginator",""],[3,"value"],["tabindex","0",1,"addbutton","reference-button","mat-raised-button",3,"click"],[1,"mat-button-wrapper"],["aria-hidden","true","data-mat-icon-type","font",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],["matripple","",1,"mat-ripple","mat-button-ripple"],[1,"mat-button-focus-overlay"],["mat-raised-button","","type","button",1,"box-shadow-none-Cancel-Add",3,"click"],[1,"reset"],["mat-raised-button","","routerLink","../add",1,"reference-button","box-shadow-none-Cancel-Add","addbutton"],[1,"add-icon"],[1,"col-1"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],[1,"col-2"],["mat-sort-header","",1,"col-2","text-right"],[1,"col-2","text-right"],["mat-sort-header","",1,"col-1"],[1,"col-3"],[1,"col-3","text-wrap"],["mat-sort-header","status",1,"col-1","text-right"],[1,"col-1","text-right"],[2,"width","auto",3,"value","selectionChange"],[1,"align-center","col-1"],["mat-icon-button","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","","type","button",3,"click"],[1,"row","col-12","my-3","justify-content-center","grid-heading","noDatafound"]],template:function(e,o){if(1&e){const i=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),t._uU(5,"All Bookings"),t.qZA(),t.TgZ(6,"span",4)(7,"mat-icon"),t._uU(8,"keyboard_arrow_right"),t.qZA()()()(),t._UZ(9,"br"),t.TgZ(10,"div",2)(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),t._uU(14,"Search"),t.qZA(),t._UZ(15,"input",7),t.qZA()(),t.TgZ(16,"div",5)(17,"mat-form-field",6)(18,"mat-label"),t._uU(19,"Service"),t.qZA(),t.TgZ(20,"mat-select",8),t.YNc(21,tt,2,2,"mat-option",9),t.qZA()()(),t.TgZ(22,"div",5)(23,"mat-form-field",10)(24,"mat-label"),t._uU(25,"Status"),t.qZA(),t.TgZ(26,"mat-select",8)(27,"mat-option",11),t._uU(28,"Pending"),t.qZA(),t.TgZ(29,"mat-option",12),t._uU(30,"Cancelled"),t.qZA(),t.TgZ(31,"mat-option",13),t._uU(32,"Confirmed"),t.qZA()()()(),t.TgZ(33,"div",5)(34,"mat-form-field",14)(35,"mat-label"),t._uU(36,"From Date"),t.qZA(),t.TgZ(37,"input",15),t.NdJ("focus",function(){t.CHM(i);const r=t.MAs(40);return t.KtG(r.open())}),t.qZA(),t._UZ(38,"mat-datepicker-toggle",16)(39,"mat-datepicker",null,17),t.qZA()(),t.TgZ(41,"div",5)(42,"mat-form-field",14)(43,"mat-label"),t._uU(44,"To Date"),t.qZA(),t.TgZ(45,"input",15),t.NdJ("focus",function(){t.CHM(i);const r=t.MAs(48);return t.KtG(r.open())}),t.qZA(),t._UZ(46,"mat-datepicker-toggle",16)(47,"mat-datepicker",null,18),t.qZA()()()()(),t.YNc(49,et,1,0,"app-loading",19),t.TgZ(50,"div",20)(51,"div",1)(52,"div",21),t.YNc(53,ot,8,0,"ng-container",19),t.YNc(54,it,10,0,"ng-container",19),t.qZA(),t._UZ(55,"br"),t.TgZ(56,"mat-table",22,23),t.ynx(58,24),t.YNc(59,nt,2,2,"mat-header-cell",25),t.YNc(60,at,2,1,"mat-cell",26),t.BQk(),t.ynx(61,27),t.YNc(62,st,2,0,"mat-header-cell",25),t.YNc(63,rt,2,1,"mat-cell",26),t.BQk(),t.ynx(64,28),t.YNc(65,lt,2,0,"mat-header-cell",29),t.YNc(66,ct,2,2,"mat-cell",30),t.BQk(),t.ynx(67,31),t.YNc(68,mt,2,0,"mat-header-cell",32),t.YNc(69,dt,2,1,"mat-cell",33),t.BQk(),t.ynx(70,34),t.YNc(71,ut,2,0,"mat-header-cell",35),t.YNc(72,gt,2,1,"mat-cell",26),t.BQk(),t.ynx(73,36),t.YNc(74,pt,2,0,"mat-header-cell",37),t.YNc(75,ht,2,1,"mat-cell",38),t.BQk(),t.ynx(76,39),t.YNc(77,ft,2,0,"mat-header-cell",40),t.YNc(78,_t,8,1,"mat-cell",41),t.BQk(),t.ynx(79,42),t.YNc(80,vt,2,0,"mat-header-cell",25),t.YNc(81,bt,10,3,"mat-cell",43),t.BQk(),t.YNc(82,Ct,1,0,"mat-header-row",44),t.YNc(83,kt,1,0,"mat-row",45),t.qZA(),t.YNc(84,St,2,0,"div",46),t.TgZ(85,"div",47)(86,"mat-paginator",48,49),t.NdJ("page",function(r){return o.changeNextPage(r)}),t.qZA()()()()}if(2&e){const i=t.MAs(40),a=t.MAs(48);t.xp6(15),t.Q6J("formControl",o.keywordSearch),t.xp6(5),t.Q6J("formControl",o.serviceSearch),t.xp6(1),t.Q6J("ngForOf",o.serviceList),t.xp6(5),t.Q6J("formControl",o.statusSearch),t.xp6(11),t.Q6J("matDatepicker",i)("formControl",o.fromDateSearch),t.xp6(1),t.Q6J("for",i),t.xp6(7),t.Q6J("matDatepicker",a)("formControl",o.toDateSearch),t.xp6(1),t.Q6J("for",a),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(4),t.Q6J("ngIf",o.selection&&o.selection.selected.length>0),t.xp6(1),t.Q6J("ngIf",!o.selection||0===o.selection.selected.length),t.xp6(2),t.Q6J("dataSource",o.dataSource),t.xp6(26),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.dataSource.data.length),t.xp6(2),t.Q6J("length",o.total)("pageSize",o.size)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.show
1FirstLastButtons)}},dependencies:[h.sg,h.O5,m.Fj,m.JJ,m.oH,F.ey,Y.lW,R.oG,A.Mq,A.hl,A.nW,k.KE,k.hX,k.R9,q.Hw,Q.Nt,w.VK,w.OP,w.p6,K.NW,z.gD,y.YE,y.nU,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,S.rH,S.yS,G.N],styles:[".text-wrap[_ngcontent-%COMP%]{word-break:break-all}.text-right[_ngcontent-%COMP%]{text-align:right}.text-center[_ngcontent-%COMP%]{text-align:center}  .page-header-card .mat-form-field-infix{border-top:0!important}"]}),n})();var Z=l(54004),D=l(68675),T=l(15439),At=l(53709),Zt=l(31370),E=l(47957),xt=l(72159);function yt(n,s){1&n&&t._UZ(0,"app-loading")}function Bt(n,s){if(1&n&&(t.TgZ(0,"mat-option",41),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",e.first_name," ",e.last_name," ")}}function wt(n,s){if(1&n&&(t.TgZ(0,"mat-option",41),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.service_name," ")}}const Dt=function(n,s){return{selectedbooking:n,booked:s}};function Nt(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",44),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.getPartySizes(a.time))}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=s.$implicit,o=t.oxw(2);t.xp6(1),t.Gre("",e.class," timeslots-btn p-12 cursor-pointer border "),t.Q6J("disabled",0==e.available)("ngClass",t.WLB(6,Dt,e.time===o.currentTimeSlot,0===e.available)),t.xp6(1),t.hij(" ",e.time," ")}}function Ut(n,s){1&n&&(t.TgZ(0,"div"),t._uU(1," Please Select Timeslot "),t.qZA())}function It(n,s){if(1&n&&(t.TgZ(0,"div")(1,"div",42),t.YNc(2,Nt,3,9,"ng-container",35),t.TgZ(3,"mat-error",43),t.YNc(4,Ut,2,0,"div",7),t.qZA()()()),2&n){const e=t.oxw();
1t.xp6(2),t.Q6J("ngForOf",e.getTimeSlots),t.xp6(2),t.Q6J("ngIf",void 0===e.currentTimeSlot)}}function Lt(n,s){1&n&&(t.TgZ(0,"div")(1,"mat-error",48),t._uU(2,'Selected date is set to "Day Off". Use the date picker above to choose another date.'),t.qZA()())}function Ot(n,s){if(1&n&&(t.TgZ(0,"mat-error",48),t._uU(1),t.ALo(2,"date"),t.ALo(3,"date"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.AsE("Please select service date between ",t.xi3(2,2,e.serviceStartDate,e.defaultDateTimeFormat.date_format)," AND ",t.xi3(3,5,e.serviceEndDate,e.defaultDateTimeFormat.date_format),"")}}function Mt(n,s){if(1&n&&(t.TgZ(0,"mat-error",48),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij("Please select service date from ",t.xi3(2,1,e.serviceStartDate,e.defaultDateTimeFormat.date_format),"")}}function Jt(n,s){if(1&n&&(t.YNc(0,Ot,4,8,"mat-error",49),t.YNc(1,Mt,3,4,"mat-error",49)),2&n){const e=t.oxw(2);t.Q6J("ngIf",null!=e.serviceStartDate&&null!=e.serviceEndDate),t.xp6(1),t.Q6J("ngIf",null==e.serviceEndDate)}}function Pt(n,s){if(1&n&&(t.TgZ(0,"div",45),t.YNc(1,Lt,3,0,"div",46),t.YNc(2,Jt,2,2,"ng-template",null,47,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.dateSelectedCal>o.serviceStartDate&&o.dateSelectedCal<o.serviceEndDate)("ngIfElse",e)}}function Ft(n,s){if(1&n&&(t.TgZ(0,"mat-option",41),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Yt(n,s){1&n&&(t.TgZ(0,"div")(1,"mat-error",52),t._uU(2,"Slot is full"),t.qZA()())}function qt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",12)(1,"div",13)(2,"mat-form-field",50)(3,"mat-label"),t._uU(4,"Party Size:"),t.qZA(),t.TgZ(5,"mat-select",51),t.NdJ("selectionChange",function(i){t.CHM(e);const a=t.oxw();return t.KtG(a.getGuests(i))}),t.YNc(6,Ft,2,2,"mat-option",18),t.qZA()()(),t.YNc(7,Yt,3,0,"div",7),t.qZA()}if(2&n){const e=t.oxw();
1t.xp6(6),t.Q6J("ngForOf",e.partySize),t.xp6(1),t.Q6J("ngIf",e.displayServiceFull)}}function Qt(n,s){if(1&n&&(t.TgZ(0,"mat-option",41),t._uU(1),t.qZA()),2&n){const e=s.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",(null==e?null:e.first_name)||""," ",(null==e?null:e.last_name)||""," ")}}function zt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"mat-form-field",14)(2,"mat-label"),t._uU(3,"Guest Attendees Name"),t.qZA(),t._UZ(4,"input",53),t.TgZ(5,"mat-autocomplete",16,17),t.NdJ("optionSelected",function(i){const r=t.CHM(e).index,c=t.oxw();return t.KtG(c.updateSearchSelections(i,r))}),t.YNc(7,Qt,2,3,"mat-option",18),t.ALo(8,"async"),t.qZA()()()}if(2&n){const e=s.index,o=t.MAs(6),i=t.oxw();t.xp6(4),t.Q6J("formControlName",e)("matAutocomplete",o),t.xp6(3),t.Q6J("ngForOf",t.lcZ(8,3,i.guestFilteredOptions[e]))}}function Gt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",54),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onSubmit())}),t._uU(1," Submit "),t.qZA()}}function Et(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",54),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onSubmit())}),t._uU(1," Update "),t.qZA()}}let V=(()=>{class n{constructor(e,o,i,a,r,c,u,g,f){this.route=e,this.dialog=o,this.router=i,this._userService=a,this.service=r,this.bookingService=c,this.fb=u,this._matSnackBar=g,this.commonService=f,this.pageHeading="",this.guest=new m.cw({fields:new m.Oe([new m.NI("")])}),this.myControl=new m.NI,this.mySecondControl=new m.NI,this.myThirdControl=new m.NI,this.myGuestControl=new m.NI,this.guestInfo=new m.Oe([]),this.partySize=[],this.getTimeSlots=[],this.groupLimit=[],this.minDate=new Date,this.defaultDateTimeFormat={date_format:"MM-dd-yyyy",time_format:"h:mm a"},this.getGuestsCount=[],this.displayServiceFull=!1,this.disableSubmit=!1,this.guests=new Array,this.userArrays=[],this.loading=!1,this.guestFilteredOptions=[],this.existingGuestInfo=""}ngOnInit(){this.guest.controls.fields.clear(),this.selectedId=this.route.snapshot.params.id,this.pageHeading=this.selectedId?"Edit Appointment Booking":"New Appointment Booking",this.addBookingForm=new m.cw({first_name:this.fb.control("",[m.kI.required]),email:this.fb.control("",[m.kI.required,m.kI.email]),phone:this.fb.control("",[m.kI.pattern(/^\(\d{3}\)\s\d{3}-\d{4}$/),m.kI.required]),services:this.fb.control(""),appointment_type_id:this.fb.control(""),note:this.fb.control(""),date:this.fb.control(new Date),end_date:this.fb.control(""),guestcount:this.fb.control(1),guestsinfo:this.fb.array([]),id:this.fb.control(""),booking_start_date:this.fb.control("")}),this.selectedId&&this.getById(),this._userService.GetAllUser(1,-1,"",1,"").subscribe(e=>{this.dataValues=e.data,this.firstName=e.data.map(o=>({first_name:o.first_name,last_name:o.last_name})),this.guestFirstName=e.data.map(o=>o.first_name+" "+o.last_name),this.email=e.data.map(o=>o.email),this.phone=e.data.map(o=>o.contact_number?o.contact_number.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):""),this.GetData(),this.addBookingForm.controls.guestcount.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(o=>{o&&(this.guests=new Array(o-1))}),this.myThirdControl.valueChanges.pipe((0,v.b)(270),(0,b.x)()).subscribe(o=>{if(this.myThirdControl){let i=o;i=i.replace(/\D/g,""),i=i.slice(0,10);const a=`(${i.slice(0,3)}) ${i.slice(3,6)}-${i.slice(6)}`;this.myThirdControl.setValue(a)}})}),this.getServicesData(),this.getAppointmentSettings()}getAppointmentSettings(){this.commonService.getSiteSettings("Appointment_Booking").subscribe({next:e=>{e.status.error||Object.keys(e.data).map(i=>e.data[i]).forEach(i=>{"Guest Field Required"===i.meta_key?this.guestRequired="Yes"===i.meta_value?"Y":"N":"Accept bookings X hours before appointment start time(in hour)"===i.meta_key||"Default status for booked"===i.meta_key&&(this.statusFromSettings=i.meta_value)})}})}getById(){this.bookingService.getById(this.selectedId).subscribe(e=>{if(!e.status.error){const o=e.data.appointment_type_id?.id;if(null!=o&&localStorage.setItem("serviceId",o.toString()),"string"==typeof e.data?.guest_info&&(this.existingGuestInfo=e.data.guest_info),this.addBookingForm.patchValue({note:e.data.note,appointment_type_id:e.data.appointment_type_id.id,date:new Date(e.data.date),guestcount:e.data.guest_count}),this.myControl.setValue(e.data.name),this.mySecondControl.setValue(e.data.email),this.myThirdControl.setValue(e.data.phone_number?e.data.phone_number.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):""),this.selectedDate=new Date(e.data.date),this.getGuests({value:e.data?.guest_count}),this.existingGuestInfo){const i=JSON.parse(this.existingGuestInfo);for(let a=0;a<this.userArrays.length;a++)a<i.length&&i[a]&&(this.userArrays[a]=i[a])}this.editSlot(e.data.appointment_type_id.id,e.data.date,e.data.guest_count,e.data.time)}})}setGuestValues(e){const o=e?.map(a=>{const r=a.first_name||"",c=a.last_name||"";return r||c?`${r} ${c}`:""}),i=this.guest.get("fields");
1i&&i.patchValue(o)}onSubmit(){const e={name:this.myControl.value,phone_number:this.myThirdControl.value?this.myThirdControl.value.replace(/\D/g,""):"",email:this.mySecondControl.value,date:this.serviceDate,note:this.addBookingForm.value.note,time:T(this.currentTimeSlot,"hh:mmA").format("HH:mm"),appointment_type_id:this.serviceID,user_id:this.userId,guest_info:JSON.stringify(this.userArrays),guest_count:this.addBookingForm.value.guestcount,status:this.statusFromSettings};this.selectedId?this.bookingService.updateBookings(this.selectedId,e).subscribe(o=>{o.status.error||(this._matSnackBar.open("Appointment Booking Updated Successfully","CLOSE",{verticalPosition:"top",duration:2e3}),this.router.navigate(["../../list"],{relativeTo:this.route}))},o=>{this._matSnackBar.open(o.error?.status?.message||o.error?.message||"An error occurred","CLOSE",{verticalPosition:"top",duration:3e3})}):this.bookingService.postBookings(e).subscribe(o=>{o.status.error||(this._matSnackBar.open("Appointment Booking Added Successfully","CLOSE",{verticalPosition:"top",duration:2e3}),this.router.navigate(["../list"],{relativeTo:this.route}))},o=>{this._matSnackBar.open(o.error?.status?.message||o.error?.message||"An error occurred","CLOSE",{verticalPosition:"top",duration:3e3})})}getGuests(e){this.getGuestsCount=[],this.guestVal=e.value-1;const o=this.guest.get("fields"),i=[...this.userArrays];o.clear(),this.userArrays=[];for(var a=0;a<this.guestVal;a++)this.getGuestsCount.push(a),o.push(new m.NI("")),this.manageControl(a),this.userArrays.push(new At.n);const r=i.length>0?i:this.existingGuestInfo?JSON.parse(this.existingGuestInfo):[];for(let c=0;c<this.userArrays.length;c++)c<r.length&&r[c]&&(this.userArrays[c]=r[c]);this.setGuestValues(this.userArrays)}manageControl(e){this.guestFilteredOptions[e]=this.guest.controls.fields.valueChanges.pipe((0,Z.U)(o=>{const i=o[e];if("string"==typeof i)if(""!==i.trim()){const a=i.trim().split(" ");this.userArrays[e]={first_name:a[0]||"",last_name:a.slice(1).join(" ")||""}}else this.userArrays[e]={first_name:"",last_name:"",email:""};return this.filterGuestName(i)}))}onSelectDate(e){this.serviceDate=T(e).format("YYYY-MM-DD"),this.dateSelectedCal=T(e).format("YYYY-MM-DD"),this.selectedDate=e;const o=localStorage.getItem("serviceId"),i=this.serviceID??o;i?this.timeSlots(i,this.serviceDate):console.error("No valid ID found for timeSlots")}getServicesData(){this.loading=!0,this.service.getServices(1,-1,"",1,null).subscribe({next:e=>{e.status.error||(this.loading=!1,this.serviceList=e.data,this.services=e.data)}})}getServices(e){if(this.services&&e.value){this.serviceID=e.value;let o=this.services.filter(i=>i.id==e.value);o?(this.serviceStartDate=o[0].service_start_date,this.serviceEndDate=o[0].service_end_date):(this.serviceStartDate="",this.serviceEndDate="")}this.timeSlots(this.serviceID,this.serviceDate)}timeSlots(e,o){this.partySize=[];const i={service_id:e,date:o};this.loading=!0,this.bookingService.getTimeSlot(i).subscribe(a=>{this.loading=!1,this.getTimeSlots=a.data?.filter(r=>{const c=r.time.split(":"),u=new Date(0,0,0,+c[0],+c[1],0),g=this.commonService.modifyDate(u,"hh:mm a");return r.time=g||"",r.time}),this.addBookingForm.get("guestcount")?.setValue(1),null!=this.currentTimeSlot&&this.getPartySizes(this.currentTimeSlot)})}editSlot(e,o,i,a){const r={service_id:e,date:o};this.loading=!0,this.bookingService.getTimeSlot(r).subscribe(c=>{this.loading=!1;const u=(a=T(a,"hh:mmA").format("HH:mm")).split(":"),g=new Date(0,0,0,+u[0],+u[1],0),f=this.commonService.modifyDate(g,"hh:mm a");a=f||"",this.getTimeSlots=c.data.filter(_=>_.time),this.getTimeSlots=this.getTimeSlots.map(_=>
1{const N=_.time.split(":"),$t=new Date(0,0,0,+N[0],+N[1],0),H=this.commonService.modifyDate($t,"hh:mm a");return _.time=H||"",_});const p=i;if(null!=p){for(var C=1;C<=parseInt(p+1);C++);this.getEditPartySize(p,a,this.getTimeSlots)}})}getEditPartySize(e,o,i){const a=e+1,r=o;this.currentTimeSlot=o;let u=i.filter(p=>p.time.includes(r.slice(0,5))).map(p=>p.partySize+a);for(var g=1;g<=u;g++)this.partySize.push(g);this.groupLimit=Array.from(new Array(u||0),(p,C)=>C+1)}getPartySizes(e){this.currentTimeSlot=e,this.partySize=[];let i=this.getTimeSlots.filter(c=>c.time===e).map(c=>c.partySize);for(var a=1;a<=i;a++)this.partySize.push(a);this.groupLimit=Array.from(new Array(i||0),(c,u)=>u+1)}resetGroupLimit(e=1){this.addBookingForm.get("guestcount")?.setValue(e)}validateParentForm(e){this.disableSubmit="Y"==this.guestRequired&&e}setguestInfoFieldValue(e){this.addBookingForm.get("guestsinfo")?.setValue(e)}GetData(){this.filteredOptions=this.myControl.valueChanges.pipe((0,D.O)(""),(0,Z.U)(e=>this.filter(e))),this.secondfilteredOptions=this.mySecondControl.valueChanges.pipe((0,D.O)(""),(0,Z.U)(e=>this.filterEmail(e))),this.thirdfilteredOptions=this.myThirdControl.valueChanges.pipe((0,D.O)(""),(0,Z.U)(e=>this.filterPhone(e)))}filter(e){if("string"==typeof e){const o=e.toLowerCase();return this.dataValues.filter(i=>0===(i.first_name+" "+i.last_name).toLowerCase().indexOf(o))}return[]}filterGuestName(e){if("string"==typeof e){const o=e.toLowerCase();return this.dataValues.filter(i=>0===(i.first_name+" "+i.last_name).toLowerCase().indexOf(o))}return[]}filterEmail(e){return this.email.filter(o=>0===o.toLowerCase().indexOf(e.toLowerCase()))}filterPhone(e){return this.phone.filter(o=>0===o.toLowerCase().indexOf(e.toLowerCase()))}updateSearchSelection(e){let o;"firstName"===e&&(o=this.dataValues.find(i=>i.first_name+" "+i.last_name==this.myControl.value.first_name+" "+this.myControl.value.last_name),this.filterName=o.first_name+" "+o.last_name),"email"===e&&(o=this.dataValues.find(i=>i.email===this.mySecondControl.value)),"phone"===e&&(o=this.dataValues.find(i=>i.contact_number===this.myThirdControl.value)),o?.first_name&&(this.myControl.setValue(o.first_name+" "+o.last_name),this.userId=o.id),o?.email&&this.mySecondControl.setValue(o.email),this.myThirdControl.setValue(o?.contact_number?o.contact_number:o?.cell_number?o.cell_number:"")}updateSearchSelections(e,o){let i;const a=this.guest.get("fields");e.option.value&&(i=this.dataValues.find(r=>r.first_name+" "+r.last_name==e.option.value.first_name+" "+e.option.value.last_name),a.at(o).setValue(i.first_name+" "+i.last_name),this.userArrays[o]=i)}getEditPartySizes(e,o,i,a,r,c,u,g,f){this.currentTimeSlot=T(e,"HH:mm").format("hh:mm A"),this.partySize=[],"number_of_residents"==o||0==i?(parseInt(a),parseInt(r)):(parseInt(c),parseInt(r));let C=u;parseInt(g),parseInt(f),parseInt(C)}backToList(){this.route.snapshot.params.id?this.dialog.open(L.N,{data:{title:"Confirm",message:"Your changes are not saved. Are you sure, you want to discard changes? "}}).afterClosed().subscribe(o=>{!0===o&&this.router.navigate(["../../list"],{relativeTo:this.route})}):this.router.navigate(["../list"],{relativeTo:this.route})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.gz),t.Y36(P.uw),t.Y36(S.F0),t.Y36(Zt.f),t.Y36(O.m),t.Y36(M.F),t.Y36(m.qu),t.Y36(B.ux),t.Y36(J.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-bookings-add"]],decls:89,vars:23,consts:[[1,"card","page-header-card"],[1,"card-body"],[1,"row","page-actions"],[1,"col-md-8","my-md-0","my-4","page-heading"],[1,"header-icon"],[1,"col-md-4"],["mat-raised-button","","type","button","color","primary",1,"float-end",3,"click"],[4,"ngIf"],[1,"card","mt-4"],[1,"card-body","p-5"],[1,"form-heading","p-4"],[3,"formGroup"],[1,"row"],[1,"custom-column"],["appearance","outline",1,"example-full-width"],["type","text","placeholder","Name","aria-label","Number","matInput","","required","",3,"formControl","matAutocomplete"],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["id","tel","matInput","","placeholder","Contact Number","name","phone","phoneMask","","mask","(000) 000-0000","required","",3,"formControl","preV
1alue","phoneControl"],["type","email","placeholder","Email","aria-label","Number","matInput","","required","",3,"formControl"],["appearance","outline"],["formControlName","appointment_type_id",3,"selectionChange"],[1,"col-md-3"],["fxFlex","30",1,"mr-32"],["hidden","","type","text","formControlName","booking_start_date","name","booking_start_date"],[1,"font-weight-600","font-size-18","green-bg-color","fuse-white-fg","p-12","w-100-p","d-block"],[1,"border","mb-20","back-dining-booking",3,"minDate","selected","selectedChange"],[1,"col-md-9"],[1,"font-weight-600","font-size-18","green-bg-color","fuse-white-fg","p-12","w-100-p","d-block",2,"display","block"],[1,"h-100-p","border"],["class","px-20","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-6"],["formArrayName","fields"],[4,"ngFor","ngForOf"],["type","text","matInput","","formControlName","note"],[1,"col-4"],[1,"mt-28","col-2"],["mat-raised-button","","class","mr-4 br-ds-0 box-shadow-none font-size-16 fuse-white-fg line-height-44","cdkFocusInitial","",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","warn",1,"ml-4","br-ds-0","box-shadow-none-Cancel","font-size-16","fuse-white-fg","line-height-44",3,"click"],[3,"value"],[1,"p-16"],[1,"mt-16"],[3,"disabled","ngClass","click"],["fxLayout","row","fxLayoutAlign","center center",1,"px-20"],[4,"ngIf","ngIfElse"],["displayElse",""],[1,"my-16"],["class","my-16",4,"ngIf"],["appearance","outline","fxFlex","100"],["name","guestcount","formControlName","guestcount",3,"selectionChange"],[1,"mb-16"],["type","text","placeholder","Guest Attendees Name","aria-label","Number","matInput","",3,"formControlName","matAutocomplete"],["mat-raised-button","","cdkFocusInitial","",1,"mr-4","br-ds-0","box-shadow-none","font-size-16","fuse-white-fg","line-height-44",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),t._uU(5),t.qZA(),t.TgZ(6,"span",4)(7,"mat-icon"),t._uU(8,"keyboard_arrow_right"),t.qZA()()(),t.TgZ(9,"div",5)(10,"button",6),t.NdJ("click",function(){return o.backToList()}),t.TgZ(11,"mat-icon"),t._uU(12," arrow_back"),t.qZA(),t.TgZ(13,"span"),t._uU(14,"Back To List"),t.qZA()()()()()(),t.YNc(15,yt,1,0,"app-loading",7),t.TgZ(16,"div",8)(17,"div",9)(18,"div",10),t._uU(19),t.qZA(),t.TgZ(20,"form",11)(21,"div",12)(22,"div",13)(23,"mat-form-field",14)(24,"mat-label"),t._uU(25,"Name"),t.qZA(),t._UZ(26,"input",15),t.TgZ(27,"mat-autocomplete",16,17),t.NdJ("optionSelected",function(){return o.updateSearchSelection("firstName")}),t.YNc(29,Bt,2,3,"mat-option",18),t.ALo(30,"async"),t.qZA(),t.TgZ(31,"mat-error"),t._uU(32,"Name field is required"),t.qZA()()(),t.TgZ(33,"div",13)(34,"mat-form-field",14)(35,"mat-label"),t._uU(36,"Contact Number"),t.qZA(),t._UZ(37,"input",19),t.TgZ(38,"mat-error"),t._uU(39,"Contact Number Required"),t.qZA()()()(),t.TgZ(40,"div",12)(41,"div",13)(42,"mat-form-field",14)(43,"mat-label"),t._uU(44,"Email Address"),t.qZA(),t._UZ(45,"input",20),t.TgZ(46,"mat-error"),t._uU(47,"Email is required "),t.qZA()()(),t.TgZ(48,"div",13)(49,"mat-form-field",21)(50,"mat-label"),t._uU(51,"Appointment Service"),t.qZA(),t.TgZ(52,"mat-select",22),t.NdJ("selectionChange",function(a){return o.getServices(a)}),t.YNc(53,wt,2,2,"mat-option",18),t.qZA()()()(),t.TgZ(54,"div",12)(55,"div",23)(56,"div",24),t._UZ(57,"input",25),t.TgZ(58,"mat-label",26),t._uU(59,"Select A Date:"),t.qZA(),t.TgZ(60,"mat-calendar",27),t.NdJ("selectedChange",function(a){return o.onSelectDate(a)}),t.qZA()()(),t.TgZ(61,"div",28)(62,"mat-label",29),t._uU(63,"Time Slot:"),t.qZA(),t.TgZ(64,"div",30),t.YNc(65,It,5,2,"div",7),t.YNc(66,Pt,4,2,"div",31),t.qZA()()(),t._UZ(67,"br"),t.YNc(68,qt,8,2,"div",32),t.TgZ(69,"div",12)(70,"div",12)(71,"div",33)(72,"form",11)(73,"div",34),t.YNc(74,zt,9,5,"div",35),t.qZA()()()()(),t.TgZ(75,"div",12)(76,"div",13)(77,"mat-form-field",21)(78,"mat-label"),t._uU(79,"Notes"),t.qZA(),t._UZ(80,"input",36),t.qZA()()(),t.TgZ(81,"div",12),t._UZ(82,"div",37),t.TgZ(83,"div",38),t.YNc(84,Gt,2,0,"button",39),t.YNc(85,Et,2,0,"button",39),t.qZA(),t.TgZ(86,"div",33)(87,"button",40),t.NdJ("click",function(){return o.backToList()}),t._uU(88," Cancel "),t.qZA()()()()()()),2&e){const i=t.MAs(28);t.xp6(5),t.Oqu(o.pageHeading),t.xp6(10),t.Q6J("ngIf",o.loading),t.xp6(4),t.Oqu(o.pageHeading),t.xp6(1),t.Q6J("formGroup",o.addBookingForm),t.xp6(6),t.Q6J("formControl",o.myControl)("matAutocomplete",i),t.xp6(3),t.Q6J("ngForOf",t.lcZ(30,21,o.filteredOptions)),t.xp6(8),t.Q6J("formControl",o.myThirdControl)("preValue",o.addBookingForm.value.phone)("phoneControl",o.addBookingForm.controls.phone),t.xp6(8),t.Q6J("formControl",o.mySecondControl),t.xp6(8),t.Q6J("ngForOf",o.serviceList),t.xp6(7),t.Q6J("minDate",o.minDate)("selected",o.selectedDate),t.xp6(5),t.Q6J("ngIf",null!=o.getTimeSlots),t.xp6(1),t.Q6J("ngIf",null==o.getTimeSlots),t.xp6(2),t.Q6J("ngIf",0!=o.partySize.length),t.xp6(4),t.Q6J("formGroup",o.guest),t.xp6(2),t.Q6J("ngForOf",o.guest.controls.fields.controls),t.xp6(10),t.Q6J("ngIf",!o.selectedId),t.xp6(1),t.Q6J("ngIf",o.selectedId)}}
1,dependencies:[h.mk,h.sg,h.O5,m._Y,m.Fj,m.JJ,m.JL,m.Q7,m.oH,m.sg,m.u,m.CE,E.XC,E.ZL,F.ey,Y.lW,A._H,k.TO,k.KE,k.hX,q.Hw,Q.Nt,z.gD,xt.v,G.N,h.Ov,h.uU],styles:['@import"https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined";#back-appointment-booking-add[_ngcontent-%COMP%]   button.timeslots-btn[_ngcontent-%COMP%]{width:91px;margin:1px}#back-appointment-booking-add[_ngcontent-%COMP%]   .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}#back-appointment-booking-add[_ngcontent-%COMP%]   .min-100-p[_ngcontent-%COMP%]{min-width:100%}#back-appointment-booking-add[_ngcontent-%COMP%]   button.available[_ngcontent-%COMP%]{background-color:#0ab67a;color:#fff}#back-appointment-booking-add[_ngcontent-%COMP%]   button.available[_ngcontent-%COMP%]:hover, #back-appointment-booking-add[_ngcontent-%COMP%]   button.timeslots-btn.selectedbooking[_ngcontent-%COMP%]{background:#d6d6d6;color:#000}#back-appointment-booking-add[_ngcontent-%COMP%]   button.unavailable[_ngcontent-%COMP%]{background-color:#b9b7b8;cursor:not-allowed!important;color:#4147487d}#back-appointment-booking-add[_ngcontent-%COMP%]   button.booked[_ngcontent-%COMP%]{background:#d07364!important;color:#fff!important;cursor:text!important}#back-appointment-booking-add[_ngcontent-%COMP%]   button.booked[_ngcontent-%COMP%]:hover{background-color:#b95d50!important;color:#000!important}#back-appointment-booking-add[_ngcontent-%COMP%]   .update-btn-wrapper[_ngcontent-%COMP%]   .mat-raised-button[disabled][_ngcontent-%COMP%]{background-color:#ac087757!important}#back-appointment-booking-add[_ngcontent-%COMP%]   .Indicates-btn[_ngcontent-%COMP%]{width:20px;height:12px;display:inline-block}#back-appointment-booking-add[_ngcontent-%COMP%]   td.booked[_ngcontent-%COMP%]{background-color:#b95d50;color:#fff}#back-appointment-booking-add[_ngcontent-%COMP%]   td.available[_ngcontent-%COMP%]{background-color:#0ab67a;color:#fff}#back-appointment-booking-add[_ngcontent-%COMP%]   td.unavailable[_ngcontent-%COMP%]{background-color:#b9b7b8;cursor:not-allowed;color:#4147487d}tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#fff}  .mat-calendar-body-cell-content{border-radius:0!important}.h-100-p[_ngcontent-%COMP%]{height:90%}.available[_ngcontent-%COMP%]{background-color:#0ab67a;color:#fff}.unavailable[_ngcontent-%COMP%]{background-color:#b9b7b8;cursor:not-allowed!important;color:#4147487d}.booked[_ngcontent-%COMP%]{background-color:#b95d50;color:#fff}.timeslots-btn.selectedbooking[_ngcontent-%COMP%]{background:#d6d6d6!important;color:#000!important}.timeslots-btn[_ngcontent-%COMP%]:hover{background:#d6d6d6;color:#000}']}),n})();const Vt=[{path:"list",component:Tt},{path:"add",component:V},{path:"edit/:id",component:V}];let Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[h.ez,m.UX,j.q,S.Bz.forChild(Vt),$.m,I.Ll,I.x]}),n})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.