PageSourceSearch

https://baabziwarwick.co.uk/order/chunk-MQXR2OM4.js

js baabziwarwick.co.uk collected 2026-09-24 15:13:35 UTC 131,801 bytes, 1 lines download raw bytes

1import{d as ct,e as _t,f as mt,g as pt,h as gt,i as ut,j as ht,k as vt,l as ft,m as xt}from"./chunk-EANYADMV.js";import{a as Ve,c as Ae,d as bt}from"./chunk-KWIWO6OY.js";import{$a as Ye,Ab as Ke,Ac as qe,Ba as i,Bb as Je,Bc as re,Ca as o,Cb as Xe,Cc as lt,Da as p,Db as Ze,Dc as te,E as ye,Ea as k,Eb as le,Ec as R,Fa as C,Fb as et,Fc as j,Ga as Ue,Ha as E,Ic as q,Ja as f,Ka as c,Kc as z,M as u,N as h,Na as N,O as V,Oa as W,P as U,Pa as Qe,Qb as ce,Ra as K,Sa as J,Sb as Z,Ta as X,Tb as Se,Ub as tt,Vb as Re,Wa as w,Wb as F,Xa as r,Xb as H,Ya as g,Za as v,Zb as it,_a as de,_b as oe,ab as T,ac as Y,bb as D,cb as B,cc as ae,da as P,dc as _e,ea as s,ec as Me,fc as Ee,g as He,gb as Ce,gc as ee,ha as x,hb as S,hc as me,ib as ne,ic as pe,jb as M,jc as nt,kb as I,kc as Ie,lc as Oe,ma as A,mc as Pe,na as ke,nc as Te,oc as De,pc as Be,qc as ot,ra as m,rc as at,ua as _,uc as rt,va as $e,vb as we,vc as st,wa as Ge,wb as Q,wc as je,xb as L,xc as dt}from"./chunk-PL6Q7B2X.js";var se=(()=>{class t{constructor(){this.base_url=F.baseUrl}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-account-menu"]],standalone:!1,decls:22,vars:0,consts:[[1,"tab-details"],["id","myTab","role","tablist",1,"profile-tab-head","nav","nav-tabs","menu-tabs"],["role","presentation","routerLinkActive","active",1,"nav-item"],["routerLink","/account/details","id","myProfile-tab",1,"nav-link"],["iconname","profile"],["routerLink","/account/my-order","id","Orders-tab","data-bs-toggle","tab",1,"nav-link"],["iconname","order"],["routerLink","/account/my-booking","id","Bookings-tab","data-bs-toggle","tab",1,"nav-link"],["iconname","booking"],["routerLink","/account/address-book","id","Bookings-tab","data-bs-toggle","tab",1,"nav-link"],["iconname","address_book"]],template:function(a,n){a&1&&(i(0,"div",0)(1,"ul",1)(2,"li",2)(3,"a",3),p(4,"app-svg-icon",4),i(5,"h6"),r(6,"Profile"),o()()(),i(7,"li",2)(8,"a",5),p(9,"app-svg-icon",6),i(10,"h6"),r(11,"Orders"),o()()(),i(12,"li",2)(13,"a",7),p(14,"app-svg-icon",8),i(15,"h6"),r(16,"Bookings"),o()()(),i(17,"li",2)(18,"a",9),p(19,"app-svg-icon",10),i(20,"h6"),r(21,"Address Book"),o()()()()())},dependencies:[Se,tt,Ve],styles:[".profile-tab-head[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background-color:var(--color-c1)}"]})}}return t})();var Dt=["edit_mobile_otp_modal"];function Bt(t,l){if(t&1&&(i(0,"span",36),p(1,"i",37),r(2),o()),t&2){let e=c();s(2),v(" ",e.apidata.verify,"")}}function Vt(t,l){if(t&1){let e=E();i(0,"span",38)(1,"a",39),f("click",function(){u(e);let n=c();return h(n.verify_mobile())}),i(2,"span",38),r(3,"Verify Now"),o()()()}}function At(t,l){t&1&&(i(0,"span",38)(1,"a",40),r(2,"Add Mobile Number"),o()())}function Ft(t,l){t&1&&(i(0,"div",55),r(1,"Name is required"),o())}function Nt(t,l){if(t&1&&(i(0,"p",55),r(1),o()),t&2){let e=c(2);s(),g(e.update_err_text)}}function Lt(t,l){if(t&1){let e=E();i(0,"form",41,5),f("ngSubmit",function(){u(e);let n=w(15),d=c();return h(d.edit_detail_form(n.valid))}),i(2,"div",42)(3,"h3",43),r(4,"Edit Your Personal Details"),o(),i(5,"button",44),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),o()(),i(6,"div",45)(7,"div",16)(8,"div",46)(9,"div",47)(10,"label"),r(11,"Name"),i(12,"span",48),r(13,"*"),o()(),i(14,"input",49,6),B("ngModelChange",function(n){u(e);let d=c();return D(d.update_details.name,n)||(d.update_details.name=n),h(n)}),o(),m(16,Ft,2,0,"div",50),o()()(),m(17,Nt,2,1,"p",50),o(),i(18,"div",51)(19,"div",52),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),r(20,"Close"),o(),i(21,"div"),p(22,"img",53),o(),i(23,"div")(24,"button",54),r(25,"Update"),o()()()()}if(t&2){let e=w(1),a=w(15),n=c();s(14),T("ngModel",n.update_details.name),s(2),_("ngIf",a.invalid&&a.touched||a.invalid&&e.submitted),s(),_("ngIf",n.update_err)}}function Rt(t,l){t&1&&(i(0,"div",55),r(1," Mobile Number is required "),o())}function jt(t,l){t&1&&(i(0,"div",55),r(1," Phone number must have 11 digit and a leading 0 "),o())}function qt(t,l){if(t&1&&(i(0,"p",55),r(1),o()),t&2){let e=c(2);s(),g(e.update_err_text)}}function zt(t,l){if(t&1){let e=E();i(0,"form",56,7),f("ngSubmit",function(){u(e);let n=w(1),d=c();return h(d.edit_mobile_form(n.form.valid))}),i(2,"div",42)(3,"h3",43),r(4,"Verify your number"),o(),i(5,"button",44),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),o()(),i(6,"div",57)(7,"div",47)(8,"div",58)(9,"label",59),r(10,"Mobile Number. "),i(11,"span",48),r(12,"*"),o()(),i(13,"input",60),B("ngModelChange",function(n){u(e);let d=c();return D(d.mobile_details.mobile,n)||(d.mobile_details.mobile=n),h(n)}),o()(),m(14,Rt,2,0,"div",50)(15,jt,2,0,"div",50),o()(),i(16,"div",51)(17,"div",61),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),r(18,"Close"),o(),i(19,"div"),p(20,"img",53),o(),i(21,"div"),p(22,"
1input",62),o()(),m(23,qt,2,1,"p",50),o()}if(t&2){let e=c();_("formGroup",e.editMobileForm),s(13),T("ngModel",e.mobile_details.mobile),s(),_("ngIf",(e.updateMobileForm.mobile==null?null:e.updateMobileForm.mobile.touched)&&(e.updateMobileForm.mobile==null||e.updateMobileForm.mobile.errors==null?null:e.updateMobileForm.mobile.errors.required)),s(),_("ngIf",(e.updateMobileForm.mobile==null?null:e.updateMobileForm.mobile.touched)&&(e.updateMobileForm.mobile==null||e.updateMobileForm.mobile.errors==null?null:e.updateMobileForm.mobile.errors.pattern)),s(8),_("ngIf",e.update_err)}}function Wt(t,l){if(t&1&&(i(0,"h5",72),r(1),o()),t&2){let e=c(2);s(),g(e.update_succ_text)}}function Ht(t,l){t&1&&(i(0,"div",55),r(1,"Verification code is required"),o())}function $t(t,l){if(t&1&&(i(0,"p",55),r(1),o()),t&2){let e=c(2);s(),g(e.update_err_text)}}function Gt(t,l){if(t&1){let e=E();i(0,"form",41,8),f("ngSubmit",function(){u(e);let n=w(1),d=c();return h(d.edit_mobile_otp_form(n.form.valid))}),i(2,"div",42)(3,"h3",43),r(4,"Verification"),o(),i(5,"button",63),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),i(6,"span",64),r(7,"\xD7"),o()()(),i(8,"div",65),m(9,Wt,2,1,"h5",66),i(10,"div",47)(11,"label"),r(12,"Enter here the verification code sent to your mobile"),o(),i(13,"input",67,9),B("ngModelChange",function(n){u(e);let d=c();return D(d.mobile_details.mobile_otp,n)||(d.mobile_details.mobile_otp=n),h(n)}),o(),m(15,Ht,2,0,"div",50),o(),m(16,$t,2,1,"p",50),o(),i(17,"div",68),k(18),i(19,"div")(20,"button",69),f("click",function(){let n=u(e).$implicit;return h(n.close("Save click"))}),r(21,"Cancel"),o(),i(22,"input",70),f("click",function(){u(e);let n=c();return h(n.resendotp())}),o()(),p(23,"input",71),C(),o()()}if(t&2){let e=w(1),a=w(14),n=c();s(9),_("ngIf",n.update_succ_text!=""),s(4),T("ngModel",n.mobile_details.mobile_otp),s(2),_("ngIf",!a.value&&e.submitted),s(),_("ngIf",n.update_err)}}function Ut(t,l){t&1&&(i(0,"div",55),r(1," Old password is required "),o())}function Qt(t,l){t&1&&(i(0,"div",55),r(1," New password is required "),o())}function Yt(t,l){t&1&&(i(0,"div",55),r(1," Confirm new password is required "),o())}function Kt(t,l){if(t&1&&(i(0,"p",55),r(1),o()),t&2){let e=c(2);s(),g(e.update_err_text)}}function Jt(t,l){if(t&1){let e=E();i(0,"form",41,5),f("ngSubmit",function(){u(e);let n=w(1),d=c();return h(d.edit_password_form(n.form.valid,n))}),i(2,"div",42)(3,"h4",43),r(4,"Edit Password"),o(),i(5,"button",63),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),i(6,"span",73),r(7,"\xD7"),o()()(),i(8,"div",45)(9,"div",16)(10,"div",46)(11,"div",47)(12,"label"),r(13,"Old password"),i(14,"span",48),r(15,"*"),o()(),i(16,"input",74,10),B("ngModelChange",function(n){u(e);let d=c();return D(d.password_details.old_password,n)||(d.password_details.old_password=n),h(n)}),o(),m(18,Ut,2,0,"div",50),o(),i(19,"div",47)(20,"label"),r(21,"New password"),i(22,"span",48),r(23,"*"),o()(),i(24,"input",75,11),B("ngModelChange",function(n){u(e);let d=c();return D(d.password_details.new_password,n)||(d.password_details.new_password=n),h(n)}),o(),m(26,Qt,2,0,"div",50),o(),i(27,"div",47)(28,"label"),r(29,"Confirm new password"),i(30,"span",48),r(31,"*"),o()(),i(32,"input",76,12),B("ngModelChange",function(n){u(e);let d=c();return D(d.password_details.conf_new_password,n)||(d.password_details.conf_new_password=n),h(n)}),o(),m(34,Yt,2,0,"div",50),o()(),i(35,"div",46),m(36,Kt,2,1,"p",50),o()()(),i(37,"div",51)(38,"div",77),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),r(39,"Close"),o(),i(40,"div"),p(41,"img",53),o(),i(42,"div")(43,"button",78),r(44,"Update"),o()()()()}if(t&2){let e=w(1),a=w(17),n=w(25),d=w(33),y=c();s(16),T("ngModel",y.password_details.old_password),s(2),_("ngIf",a.invalid&&a.touched||a.invalid&&e.submitted),s(6),T("ngModel",y.password_details.new_password),s(2),_("ngIf",n.invalid&&n.touched||n.invalid&&e.submitted),s(6),T("ngModel",y.password_details.conf_new_password),s(2),_("ngIf",d.invalid&&d.touched||d.invalid&&e.submitted),s(2),_("ngIf",y.update_err)}}function Xt(t,l){t&1&&(i(0,"div",55),r(1," Password is required "),o())}function Zt(t,l){if(t&1&&(i(0,"p",55),r(1),o()),t&2){let e=c(2);s(),v(" ",e.update_err_text," ")}}function ei(t,l){if(t&1){let e=E();i(0,"form",41,13),f("ngSubmit",function(){u(e);let n=w(1),d=c();return h(d.accountDelete(n.valid))}),i(2,"div",42)(3,"h3",79),r(4,"Delete Your Account"),o(),i(5,"button",8
10),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),o()(),i(6,"div",65)(7,"p",81)(8,"strong"),r(9,"Do you want to delete your account?"),o(),p(10,"br"),r(11," Please note that deleting this account will also delete all its data. Data cannot be recovered. If you accidentally delete your account, contact the BookYup team immediately. "),o(),i(12,"div",47)(13,"label"),r(14,"Password "),i(15,"span",48),r(16,"*"),o()(),i(17,"input",82,14),B("ngModelChange",function(n){u(e);let d=c();return D(d.deleteAccountPassword,n)||(d.deleteAccountPassword=n),h(n)}),o(),m(19,Xt,2,0,"div",50),o(),m(20,Zt,2,1,"p",50),o(),i(21,"div",83)(22,"button",84),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("cancel"))}),r(23," Back "),o(),i(24,"button",85),r(25," Confirm "),o()()()}if(t&2){let e=w(1),a=w(18),n=c();s(17),T("ngModel",n.deleteAccountPassword),s(2),_("ngIf",a.invalid&&a.touched||a.invalid&&e.submitted),s(),_("ngIf",n.update_err)}}var yt=(()=>{class t{constructor(e,a,n,d,y,O,G){this.customstorageService=e,this.router=a,this.restProvider=n,this.authService=d,this.modalService=y,this.storage=O,this.customEventService=G,this.payload={sessiontoken:""},this.deleteAccountPassword="",this.sessiontoken="",this.deletePopOn=!1,this.apidata=[],this.update_err=!1,this.update_err_text="",this.update_succ_text="",this.update_details={name:"",dob:"",anniversary:"",sessiontoken:""},this.mobile_details={mobile:"",mobile_otp:"",sessiontoken:""},this.password_details={old_password:"",new_password:"",conf_new_password:"",sessiontoken:""},this.customEventService.checklogincomplete().subscribe(b=>{window.location.reload()}),this.payload.sessiontoken=this.authService.getSecureToken(),this.editMobileForm=new Me({mobile:new ee(null,[Y.required,Y.pattern("^0[0-9]{10}$")])})}ngOnInit(){this.loaddata()}get updateMobileForm(){return this.editMobileForm.controls}loaddata(){this.restProvider.postdataapi(this.payload,"users/view_profile").subscribe(e=>{e.responsecode=="200"?this.apidata=e.details:e.responsecode=="201"?this.apidata=[]:String(e.responsecode)=="221"&&this.restProvider.apiCallLogout()})}edit_details(e){this.update_err_text="",this.update_succ_text="",this.update_details.name=this.apidata.name,this.update_details.dob=this.apidata.dob,this.apidata.anniversary=this.apidata.anniversary+"";let a=this.apidata.anniversary.replace(/\s+/g,""),n=new Date(a),d=Number(n.getMonth())+1,y=new je(n.getFullYear(),d,n.getDate());this.update_details.anniversary=y,this.apidata.dob=this.apidata.dob+"",a=this.apidata.dob.replace(/\s+/g,""),n=new Date(a),d=Number(n.getMonth())+1,y=new je(n.getFullYear(),d,n.getDate()),this.update_details.dob=y,this.modalService.open(e,{size:"md",ariaLabelledBy:"modal-basic-title"}).result.then(O=>{this.closeResult=`Closed with: ${O}`},O=>{this.closeResult=`Dismissed ${this.getDismissReason(O)}`})}getDismissReason(e){return""}edit_detail_form(e){e&&(this.update_details.sessiontoken=this.payload.sessiontoken,this.restProvider.postdataapi(this.update_details,"users/Edit_profile").subscribe(a=>{this.update_err=!1,this.update_err_text="",a.responsecode==200?(this.apidata.name=this.update_details.name,this.apidata.anniversary=a.anniversary,this.apidata.dob=a.dob,this.modalService.dismissAll()):(this.update_details.name=this.apidata.name,this.update_details.dob=this.apidata.dob,this.update_details.anniversary=this.apidata.anniversary,this.update_err=!0,this.update_err_text=a.status)},a=>{}))}edit_mobile(e){this.update_err_text="",this.update_succ_text="",this.modalService.open(e,{size:"md",ariaLabelledBy:"modal-basic-title"}).result.then(a=>{this.closeResult=`Closed with: ${a}`},a=>{this.closeResult=`Dismissed ${this.getDismissReason(a)}`})}verify_mobile(){this.update_err=!1,this.mobile_details.mobile=this.apidata.mobile,this.mobile_details.sessiontoken=this.payload.sessiontoken,this.modalService.dismissAll(),setTimeout(()=>{this.modalService.open(this.edit_mobile_otp_modal)},300)}edit_mobile_form(e){e&&(this.apidata.mobile==this.mobile_details.mobile?(this.update_err=!0,this.update_err_text="New mobile number is same as old mobile number."):(this.update_err=!1,this.update_err_text="",this.mobile_details.sessiontoken=this.payload.sessiontoken,this.restProvider.postdataapi(this.mobile_details,"users/change_mobile").subscribe(a=>{a.responsecode==200?(this.modalService.dismissAll(),this.apidata.mobile=this.mobile_details.mobile,this.apidata.verify="Not Verified",this.modalService.open(this.edit_mobile_otp_modal)):(this.update_err=!0,this.update_err_text=a.status)},a=>{})))}edit_mobile_otp_form(e){e&&(this.update_err=!1,this.update_err_text="",this.restProvider.postdataapi(this.mobile_details,"users/verify_mobile").subscribe(a=>{a.responsecode==200?(this.modalService.dismissAll(),this.apidata.mobile=a.updated_mobile,this.apidata.verify=a.verify):(this.update_err=!0,this.update_err_text=a.status)},a=>{this.update_err=!0,this.update_err_text="Server error"}),this.mobile_details.mobile_otp="")}resendotp(){this.update_err=!1,this.update_err_text="",this.mobile_details.sessiontoken=this.payload.sessiontoken,this.restProvider.postdataapi(this.mobile_details,"users/change_mobile").subscribe(e=>{e.responsecode==200?(this.modalService.dismissAll(),this.modalService.open(this.edit_mobile_otp_modal)):(this.update_err=!0,this.update_err_text=e.status)},e=>{this.update_err=!0,this.update_err_text="Server error"})}edit_password(e){this.update_err_text="",this.update_succ_text="",this.update_details.name=this.apidata.name,this.modalService.open(e,{size:"md",ariaLabelledBy:"modal-basic-title"}).result.then(a=>{this.closeResult=`Closed with: ${a}`},a=>{this.closeResult=`Dismissed ${this.getDismissReason(a)}`})}edit_password_form(e,a){e&&(this.password_details.sessiontoken=this.payload.sessiontoken,this.restProvider.postdataapi(this.password_details,"users/Change_password").subscribe(n=>{this.update_err=!1,this.update_err_text="",n.responsecode==200?this.modalService.dismissAll():(this.update_err=!0,this.update_err_text=n.status)},n=>{this.update_err=!0,this.update_err_text="Server error"}),this.password_details.old_password="",this.password_details.new_password="",this.password_details.conf_new_password="",a.resetForm())}deleteUserAccount(e){this.modalService.open(e,{centered:!0})}accountDelete(e){if(!e)return;this.update_err=!1,this.update_err_text="";let a={sessiontoken:this.payload.sessiontoken,password:this.deleteAccountPassword};this.restProvider.postdataapi(a,"users/restaurant_web_api_delete_user").subscribe({next:n=>{n.responsecode==200||n.responsecode=="200"||n.responsecode==202||n.responsecode=="202"?(this.update_err=!0,this.update_err_text=n.status,this.customstorageService.removeLocalstorage("userdata"),this.customstorageService.removeSessionstorage("userdata"),this.customstorageService.removeLocalstorage("sociallogin"),this.customstorageService.removeLocalstorage("usertoken"),this.authService.logout(),this.modalService.dismissAll(),this.router.navigate(["/"])):(this.update_err=!0,this.update_err_text=n.status)},error:n=>{this.update_err=!0,this.update_err_text="Something went wrong"}})}static{this.\u0275fac=function(a){return new(a||t)(x(H),x(Z),x(j),x(R),x(re),x(H),x(te))}}static{this.\u0275cmp=A({type:t,selectors:[["app-my-details"]],viewQuery:function(a,n){if(a&1&&K(Dt,5),a&2){let d;J(d=X())&&(n.edit_mobile_otp_modal=d.first)}},standalone:!1,decls:75,vars:6,consts:[["edit_details_modal",""],["edit_mobile_modal",""],["edit_mobile_otp_modal",""],["edit_password_modal",""],["delete_account_modal",""],["regf","ngForm"],["name","ngModel"],["edit_mobile","ngForm"],["edit_mobile_otp","
1ngForm"],["mobile_otp","ngModel"],["old_password","ngModel"],["new_password","ngModel"],["conf_new_password","ngModel"],["deleteForm","ngForm"],["password","ngModel"],[1,"profile-page-details","container","tabContent"],[1,"row"],["id","myTabContent",1,"profile-tab-body","tab-content"],["id","myProfile","role","tabpanel","aria-labelledby","myProfile-tab",1,"tab-pane","menu-offer","fade","show","active"],[1,"profile-section","details-account"],[1,"head"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"],[1,"",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"edit1"],["d","M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152L0 424c0 48.6 39.4 88 88 88l272 0c48.6 0 88-39.4 88-88l0-112c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 22.1-17.9 40-40 40L88 464c-22.1 0-40-17.9-40-40l0-272c0-22.1 17.9-40 40-40l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 64z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"],["d","M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"],["class","verified",4,"ngIf"],["class","verify",4,"ngIf"],["d","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"],[1,"btn","btn-danger",3,"click"],["id","Orders","role","tabpanel","aria-labelledby","Orders-tab",1,"tab-pane","review-section","fade"],["id","Bookings","role","tabpanel","aria-labelledby","Bookings-tab",1,"tab-pane","info-details","fade"],["id","Address_Book","role","tabpanel","aria-labelledby","Address_Book-tab",1,"tab-pane","book-a-table","fade"],[1,"verified"],[1,"las","la-check-circle"],[1,"verify"],["href","javascript:void(0)",3,"click"],["href","javascript:void(0)",1,"btn"],[3,"ngSubmit"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["size","lg",1,"modal-body","myform"],[1,"col-md-12"],[1,"fldarea"],[1,"text-red"],["name","name","required","",1,"form-control",3,"ngModelChange","ngModel"],["class","alert alert-danger",4,"ngIf"],[1,"modal-footer","justify-content-between","recoder"],[1,"btn",3,"click"],["src","",2,"width","100%"],["type","submit",1,"btn"],[1,"alert","alert-danger"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"input-area"],["for",":r66:",1,"sc-c89d7496-1","dUOnxx"],["placeholder","Mobile Number","name","mobile","formControlName","mobile","name","phone","maxlength","11",1,"form-control",3,"ngModelChange","ngModel"],[1,"btn","btn-outline-dark",3,"click"],["type","submit","value","Submit",1,"btn","btn-dark","btn"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"cross-btn1",2,"line-height","48px"],[1,"modal-body","myform"],["class","greenText",4,"ngIf"],["name","otp","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer","justify-content-between"],["type","button",1,"btn-outline-dark",3,"click"],["type","button","value","Resend",1,"btn-outline-dark","green",3,"click"],["type","submit","value","Submit",1,"btn-dark","btn","submit-my"],[1,"greenText"],["aria-hidden","true"],["type","password","name","old_password","required","",1,"form-control",3,"ngModelChange","ngModel"],["type","password","name","new_password","required","",1,"form-control",3,"ngModelChange","ngModel"],["type","password","name","conf_new_password","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"btn","btn-outline-dark","outline",3,"click"],["type","submit",1,"btn","btn-dark","btn"],[1,"modal-title"],["type","button",1,"btn-close",3,"click"],[1,"alert","alert-warning"],["type","password","name","password","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer","justify-content-end","gap-1"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-dark"]],template:function(a,n){if(a&1){let d=E();p(0,"app-header"),i(1,"section",15)(2,"div",16),p(3,"app-account-menu"),i(4,"div",17)(5,"div",18)(6,"div",19)(7,"div",20)(8,"h3"),V(),i(9,"svg",21),p(10,"path",22),o(),U(),i(11,"span"),r(12),o()(),i(13,"div",23),f("click",function(){u(d);let O=w(59);return h(n.edit_details(O))}),V(),i(14,"svg",24),p(15,"path",25),o()()()(),U(),i(16,"div",19)(17,"div",20)(18,"h3"),V(),i(19,"svg",26),p(20,"path",27),o(),U(),i(21,"span"),r(22),o()()()(),i(23,"div",19)(24,"div",20)(25,"h3"),V(),i(26,"svg",26),p(27,"path",28),o(),U(),i(28,"span"),r(29),o(),m(30,Bt,3,1,"span",29)(31,Vt,4,0,"span",30)(32,At,3,0,"span",30),o(),i(33,"div",23),f("click",function(){u(d);let O=w(61);return h(n.edit_mobile(O))}),V(),i(34,"svg",26),p(35,"path",25),o()()()(),U(),i(36,"div",19)(37,"div",20)(38,"h3"),V(),i(39,"svg",21),p(40,"path",31),o(),U(),i(41,"span"),r(42,"Password "),o(),i(43,"span"),r(44,"*********"),o()(),i(45,"div",23),f("click",function(){u(d);let O=w(65);return h(n.edit_password(O))}),V(),i(46,"svg",24),p(47,"path",25),o()()()(),U(),i(48,"div",19)(49,"div",20)(50,"h3"),V(),i(51,"svg",26),p(52,"path",27),o(),U(),i(53,"span"),r(54,"Delete Account"),o()(),i(55,"span")(56,"button",32),f("click",function(){u(d);let O=w(67);return h(n.deleteUserAccount(O))}),r(57,"Delete"),o()()()()(),m(58,Lt,26,3,"ng-template",null,0,I)(60,zt,24,5,"ng-template",null,1,I)(62,Gt,24,4,"ng-template",null,2,I)(64,Jt,45,7,"ng-template",null,3,I)(66,ei,26,3,"
1ng-template",null,4,I),i(68,"div",33),r(69," bbbb "),o(),i(70,"div",34),r(71," cccc "),o(),i(72,"div",35),r(73," dddd "),o()()()(),p(74,"app-footer")}a&2&&(s(12),g(n.apidata.name),s(10),g(n.apidata.email),s(7),v("",n.apidata.mobile," "),s(),_("ngIf",n.apidata.mobile!==""&&n.apidata.mobile!==null&&n.apidata.verify=="Verified"),s(),_("ngIf",n.apidata.mobile!==""&&n.apidata.mobile!==null&&n.apidata.verify!=="Verified"),s(),_("ngIf",n.apidata.mobile==""||n.apidata.mobile==null))},dependencies:[L,q,z,pe,oe,ae,_e,Be,at,me,Ee,Ie,Oe,se],styles:["svg[_ngcontent-%COMP%]{height:28px;fill:var(--color-c1);position:relative;bottom:2px;margin-right:10px;background:#e9e9e9;border-radius:20%;padding:6px}button.btn.btn-outline-dark[_ngcontent-%COMP%]{margin-left:0;background-color:var(--color-light);border:1px solid var(--color-c1);color:var(--color-c1)}.cross-btn1[_ngcontent-%COMP%]{bottom:8px;position:relative}button.btn-outline-dark[_ngcontent-%COMP%]{border:1px solid var(--color-c1);padding:6px 10px;border-radius:5px;background-color:var(--color-light);color:var(--color-c1)}input.btn-outline-dark.green[_ngcontent-%COMP%]{border:1px solid var(--green);padding:6px 10px;border-radius:5px;background-color:var(--green);color:var(--color-light);margin:0 0 0 10px}input.btn-dark.btn.submit-my[_ngcontent-%COMP%]:hover{color:#000}.modal-header[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]{width:20px;height:20px}.recoder[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{color:var(--color-dark)}svg.edit1[_ngcontent-%COMP%]{cursor:pointer}.btn.btn-dark[_ngcontent-%COMP%]{background-color:var(--green);color:var(--color-light);border-color:var(--green)}.btn.btn-dark[_ngcontent-%COMP%]:hover{background-color:transparent}"]})}}return t})();var ti=["reorderModal"];function ii(t,l){if(t&1&&(i(0,"div",11)(1,"div",3)(2,"div",12),p(3,"img",13),o(),i(4,"div",14)(5,"div",15)(6,"p",16)(7,"strong")(8,"a",17),r(9),o()()(),i(10,"p"),r(11),o(),i(12,"p"),r(13),o(),i(14,"p"),r(15),o()()(),i(16,"div",18)(17,"div",19)(18,"div")(19,"a",20),r(20,"View Detail"),o()()()()()()),t&2){let e=l.$implicit,a=c(2);s(3),W("src","",a.base_url,"assets/images/top-recomended/logo.png",P),s(5),W("href","order-complete?v=",e.okey,"",P),s(),g(e.business_name),s(2),g(e.order_id),s(2),g(e.order_date),s(2),v("\xA3",e.total,""),s(4),Qe("href","",a.base_url,"account/my-order-details/",e.okey,"/0/1",P)}}function ni(t,l){t&1&&p(0,"img",21)}function oi(t,l){if(t&1){let e=E();i(0,"a",22),f("click",function(){u(e);let n=c(2);return h(n.loadMoreOrder())}),r(1,"Load More"),o()}}function ai(t,l){if(t&1&&(i(0,"div",5)(1,"h3"),r(2,"Previous Orders"),o(),m(3,ii,21,11,"div",6),i(4,"div",7)(5,"div",8),m(6,ni,1,0,"img",9)(7,oi,2,0,"a",10),o()()()),t&2){let e=c();s(3),_("ngForOf",e.apidata),s(3),_("ngIf",e.showd_minloader),s(),_("ngIf",!e.showd_minloader&&e.more_order_status)}}function ri(t,l){t&1&&(i(0,"div",23)(1,"h2"),r(2,"No data "),i(3,"strong"),r(4,"available"),o()()())}function si(t,l){if(t&1){let e=E();i(0,"div",24)(1,"h4",25),r(2),o(),i(3,"button",26),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),o()(),i(4,"div",27),r(5),o(),i(6,"div",28)(7,"button",29),f("click",function(){let n=u(e).$implicit;return h(n.close("Close click"))}),r(8,"Close"),o(),i(9,"button",30),f("click",function(){u(e);let n=c();return h(n.hideModal())}),r(10,"OK"),o()()}if(t&2){let e=c();s(2),g(e.modalHeader),s(3),v(" ",e.modalContent," ")}}var kt=(()=>{class t{constructor(e,a,n,d,y,O){this.restProvider=e,this.authService=a,this.storage=n,this.rts=d,this.customEvent=y,this.modalService=O,this.hideShowModal=!1,this.modalHeader="",this.modalContent="",this.redirectLink="",this.isRedirect=!1,this.showdloader=!0,this.showd_minloader=!0,this.sessiontoken="",this.apidata=[],this.req_page=0,this.more_order_status=!1,this.base_url=F.baseUrl,this.sessiontoken=this.authService.getSecureToken()}ngOnInit(){this.loaddata()}loadMoreOrder(){this.showd_minloader=!0,this.req_page+=1,this.loaddata()}loaddata(){let e={req_page:this.req_page,sessiontoken:this.sessiontoken,token:F.business_id};this.restProvider.postdataapi(e,"order/order_list").subscribe(a=>{a.responsecode=="200"?(this.more_order_status=a.more_order_status,this.apidata=this.apidata.concat(a.list)):a.responsecode=="201"&&(this.apidata=[]),this.showd_minloader=!1,this.showdloader=!1})}reorder(e){this.showdloader=!0;let a={okey:e,sessiontoken:this.authService.getSecureToken()};this.restProvider.postdataapi(a,"business/reorder").subscribe(n=>{if(this.showdloader=!1,n.responsecode=="200"||n.responsecode=="202")if(n.reorder_order_id!=null&&n.reorder_order_id!=null&&Number(n.reorder_order_id)>0&&this.storage.setLocalstorage("reorder_order_id",n.reorder_order_id),this.storage.setLocalstorage("isDelMode",n.order_type),this.storage.setLocalstorage("minorderamnt",n.delivery_minorder_price),this.storage.setLocalstorage("zone_delivery_charg",n.delivery_price),this.storage.setLocalstorage("delivery_charge_waiver",n.delivery_charge_waiver),this.storage.setLocalstorage("cartlist",n.cartitems),this.storage.setLocalstorage("business_id",n.business_id),this.storage.setLocalstorage("business_timestamp",n.today_token),this.redirectLink=this.base_url+"business/"+n.bs_slug,this.isRedirect=!0,n.responsecode=="202"||n.responsecode==202)n.inactive_pro_details.length>0||n.price_cng_pro_details.length>0?(this.modalContent="Sorry, there has been some changes to the menu recently. ",n.inactive_pro_details.length>0&&n.price_cng_pro_details.length==0?(this.modalContent+="Out of stock items: ",this.modalContent+=n.inactive_pro_details.join(", ")):n.inactive_pro_details.length==0&&n.price_cng_pro_details.length>0?(this.modalContent+="Price changed items: ",this.modalContent+=n.price_cng_pro_details.join(", ")):(this.modalContent+="Out of stock items: ",this.modalContent+=n.inactive_pro_details.join(", "),this.modalContent+="Price changed items:",this.modalContent+=n.price_cng_pro_details.join(", ")),this.modalContent+=" View the menu for further details. In the mean time you may check the cart."):this.modalContent=n.status,this.modalService.open(this.reorderModal);else{let d=this.base_url+"business/"+n.bs_slug;d!=null&&this.base_url&&(window.location.href=d)}else n.hasOwnProperty("cartitems")&&(this.isRedirect=!0,n.cartitems.length==0&&(this.redirectLink=this.base_url+"business/"+n.bs_slug)),this.modalService.open(this.reorderModal),this.modalHeader="Alert !!!",this.modalContent=n.status})}showModal(){this.modalHeader="Alert !!!",this.hideShowModal=!0}hideModal(){this.hideShowModal=!1,this.isRedirect&&(window.location.href=this.redirectLink)}static{this.\u0275fac=function(a){return new(a||t)(x(j),x(R),x(H),x(Z),x(te),x(re))}}static{this.\u0275cmp=A({type:t,selectors:[["app-my-bookings"]],viewQuery:function(a,n){if(a&1&&K(ti,5),a&2){let d;J(d=X())&&(n.reorderModal=d.first)}},standalone:!1,decls:10,vars:2,consts:[["nodata",""],["reorderModal",""],[1,"profile-page-details","container","tabContent"],[1,"row"],["class","tab-pane review-section","id","Orders","role","tabpanel","aria-labelledby","Orders-tab",4,"ngIf","ngIfElse"],["id","Orders","role","tabpanel","aria-labelledby","Orders-tab",1,"tab-pane","review-section"],["class","card",4,"ngFor","ngForOf"],[1,"row","mt-2","loadMoreBtn"],[1,"col-lg-9"],["src","assets/images/loader.gif","style","width:200
1px;display:table;margin:30px auto",4,"ngIf"],["class","btn btn-prime btn-full mb-5",3,"click",4,"ngIf"],[1,"card"],[1,"left-panel","col-lg-2"],["alt","",1,"w-100",3,"src"],[1,"middle-panel","col-lg-7"],[1,"text"],[1,""],[3,"href"],[1,"right-panel","col-lg-3"],[1,"item-button"],[1,"anchor","btn",3,"href"],["src","assets/images/loader.gif",2,"width","200px","display","table","margin","30px auto"],[1,"btn","btn-prime","btn-full","mb-5",3,"click"],[1,"no-data-open","card"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"modal-footer","recoder"],["type","button",1,"btn",3,"click"],["type","button","data-dismiss","modal",1,"btn",3,"click"]],template:function(a,n){if(a&1&&(p(0,"app-header"),i(1,"section",2)(2,"div",3),p(3,"app-account-menu"),m(4,ai,8,3,"div",4)(5,ri,5,0,"ng-template",null,0,I)(7,si,11,2,"ng-template",null,1,I),o()(),p(9,"app-footer")),a&2){let d=w(6);s(4),_("ngIf",n.apidata.length>0)("ngIfElse",d)}},dependencies:[Q,L,q,z,se],styles:[".modal-header[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]{width:20px;height:20px}.recoder[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{color:var(--color-dark)}.loadMoreBtn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]})}}return t})();var di=["reorderModal"],We=t=>({completed:t});function li(t,l){t&1&&(i(0,"span",24)(1,"div",25)(2,"div",26),V(),i(3,"svg",27)(4,"g",28),p(5,"circle",29)(6,"circle",30)(7,"polyline",31),o()()()()())}function ci(t,l){t&1&&Ue(0,36)}function _i(t,l){if(t&1&&r(0),t&2){let e=c(4);g(e.outputbody.allergy_info)}}function mi(t,l){t&1&&r(0,"N/A")}function pi(t,l){if(t&1&&(i(0,"span"),r(1),o()),t&2){let e=c(2).$implicit;s(),v(" ",e.comments,"")}}function gi(t,l){if(t&1&&(k(0),i(1,"div",50),p(2,"span",51),i(3,"p"),r(4),p(5,"br"),m(6,pi,2,1,"span",7),o()(),C()),t&2){let e=c().$implicit;s(),_("ngClass",Ce(3,We,e.status)),s(3),g(e.level),s(2),_("ngIf",e.comments!=null)}}function ui(t,l){if(t&1&&(i(0,"span"),r(1),o()),t&2){let e=c(2).$implicit;s(),v(" ",e.comments,"")}}function hi(t,l){if(t&1&&(k(0),i(1,"div",50),p(2,"span",51),i(3,"p"),r(4),p(5,"br"),m(6,ui,2,1,"span",7),o()(),C()),t&2){let e=c().$implicit;s(),_("ngClass",Ce(3,We,e.status)),s(3),g(e.level),s(2),_("ngIf",e.comments!=null)}}function vi(t,l){if(t&1&&(i(0,"span"),r(1),o()),t&2){let e=c(2).$implicit;s(),v(" ",e.comments,"")}}function fi(t,l){if(t&1&&(k(0),i(1,"div",50),p(2,"span",51),i(3,"p"),r(4),p(5,"br"),m(6,vi,2,1,"span",7),o()(),C()),t&2){let e=c().$implicit;s(),_("ngClass",Ce(3,We,e.status)),s(3),g(e.level),s(2),_("ngIf",e.comments!=null)}}function bi(t,l){if(t&1&&(k(0),m(1,gi,7,5,"ng-container",7)(2,hi,7,5,"ng-container",7)(3,fi,7,5,"ng-container",7),C()),t&2){let e=l.$implicit,a=c(4);s(),_("ngIf",a.showOrderTrackPendingFlag=="yes"&&e.level=="Order pending"),s(),_("ngIf",a.showOrderTrackPendingFlag=="no"&&e.level=="Order placed"),s(),_("ngIf",e.level!="Order pending"&&e.level!="Order placed")}}function xi(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),v("+ ",e.itemQuantity," x ")}}function yi(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),v("",e.optionHeaderLabel," ")}}function ki(t,l){if(t&1&&(k(0),i(1,"p",62),m(2,xi,2,1,"ng-container",7)(3,yi,2,1,"ng-container",7),r(4),o(),C()),t&2){let e=l.$implicit,a=c().$implicit;s(2),_("ngIf",e.itemQuantity>1),s(),_("ngIf",a.optionId!=e.optionId),s(),v("",e.itemName," ")}}function Ci(t,l){if(t&1&&(k(0),i(1,"p")(2,"span",36)(3,"strong"),r(4),o()(),m(5,ki,5,3,"ng-container",47),o(),C()),t&2){let e=l.$implicit;s(4),g(e.optionHeaderLabel),s(),_("ngForOf",e.selection)}}function wi(t,l){if(t&1&&(k(0),m(1,Ci,6,2,"ng-container",47),C()),t&2){let e=c().$implicit;s(),_("ngForOf",e.item_extra)}}function Si(t,l){if(t&1&&(k(0),p(1,"i",63),r(2),C()),t&2){let e=c().$implicit;s(2),v(" ",e.product_comment,"")}}function Mi(t,l){if(t&1&&(i(0,"tr")(1,"td"),r(2),o(),i(3,"td"),r(4),i(5,"div",60),m(6,wi,2,1,"ng-container",7),o(),m(7,Si,3,1,"ng-container",7),o(),i(8,"td",61),r(9),o()()),t&2){let e=l.$implicit;s(2),v("",e.qty,"x"),s(2),v(" ",e.item_name," "),s(2),_("ngIf",e.item_extra!=""),s(),_("ngIf",e.product_comment!=""),s(2),v("\xA3",e.item_total_price,"")}}function Ei(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),g(e.product_qnty)}}function Ii(t,l){t&1&&r(0,"1")}function Oi(t,l){if(t&1&&(k(0),i(1,"div",66)(2,"div",67)(3,"div",68)(4,"div",69),m(5,Ei,2,1,"ng-container",70)(6,Ii,1,0,"ng-template",null,3,I),r(8,"x "),o(),i(9,"strong",71),r(10),o()(),i(11,"div",72)(12,"strong",73)(13,"del"),r(14),S(15,"number"),o()()()()(),C()),t&2){let e=l.$implicit,a=w(7);s(5),_("ngIf",e.product_qnty!=null&&e.product_qnty>0)("ngIfElse",a),s(5),v(" ",e.product_name,""),s(4),v("\xA3 ",M(15,4,e.sell_price,"1.2-2"),"")}}function Pi(t,l){if(t&1&&(i(0,"div",64)(1,"div",65),m(2,Oi,16,7,"ng-container",47),o()()),t&2){let e=c(5);s(2),_("ngForOf",e.outputbody.freedish_items)}}function Ti(t,l){if(t&1&&(i(0,"span"),r(1),o()),t&2){let e=c(6);s(),v("",e.outputbody.discount_details.code," Applied")}}function Di(t,l){if(t&1&&(i(0,"div",56)(1,"span"),r(2,"Discount"),o(),m(3,Ti,2,1,"span",7),r(4),S(5,"number"),o()),t&2){let e=c(5);s(3),_("ngIf",e.outputbody.discount_details.discounttype!="default"),s(),v(" \xA3",M(5,2,e.outputbody.discount_amount,"1.2-2")," ")}}function Bi(t,l){if(t&1&&(k(0),i(1,"div",56)(2,"span"),r(3,"Baggage Charge"),o(),r(4),S(5,"number"),o(),C()),t&2){let e=c(5);s(4),v(" \xA3",M(5,1,e.outputbody.service_charge.baggage_charge_amount,"1.2-2")," ")}}function Vi(t,l){if(t&1&&(i(0,"div",64)(1,"div",74)(2,"div",75)(3,"div",76),p(4,"i",77),o(),i(5,"div",78)(6,"p"),r(7,"You Saved On Freebies "),o()()(),i(8,"div",79),r(9),S(10,"number"),o()()()),t&2){let e=c(5);s(9),v(" \xA3",M(10,1,e.freedishSaveAmount,"1.2-2")," ")}}function Ai(t,l){t&1&&p(0,"div",80)}function Fi(t,l){if(t&1&&(i(0,"div",33)(1,"div",52)(2,"h3")(3,"strong"),r(4,"Order Details"),o()()(),i(5,"div",53)(6,"table",54)(7,"tbody"),m(8,Mi,10,5,"tr",47),o()(),m(9,Pi,3,1,"div",55),o(),p(10,"hr"),i(11,"div",56)(12,"span"),r(13,"Sub Total"),o(),r(14),S(15,"number"),o(),m(16,Di,6,5,"div",57),i(17,"div",56)(18,"span"),r(19,"Delivery Fee"),o(),r(20),S(21,"number"),o(),i(22,"div",56)(23,"span"),r(24,"Service Charge"),o(),r(25),S(26,"number"),o(),m(27,Bi,6,4,"ng-container",7),i(28,"div",58)(29,"strong"),r(30,"TOTAL"),o(),i(31,"strong"),r(32),S(33,"number"),o()(),m(34,Vi,11,4,"div",55)(35,Ai,1,0,"div",59),o()),t&2){let e=c(4);s(8),_("ngForOf",e.outputbody.items),s(),_("ngIf",e.outputbody.freedish_items!=null&&e.outputbody.freedish_items.length>0),s(5),v(" \xA3",M(15,10,e.outputbody.amount,"1.2-2")," "),s(2),_("ngIf",e.outputbody.discount_amount!=0),s(4),v(" \xA3",M(21,13,e.outputbody.delivery_charge,"1.2-2")," "),s(5),v(" \xA3",M(26,16,e.outputbody.service_charge.service_charge_amount,"1.2-2")," "),s(2),_("ngIf",e.outputbody.service_charge!=null&&e.outputbody.service_charge.baggage_charge_amount!=null&&e.outputbody.service_charge.baggage_charge_amount>0),s(5),v("\xA3",M(33,19,e.outputbody.total,"1.2-2"),""),s(2),_("ngIf",e.outputbody.freedish_items!=null&&e.outputbody.freedish_items.length>0),s(),_("ngIf",e.showReorderBtn)}}function Ni(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c(2).$implicit;s(),g(e.reply_by)}}function Li(t,l){if(t&1&&r(0),t&2){let e=c(2).$implicit;g(e.reply_user_type)}}function Ri(t,l){if(t&1&&(k(0),i(1,"div",87)(2,"div",88)(3,"span",89),r(4),m(5,Ni,2,1,"ng-container",70)(6,Li,1,1,"ng-template",null,5,I),o(),r(8),o()(),C()),t&2){let e=w(7),a=c().$implicit;s(4),v("",a.reply_time," | "),s(),_("ngIf",a.reply_user_type=="Customer")("ngIfElse",e),s(3),v(" ",a.reply_msg," ")}}function ji(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c(2).$implicit;s(),g(e.reply_by)}}function qi(t,l){if(t&1&&r(0),t&2){let e=c(2).$implicit;g(e.reply_user_type)}}function zi(t,l){if(t&1&&(i(0,"div",90)(1,"div",88)(2,"span",89),r(3),m(4,ji,2,1,"ng-container",70)(5,qi,1,1,"ng-template",null,6,I),o(),r(7),o()()),t&2){let e=w(6),a=c().$implicit;s(3),v("",a.reply_time," | "),s(),_("ngIf",a.reply_user_type=="Customer")("ngIfElse",e),s(3),v(" ",a.reply_msg," ")}}function Wi(t,l){if(t&1&&(k(0),m(1,Ri,9,4,"ng-container",70)(2,zi,8,4,"ng-template",null,4,I),C()),t&2){let e=l.$implicit,a=w(3);s(),_("ngIf",e.reply_user_type=="Customer")("ngIfElse",a)}}function Hi(t,l){if(t&1){let e=E();i(0,"div",91)(1,"input",92),f("click",function(){u(e);let n=c().$implicit,d=c(5);return h(d.openCloseSendReplyModal("open",n.ticket_name,n.ticket_id))}),o()()}if(t&2){let e=c().index;s(),W("name","send_reply",e,"")}}function $i(t,l){if(t&1&&(i(0,"div",83)(1,"div",84),r(2),o(),i(3,"div",85),m(4,Wi,4,2,"ng-container",47)(5,Hi,2,2,"div",86),o()()),t&2){let e=l.$implicit;s(2),v(" ",e.ticket_name," "),s(2),_("ngForOf",e.ticket_msg),s(),_("ngIf",e.ticket_status!="solved"&&e.ticket_status!="rejected")}}function Gi(t,l){if(t&1&&(i(0,"div",33)(1,"h4"),r(2,"Ticket List"),o(),i(3,"div",81),m(4,$i,6,3,"div",82),o()()),t&2){let e=c(4);s(4),_("ngForOf",e.ticket_details)}}function Ui(t,l){t&1&&(i(0,"div",33),p(1,"div",93),o())}function Qi(t,l){if(t&1&&(i(0,"div",36)(1,"div",37)(2,"div",38)(3,"div",33)(4,"div",39)(5,"div",40)(6,"p"),r(7,"Payment Status"),i(8,"span"),r(9),o()()(),i(10,"div",40)(11,"p"),r(12,"Payment Type"),i(13,"span"),r(14),o()()(),i(15,"div",40)(16,"p"),r(17," Allergy Info "),i(18,"span"),m(19,ci,1,0,"ng-container",41)(20,_i,1,1,"ng-template",null,1,I)(22,mi,1,0,"ng-template",null,2,I),o()()(),i(24,"div",42)(25,"p"),r(26,"Service Type"),i(27,"span"),r(28),o()()()(),p(29,"hr"),i(30,"div",43)(31,"div",40)(32,"p")(33,"strong"),r(34,"Address"),o(),i(35,"span"),r(36),p(37,"br"),r(38),o()()(),i(39,"div",42)(40,"p")(41,"strong"),r(42,"Order received on:"),o(),i(43,"span"),r(44),o()()()()(),i(45,"div",44)(46,"h4",18),r(47,"Order Tracking"),o(),i(48,"div",45)(49,"div",46),m(50,bi,4,3,"ng-container",47),o()()()(),i(51,"div",48),m(52,Fi,36,22,"div",49)(53,Gi,5,1,"div",49)(54,Ui,2,0,"div",49),o()()()),t&2){let e=w(21
1),a=w(23),n=c(3);s(9),g(n.outputbody.payment_status),s(5),g(n.outputbody.payment_type),s(5),_("ngIf",n.outputbody.allergy_info!="")("ngIfThen",e)("ngIfElse",a),s(9),g(n.outputbody.service_type),s(8),Ye("",n.outputbody.address," ",n.outputbody.address2," ",n.outputbody.city,""),s(2),de("",n.outputbody.zipcode,"",n.outputbody.delivery_mobile,""),s(6),g(n.outputbody.order_date),s(6),_("ngForOf",n.outputbody.order_track),s(2),_("ngIf",n.show_data),s(),_("ngIf",n.ticket_details.length<0),s(),_("ngIf",n.ticket_details.length<0)}}function Yi(t,l){if(t&1&&(i(0,"div",32)(1,"div",33),p(2,"div",34),o(),m(3,Qi,55,16,"div",35),o()),t&2){let e=c(2);s(3),_("ngIf",e.show_data)}}function Ki(t,l){if(t&1&&(i(0,"main")(1,"div",8)(2,"div",9)(3,"h2",10),r(4),o(),m(5,li,8,0,"span",11),i(6,"div",12)(7,"div",13)(8,"div",14),p(9,"img",15),o()(),i(10,"div",16)(11,"div",17)(12,"p",18)(13,"a",19)(14,"h3"),r(15),o()()(),i(16,"p"),r(17),o(),p(18,"div",20),o()(),i(19,"div",21)(20,"div",22)(21,"p")(22,"strong"),r(23,"Order ID"),o(),r(24),o(),i(25,"p")(26,"strong"),r(27,"Status"),o(),r(28),o()()()()(),m(29,Yi,4,1,"div",23),o()()),t&2){let e=c();s(4),g(e.header_msg),s(),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.order_status_key!=null&&e.outputbody.order_status_key=="order_placed"),s(4),N("src",e.outputbody.business_logo,P),s(4),N("href",e.base_url,P),s(2),v(" ",e.outputbody.business_name,""),s(2),g(e.outputbody.business_address),s(7),v(": ",e.outputbody.order_id,""),s(4),v(" :",e.outputbody.order_status,""),s(),_("ngIf",e.show_data)}}function Ji(t,l){if(t&1){let e=E();i(0,"div",94)(1,"h4",95),r(2),o(),i(3,"button",96),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),i(4,"span",97),r(5,"\xD7"),o()()(),i(6,"div",98),r(7),o(),i(8,"div",99)(9,"button",100),f("click",function(){let n=u(e).$implicit;return h(n.close("Close click"))}),r(10,"Close"),o(),i(11,"button",101),f("click",function(){u(e);let n=c();return h(n.hideModal())}),r(12,"OK"),o()()}if(t&2){let e=c();s(2),g(e.modalHeader),s(5),v(" ",e.modalContent,". ")}}function Xi(t,l){if(t&1){let e=E();k(0),i(1,"div",102)(2,"div",103)(3,"div",104)(4,"div",105)(5,"div",94)(6,"h4",95),r(7),o(),i(8,"button",106),f("click",function(){u(e);let n=c();return h(n.openCloseSendReplyModal())}),r(9,"\xD7"),o()(),i(10,"div",98)(11,"textarea",107),B("ngModelChange",function(n){u(e);let d=c();return D(d.replyModalMsg,n)||(d.replyModalMsg=n),h(n)}),o()(),i(12,"div",99)(13,"button",108),f("click",function(){u(e);let n=c();return h(n.sendReply())}),r(14,"OK"),o()()()()()(),C()}if(t&2){let e=c();s(2),$e("display",e.hideShowSendReplyModal?"block":"none"),s(5),g(e.replyModalHead),s(4),T("ngModel",e.replyModalMsg)}}var Ct=(()=>{class t{constructor(e,a,n,d,y,O,G){if(this.rts=a,this.restProvider=n,this.authService=d,this.storage=y,this.customEvent=O,this.modalService=G,this.okey="",this.ticket_details=[],this.hideShowModal=!1,this.hideShowSendReplyModal=!1,this.replyModalHead="",this.replyModalEncTicketId="",this.replyModalMsg="",this.showNewTicketBtn=!0,this.modalHeader="",this.modalContent="",this.redirectLink="",this.isRedirect=!1,this.order={order_key:"",sessiontoken:"",type:0},this.showdata=!1,this.showReorderBtn=!1,this.header_msg="",this.show_data=!1,this.incompleteparam="",this.base_url=F.baseUrl,this.freedishSaveAmount=0,this.showOrderTrackPendingFlag="no",this.order.order_key=e.snapshot.params.okey,this.okey=e.snapshot.params.okey,this.order.sessiontoken=e.snapshot.params.seskey,this.order.type=Number(e.snapshot.params.type),this.order.type==1&&(this.order.sessiontoken=this.authService.getSecureToken(),this.order.sessiontoken==null)){let b="on";this.storage.setSessionstorage("loginrefresh","reqired")}}ngOnInit(){this.loaddata(),this.get_ticket_list()}loaddata(){this.restProvider.postdataapi(this.order,"order/order_details").subscribe(e=>{this.showdata=!0,e.responsecode=="200"?(e.details!=null&&e.details!=null&&e.details.business_cover!=null&&e.details.business_cover!=null&&e.details.business_cover!="",e.details.show_reorder_btn!==""&&e.details.show_reorder_btn=="yes"&&(this.showReorderBtn=!0),this.outputbody=e.details,this.outputbody.freedish_items!=null&&this.outputbody.freedish_items.forEac
1h(a=>{this.freedishSaveAmount+=Number(a.sell_price)*Number(a.product_qnty)}),this.outputbody.items!=null&&this.outputbody.items.forEach(a=>{a.item_extra!=""&&(this.showReorderBtn=!1)}),this.outputbody.order_track!=null&&(this.showOrderTrackPendingFlag="yes",this.outputbody.order_track.forEach(a=>{a.level=="Order placed"&&a.status&&(this.showOrderTrackPendingFlag="no")})),this.show_data=!0,this.header_msg=this.outputbody.order_status):this.header_msg=e.status},e=>{})}get_ticket_list(){let e={okey:this.okey};this.restProvider.postdataapi(e,"order/get_ticket_list").subscribe(a=>{a.responsecode=="200"&&(this.ticket_details=a.ticket_list,this.showNewTicketBtn=a.show_new_ticket_btn)},a=>{})}openCloseSendReplyModal(e="close",a="",n=""){e=="open"?(n==""?this.replyModalHead="Write us":this.replyModalHead=a,this.hideShowSendReplyModal=!0,this.replyModalEncTicketId=n):(this.hideShowSendReplyModal=!1,this.replyModalHead="",this.replyModalEncTicketId="",this.replyModalMsg="")}sendReply(){let e={okey:this.okey,replyTicketId:this.replyModalEncTicketId,replyTicketMsg:this.replyModalMsg,serviceType:"order"};this.restProvider.postdataapi(e,"order/send_reply").subscribe(a=>{this.showdata=!0,a.responsecode=="200"&&(this.openCloseSendReplyModal(),this.get_ticket_list())},a=>{})}reorder(e){this.showdata=!1;let a={okey:e,sessiontoken:this.authService.getSecureToken()};this.restProvider.postdataapi(a,"business/reorder").subscribe(n=>{if(this.showdata=!0,n.responsecode=="200"||n.responsecode=="202")if(n.reorder_order_id!=null&&n.reorder_order_id!=null&&Number(n.reorder_order_id)>0&&this.storage.setLocalstorage("reorder_order_id",n.reorder_order_id),this.storage.setLocalstorage("isDelMode",n.order_type),this.storage.setLocalstorage("minorderamnt",n.delivery_minorder_price),this.storage.setLocalstorage("zone_delivery_charg",n.delivery_price),this.storage.setLocalstorage("delivery_charge_waiver",n.delivery_charge_waiver),this.storage.setLocalstorage("cartlist",n.cartitems),this.storage.setLocalstorage("business_id",n.business_id),this.storage.setLocalstorage("business_timestamp",n.today_token),this.redirectLink=this.base_url+"business/"+n.bs_slug,this.isRedirect=!0,n.responsecode=="202"||n.responsecode==202)n.inactive_pro_details.length>0||n.price_cng_pro_details.length>0?(this.modalContent="Sorry, there has been some changes to the menu recently. ",n.inactive_pro_details.length>0&&n.price_cng_pro_details.length==0?(this.modalContent+="Out of stock items: ",this.modalContent+=n.inactive_pro_details.join(", ")):n.inactive_pro_details.length==0&&n.price_cng_pro_details.length>0?(this.modalContent+="Price changed items: ",this.modalContent+=n.price_cng_pro_details.join(", ")):(this.modalContent+="<strong>Out of stock items: ",this.modalContent+=n.inactive_pro_details.join(", "),this.modalContent+="<strong>Price changed items: ",this.modalContent+=n.price_cng_pro_details.join(", ")),this.modalContent+=" View the menu for further details. In the mean time you may check the cart."):this.modalContent=n.status,this.modalService.open(this.reorderModal);else{let d=this.base_url+"business/"+n.bs_slug;d!=null&&this.base_url&&(window.location.href=d)}else n.hasOwnProperty("cartitems")&&(this.isRedirect=!0,n.cartitems.length==0&&(this.redirectLink=this.base_url+"business/"+n.bs_slug)),this.modalService.open(this.reorderModal),this.modalHeader="Alert !!!",this.modalContent=n.status},n=>{})}showModal(){this.modalHeader="Alert !!!",this.hideShowModal=!0}hideModal(){this.hideShowModal=!1,this.isRedirect&&(window.location.href=this.redirectLink)}static{this.\u0275fac=function(a){return new(a||t)(x(ce),x(Z),x(j),x(R),x(H),x(te),x(re))}}static{this.\u0275cmp=A({type:t,selectors:[["app-my-orders-details"]],viewQuery:function(a,n){if(a&1&&K(di,5),a&2){let d;J(d=X())&&(n.reorderModal=d.first)}},standalone:!1,decls:6,vars:2,consts:[["reorderModal",""],["cont",""],["noc",""],["singlefreeqty",""],["msgAdmin",""],["adminName1",""],["adminName2",""],[4,"ngIf"],[1,"container","profile","container","total-listing-section"],[1,"my-order-details"],[1,"mb-3","d-flex","justify-content-center"],["class","success",4,"ngIf"],[1,"row","box","mb-3"],[1,"col-lg-1"],[1,"img"],[3,"src"],[1,"col-lg-7"],[1,"text"],[1,"btn1"],[3,"href"],[1,"star"],[1,"col-lg-4"],[1,"detail","text-right"],["class","contents",4,"ngIf"],[1,"success"],[1,"animation-ctn"],[1,"icon","icon--order-success","svg"],["xmlns","http://www.w3.org/2000/svg","width","154px","height","154px"],["fill","none","stroke","#22AE73","stroke-width","2"],["cx","77","cy","77","r","72",2,"stroke-dasharray","480px, 480px","stroke-dashoffset","960px"],["id","colored","fill","#22AE73","cx","77","cy","77","r","72",2,"stroke-dasharray","480px, 480px","stroke-dashoffset","960px"],["stroke","#fff","stroke-width","10","points","43.5,77.8 63.7,97.9 112.2,49.4 ",1,"st0",2,"stroke-dasharray","100px, 100px","stroke-dashoffset","200px"],[1,"contents"],[1,"content"],[1,"item","product-name-item"],["class","",4,"ngIf"],[1,""],[1,"row","box"],[1,"col-lg-6","padding-0"],[1,"item","order-item-details"],[1,"detail","mr-3"],["class","",4,"ngIf","ngIfThe
1n","ngIfElse"],[1,"detail"],[1,"item"],[1,"content","mt-3"],[1,"hh-grayBox","pb20"],[1,"row","justify-content-between","all-order-tracking-device"],[4,"ngFor","ngForOf"],[1,"col-lg-6"],["class","content",4,"ngIf"],[1,"order-tracking",3,"ngClass"],[1,"is-complete"],[1,"headerConBtn"],[1,"summary",2,"padding-right","8px"],[1,"order-details-section"],["class","mainFreedish cartPage orderSuccspage orderDetailsFreeDish","id","mainFreedish",4,"ngIf"],[1,"totals","d-flex","justify-content-between",2,"padding","0 8px"],["class","totals d-flex justify-content-between","style","padding: 0 8px;",4,"ngIf"],[1,"totals","last","d-flex","justify-content-between"],["class","re-order d-flex justify-content-end mt-3",4,"ngIf"],[1,"option-main-container"],[1,"gap"],[1,"pl-3","bullet"],[1,"las","la-comment"],["id","mainFreedish",1,"mainFreedish","cartPage","orderSuccspage","orderDetailsFreeDish"],[1,"freeDisUnlock"],[1,"freeDishItem","row","justify-content-between"],[1,"freeProd","d-flex","justify-content-between","mb-1"],[1,"freedish-details-name","d-flex"],[1,"count"],[4,"ngIf","ngIfElse"],[1,"freedish-green"],[1,"freeProdValue"],[1,"text-danger","freedish-green"],[1,"freeDishMsg","d-flex","justify-content-between",2,"padding","0 8px"],[1,"freeDishLeftCart"],[1,"icon"],[1,"las","la-check"],[1,"freeDishText"],[1,"FreeDishAmount"],[1,"re-order","d-flex","justify-content-end","mt-3"],[1,"ticket-details"],["class","step",4,"ngFor","ngForOf"],[1,"step"],[1,"ticket-name"],[1,"reply"],["class","type-msg",4,"ngIf"],[1,"right"],[1,"message"],[1,"time"],[1,"left"],[1,"type-msg"],["type","button","value","Reply",3,"click","name"],[1,"re-order"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-prime",3,"click"],[1,"container"],["id","errModal",1,"error_modal"],[1,"modal-dialog"],[1,"modal-content"],["type","button","data-dismiss","modal",1,"close",3,"click"],["name","replyModalMsg","id","replyModalMsg","cols","30","rows","10",3,"ngModelChange","ngModel"],["type","button","data-dismiss","modal",1,"btn","btn-danger",3,"click"]],template:function(a,n){a&1&&(p(0,"app-header"),m(1,Ki,30,9,"main",7)(2,Ji,13,2,"ng-template",null,0,I)(4,Xi,15,4,"ng-container",7),p(5,"app-footer")),a&2&&(s(),_("ngIf",n.showdata),s(3),_("ngIf",n.hideShowSendReplyModal))},dependencies:[we,Q,L,q,z,oe,ae,me,le],styles:['.detail[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}.detail[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right;text-align:right}.order-details-section[_ngcontent-%COMP%]{width:100%}.order-details-section[_ngcontent-%COMP%]   td.gap[_ngcontent-%COMP%]{text-align:right}.freedish-green[_ngcontent-%COMP%]{color:var(--green);margin-left:10px}.totals[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .totals[_ngcontent-%COMP%]{font-size:.9rem}.hh-grayBox[_ngcontent-%COMP%]{background-color:#f8f8f8;margin-bottom:20px;padding:10px;margin-top:20px}.pt45[_ngcontent-%COMP%]{padding-top:45px}.order-tracking[_ngcontent-%COMP%]{text-align:center;width:25%;position:relative;display:block}.order-tracking[_ngcontent-%COMP%]   .is-complete[_ngcontent-%COMP%]{display:block;position:relative;border-radius:50%;height:30px;width:30px;border:0px solid #AFAFAF;background-color:#f7be16;margin:0 auto;transition:background .25s linear;-webkit-transition:background .25s linear;z-index:2}.order-tracking[_ngcontent-%COMP%]   .is-complete[_ngcontent-%COMP%]:after{display:block;position:absolute;content:"";height:14px;width:7px;top:-2px;bottom:0;left:5px;margin:auto 0;border:0px solid #AFAFAF;border-width:0px 2px 2px 0;transform:rotate(45deg);opacity:0}
1.order-tracking.completed[_ngcontent-%COMP%]   .is-complete[_ngcontent-%COMP%]{border-color:#27aa80;border-width:0px;background-color:#27aa80}.order-tracking.completed[_ngcontent-%COMP%]   .is-complete[_ngcontent-%COMP%]:after{border-color:#fff;border-width:0px 3px 3px 0;width:7px;left:11px;opacity:1}.order-tracking[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#a4a4a4;font-size:16px;margin-top:8px;margin-bottom:0;line-height:20px}.order-tracking[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.8rem}.order-tracking[_ngcontent-%COMP%]:before{content:"";display:block;height:3px;width:calc(100% - 40px);background-color:#f7be16;top:13px;position:absolute;left:calc(-50% + 20px);z-index:0}.order-tracking[_ngcontent-%COMP%]:first-child:before{display:none}.order-tracking.completed[_ngcontent-%COMP%]:before{background-color:#137254}span.is-complete.none[_ngcontent-%COMP%]:after{opacity:0}.order-tracking.completed[_ngcontent-%COMP%]   .is-complete.none[_ngcontent-%COMP%]:after{opacity:0}.order-tracking1[_ngcontent-%COMP%]{color:var(--color-dark);font-size:1.5rem}.fldarea.checkbox[_ngcontent-%COMP%]{text-transform:uppercase}.detail.text-right[_ngcontent-%COMP%]{display:block;text-align:right}.animation-ctn[_ngcontent-%COMP%]{text-align:center;margin-bottom:2em}@-webkit-keyframes _ngcontent-%COMP%_checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:200px}}@-ms-keyframes checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:200px}}@keyframes _ngcontent-%COMP%_checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0px}}@-webkit-keyframes _ngcontent-%COMP%_checkmark-circle{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}@-ms-keyframes checkmark-circle{0%{stroke-dashoffset:240px}to{stroke-dashoffset:480px}}@keyframes _ngcontent-%COMP%_checkmark-circle{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}@keyframes _ngcontent-%COMP%_colored-circle{0%{opacity:0}to{opacity:100}}.inlinesvg[_ngcontent-%COMP%]   .svg[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:inline}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   polyline[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_checkmark .25s ease-in-out .7s backwards;animation:_ngcontent-%COMP%_checkmark .25s ease-in-out .7s backwards}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_checkmark-circle .6s ease-in-out backwards;animation:_ngcontent-%COMP%_checkmark-circle .6s ease-in-out backwards}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   circle#colored[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_colored-circle .6s ease-in-out .7s backwards;animation:_ngcontent-%COMP%_colored-circle .6s ease-in-out .7s backwards}.order-tracking.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--color-c1)}.order-tracking.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--color-dark);font-size:.8rem;line-height:10px}td[_ngcontent-%COMP%]{vertical-align:top}.option-main-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-left:8px!important}']})}}return t})();function Zi(t,l){if(t&1&&(i(0,"div",10)(1,"div",2)(2,"div",11),p(3,"img",12),o(),i(4,"div",13)(5,"div",14)(6,"p")(7,"strong")(8,"a",15),r(9),o()()(),i(10,"p"),r(11),o(),i(12,"p"),r(13),o(),i(14,"p"),r(15),o()()(),i(16,"div",16)(17,"div",17)(18,"a",18),r(19,"View Detail"),o(),i(20,"a",19),r(21,"Modify Booking"),o()()()()()),t&2){let e=l.$implicit,a=c(2);s(3),W("src","",a.base_url,"assets/images/top-recomended/logo.png",P),s(5),W("href","booking-complete?v=",e.bkey,"",P),s(),g(e.business_name),s(2),g(e.booking_id),s(2),g(e.booking_date),s(2),v("\xA3",e.total,""),s(3),W("href","account/my-booking-details/",e.bkey,"",P),s(2),W("href","account/booking-revision/",e.bkey,"",P)}}function en(t,l){t&1&&p(0,"img",20)}function tn(t,l){if(t&1){let e=E();i(0,"a",21),f("click",function(){u(e);let n=c(2);return h(n.loadMoreBooking())}),r(1,"Load More"),o()}}function nn(t,l){if(t&1&&(i(0,"div",4)(1,"h3"),r(2,"Previous Bookings"),o(),m(3,Zi,22,12,"div",5),i(4,"div",6)(5,"div",7),m(6,en,1,0,"img",8)(7,tn,2,0,"a",9),o()()()),t&2){let e=c();s(3),_("ngForOf",e.apidata),s(3),_("ngIf",e.showd_minloader),s(),_("ngIf",!e.showd_minloader&&e.more_booking_status)}}
1function on(t,l){t&1&&(i(0,"div",22)(1,"h2"),r(2,"No data "),i(3,"strong"),r(4,"available"),o()()())}var wt=(()=>{class t{constructor(e,a){this.restProvider=e,this.authService=a,this.base_url=F.baseUrl,this.showdloader=!0,this.showd_minloader=!0,this.sessiontoken="",this.apidata=[],this.req_page=0,this.more_booking_status=!1,this.sessiontoken=this.authService.getSecureToken()}ngOnInit(){this.loaddata()}loadMoreBooking(){this.showd_minloader=!0,this.req_page+=1,this.loaddata()}loaddata(){let e={req_page:this.req_page,sessiontoken:this.sessiontoken};this.restProvider.postdataapi(e,"order/booking_list").subscribe(a=>{this.showdloader=!1,a.responsecode=="200"?(this.more_booking_status=a.more_booking_status,this.apidata=this.apidata.concat(a.list)):a.responsecode=="201"&&(this.apidata=[]),this.showd_minloader=!1,this.showdloader=!1})}static{this.\u0275fac=function(a){return new(a||t)(x(j),x(R))}}static{this.\u0275cmp=A({type:t,selectors:[["app-my-bookings"]],standalone:!1,decls:8,vars:2,consts:[["nodata",""],[1,"profile-page-details","container","tabContent"],[1,"row"],["class","tab-pane review-section","id","Bookings","role","tabpanel","aria-labelledby","Bookings-tab",4,"ngIf","ngIfElse"],["id","Bookings","role","tabpanel","aria-labelledby","Bookings-tab",1,"tab-pane","review-section"],["class","card",4,"ngFor","ngForOf"],[1,"row","mt-2","loadMoreBtn"],[1,"col-lg-9"],["src","assets/images/loader.gif","style","width:200px;display:table;margin:30px auto",4,"ngIf"],["class","btn btn-prime btn-full mb-5",3,"click",4,"ngIf"],[1,"card"],[1,"left-panel","col-lg-2"],["alt","",1,"w-100",3,"src"],[1,"middle-panel","col-lg-7"],[1,"text"],[1,"",3,"href"],[1,"right-panel","col-lg-3"],[1,"item-button"],[1,"btn","btn-block","btn-prime","mb-2","btn",3,"href"],[1,"btn","btn-block","btn-prime","btn",3,"href"],["src","assets/images/loader.gif",2,"width","200px","display","table","margin","30px auto"],[1,"btn","btn-prime","btn-full","mb-5",3,"click"],[1,"no-data-open","card"]],template:function(a,n){if(a&1&&(p(0,"app-header"),i(1,"section",1)(2,"div",2),p(3,"app-account-menu"),m(4,nn,8,3,"div",3)(5,on,5,0,"ng-template",null,0,I),o()(),p(7,"app-footer")),a&2){let d=w(6);s(4),_("ngIf",n.apidata.length>0)("ngIfElse",d)}},dependencies:[Q,L,q,z,se],styles:[".loadMoreBtn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]})}}return t})();function rn(t,l){t&1&&(k(0),p(1,"app-loader",10),C())}function sn(t,l){if(t&1&&(k(0),i(1,"h2"),r(2),o(),i(3,"p"),r(4,"Waiting for restaurant confirmation. Please check your email for booking confirmation & updates"),o(),i(5,"div",11)(6,"div",12)(7,"div",13),V(),i(8,"svg",14)(9,"g",15),p(10,"circle",16)(11,"circle",17)(12,"polyline",18),o()()()()(),C()),t&2){let e=c();s(2),g(e.header_msg)}}function dn(t,l){t&1&&(i(0,"p"),r(1," please check your email! Order confirmation & updates will be sent to you"),o())}function ln(t,l){if(t&1&&(i(0,"a",23),r(1,"Retry Payment"),o()),t&2){let e=c(2);W("href","",e.base_url,"order/checkout",P)}}function cn(t,l){t&1&&p(0,"span",24)}function _n(t,l){t&1&&p(0,"span",24)}function mn(t,l){if(t&1&&(i(0,"div",19)(1,"h3"),r(2),o(),m(3,dn,2,0,"p",6),i(4,"div",20),m(5,ln,2,2,"a",21),o(),m(6,cn,1,0,"span",22)(7,_n,1,0,"span",22),o()),t&2){let e=c();s(2),g(e.header_msg),s(),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.order_status_key!=null&&e.outputbody.order_status_key=="order_placed"),s(2),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.payment_status!=null&&e.outputbody.payment_type!=null&&e.outputbody.payment_status=="Pending"&&e.outputbody.payment_type!="Cash"&&e.incompleteparam!=null),s(),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.order_status_key!=null&&e.outputbody.order_status_key=="order_placed"),s(),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.order_status_key!=null&&e.outputbody.order_status_key=="order_accepted")}}function pn(t,l){if(t&1&&(i(0,"div",25)(1,"div",4)(2,"div",26)(3,"div",27),p(4,"img",28),o(),i(5,"div",29)(6,"h3")(7,"a",30),r(8),o()()(),i(9,"div",31)(10,"div",32)(11,"p")(12,"strong"),r(13,"ID"),o()(),i(14,"p"),r(15),o()(),i(16,"div",33)(17,"p")(18,"strong"),r(19,"Booking Status"),o()(),i(20,"p"),r(21),o()()()()()()),t&2){let e=c();s(4),N("src",e.outputbody.business_logo,P),s(3),N("href",e.base_url,P),s(),v(" ",e.outputbody.business_name,""),s(7),g(e.outputbody.booking_id),s(6),g(e.outputbody.booking_status_level)}}function gn(t,l){if(t&1&&(k(0),i(1,"td"),r(2),S(3,"number"),o(),C()),t&2){let e=c(2);s(2),v("\xA3",M(3,1,e.outputbody.total,"1.2"),"")}}function un(t,l){t&1&&(i(0,"td"),r(1,"Not Applicable"),o())}function hn(t,l){if(t&1&&(i(0,"div",43)(1,"div",36)(2,"table",37)(3,"thead")(4,"tr")(
15,"th"),r(6,"Payment Status"),o(),i(7,"th"),r(8,"Payment Mode"),o()()(),i(9,"tbody")(10,"tr")(11,"td"),r(12),S(13,"uppercase"),o(),i(14,"td"),r(15),S(16,"uppercase"),o()()()()()()),t&2){let e=c(2);s(12),g(ne(13,2,e.outputbody.payment_status)),s(3),g(ne(16,4,e.outputbody.payment_type))}}function vn(t,l){if(t&1&&(k(0),i(1,"div",52)(2,"div",53),r(3),S(4,"number"),o(),i(5,"div",53),r(6),S(7,"number"),o()(),C()),t&2){let e=c(4);s(3),v(" 1 Booking x \xA3",M(4,2,e.booking_price,"1.2")," "),s(3),v(" \xA3",M(7,5,e.booking_price,"1.2")," ")}}function fn(t,l){if(t&1&&(k(0),r(1),S(2,"number"),C()),t&2){let e=c(5);s(),de("",e.outputbody.guest," Guests x \xA3",M(2,2,e.every_person_price,"1.2"),"")}}function bn(t,l){if(t&1&&(r(0),S(1,"number")),t&2){let e=c(5);de("",e.outputbody.guest," Guest x \xA3",M(1,2,e.every_person_price,"1.2"),"")}}function xn(t,l){if(t&1&&(k(0),i(1,"div",52)(2,"div",53),m(3,fn,3,5,"ng-container",38)(4,bn,2,5,"ng-template",null,1,I),o(),i(6,"div",53),r(7),S(8,"number"),o()(),C()),t&2){let e=w(5),a=c(4);s(3),_("ngIf",a.outputbody.guest>1)("ngIfElse",e),s(4),v(" \xA3",M(8,3,a.every_person_price*a.outputbody.guest,"1.2")," ")}}function yn(t,l){if(t&1&&(k(0),r(1),S(2,"number"),C()),t&2){let e=c(5);s(),v(" (",M(2,1,e.outputbody.service_charge.service_charge,"1.2"),"%) ")}}function kn(t,l){if(t&1&&(r(0),S(1,"number")),t&2){let e=c(5);v(" (\xA3",M(1,1,e.outputbody.service_charge.service_charge,"1.2"),") ")}}function Cn(t,l){if(t&1&&(k(0),i(1,"div",52)(2,"div",53),r(3," Service Charge "),m(4,yn,3,4,"ng-container",38)(5,kn,2,4,"ng-template",null,2,I),o(),i(7,"div",53),r(8),S(9,"number"),o()(),C()),t&2){let e=w(6),a=c(4);s(4),_("ngIf",a.outputbody.service_charge.service_charge_type!=null&&a.outputbody.service_charge.service_charge_type=="percentage")("ngIfElse",e),s(4),v(" \xA3",M(9,3,a.total_service_charge_price,"1.2")," ")}}function wn(t,l){if(t&1&&(k(0),i(1,"div",54)(2,"div",53)(3,"strong"),r(4,"TOTAL"),o()(),i(5,"div",53)(6,"strong"),r(7),S(8,"number"),o()()(),C()),t&2){let e=c(4);s(7),v("\xA3",M(8,1,e.outputbody.total,"1.2"),"")}}function Sn(t,l){if(t&1&&(i(0,"div",45)(1,"div",46)(2,"div",47)(3,"div",48)(4,"h3",49),r(5,"Payment Details"),o()()(),i(6,"div",50)(7,"div",51),m(8,vn,8,8,"ng-container",6)(9,xn,9,6,"ng-container",6)(10,Cn,10,6,"ng-container",6)(11,wn,9,4,"ng-container",6),o()()()()),t&2){let e=c(3);s(8),_("ngIf",e.booking_price>0),s(),_("ngIf",e.every_person_price>0),s(),_("ngIf",e.total_service_charge_price>0),s(),_("ngIf",e.every_person_price+e.total_service_charge_price>0)}}function Mn(t,l){if(t&1&&(i(0,"div",43)(1,"div",36)(2,"table")(3,"thead")(4,"tr")(5,"th"),r(6,"Payment Status"),o(),i(7,"th"),r(8,"Payment Mode"),o()()(),i(9,"tbody")(10,"tr")(11,"td"),r(12),S(13,"uppercase"),o(),i(14,"td"),r(15),o()()()(),m(16,Sn,12,4,"div",44),o()()),t&2){let e=c(2);s(12),g(ne(13,3,e.outputbody.payment_status)),s(3),g(e.outputbody.payment_type),s(),_("ngIf",e.outputbody!=null&&e.outputbody!=null&&e.outputbody.total>0)}}function En(t,l){if(t&1&&(k(0),i(1,"div",57)(2,"div",58)(3,"strong"),r(4,"Date"),o(),i(5,"div"),r(6),S(7,"date"),o()(),i(8,"div",58)(9,"div"),r(10),S(11,"number"),o()()(),C()),t&2){let e=l.$implicit;s(6),g(M(7,2,e.created_at,"dd-MMM-yyyy")),s(4),v("\xA3",M(11,5,e.refund_amount,"1.2"),"")}}function In(t,l){if(t&1&&(i(0,"div",55)(1,"div",46)(2,"div",47)(3,"div",48)(4,"h3"),r(5," Refund Details "),o()(),m(6,En,12,8,"ng-container",56),i(7,"div",57)(8,"div",58)(9,"div")(10,"strong"),r(11,"Total"),o()()(),i(12,"div",58)(13,"div")(14,"strong"),r(15),S(16,"number"),o()()()()()()()),t&2){let e=c(2);s(6),_("ngForOf",e.outputbody.booking_refund),s(9),v("\xA3",M(16,2,e.outputbody.total-e.outputbody.refund_amount,"1.2"),"")}}function On(t,l){if(t&1&&(i(0,"div",34)(1,"div",35)(2,"div",36)(3,"table",37)(4,"thead")(5,"tr")(6,"th"),r(7,"Booking Date"),o(),i(8,"th"),r(9,"Booking Time"),o(),i(10,"th"),r(11,"No. of guest(s)"),o()()(),i(12,"tbody")(13,"tr")(14,"td"),r(15),o(),i(16,"td"),r(17),o(),i(18,"td"),r(19),o()()()(),i(20,"table",37)(21,"thead")(22,"tr")(23,"th"),r(24,"Name"),o(),i(25,"th"),r(26,"Email"),o(),i(27,"th"),r(28,"Postcode"),o()()(),i(29,"tbody")(30,"tr")(31,"td"),r(32),o(),i(33,"td"),r(34),o(),i(35,"td"),r(36),o()()()(),i(37,"table",37)(38,"thead")(39,"tr")(40,"th"),r(41,"Me
1ssage"),o(),i(42,"th"),r(43,"Occasion"),o(),i(44,"th"),r(45,"Booking Price"),o()()(),i(46,"tbody")(47,"tr")(48,"td"),r(49),o(),i(50,"td"),r(51),o(),m(52,gn,4,4,"ng-container",38)(53,un,2,0,"ng-template",null,0,I),o()()()()(),m(55,hn,17,6,"div",39)(56,Mn,17,5,"div",39)(57,In,17,5,"div",40),i(58,"div",41)(59,"a",42),r(60,"Modify Booking"),o()()()),t&2){let e=w(54),a=c();s(),_("ngClass",a.outputbody.total>0?"col-lg-6":"col-lg-12"),s(14),g(a.outputbody.date),s(2),g(a.outputbody.time),s(2),g(a.outputbody.guest),s(13),g(a.outputbody.customer.customer_name),s(2),g(a.outputbody.customer.customer_email),s(2),g(a.outputbody.customer.customer_postcode),s(13),g(a.outputbody.message),s(2),g(a.outputbody.occasion),s(),_("ngIf",a.outputbody!=null&&a.outputbody!=null&&a.outputbody.payment_type!="cod"&&a.outputbody.total>0)("ngIfElse",e),s(3),_("ngIf",a.payment_method!=null&&a.payment_method!=null&&a.payment_method!="Cash"&&a.payment_method!="cash"&&a.payment_method!="CASH"),s(),_("ngIf",a.outputbody!=null&&a.outputbody!=null&&a.outputbody.total>0),s(),_("ngIf",a.outputbody!=null&&a.outputbody!=null&&a.outputbody.booking_refund!=null&&a.outputbody.booking_refund!=null&&a.outputbody.booking_refund.length>0),s(2),W("href","account/booking-revision/",a.booking.booking_key,"",P)}}var St=(()=>{class t{constructor(e,a,n,d,y,O){this.router=a,this.CustomEventService=n,this.restProvider=d,this.authService=y,this.localSt=O,this.base_url=F.baseUrl,this.payment_url=F.payment_url,this.total_service_charge_price=0,this.booking={booking_key:"",sessiontoken:""},this.showdata=!1,this.header_msg="",this.show_data=!1,this.incompleteparam="",this.booking_price=0,this.every_person_price=0,this.payment_method="Cash",this.booking.booking_key=e.snapshot.params.bkey,this.booking.sessiontoken=this.authService.getSecureToken()}ngOnInit(){this.booking.sessiontoken!==null&&this.booking.sessiontoken!==""?this.loaddata():(this.router.navigate(["/not-found"]),this.CustomEventService.opencommonpopup("Not Found","Booking details not found.","normal"))}loaddata(){this.restProvider.postdataapi(this.booking,"order/booking_details").subscribe(e=>{this.showdata=!0,e.responsecode=="200"?(this.outputbody=e.details,this.show_data=!0,e.details.booking_payment_breakup!=null&&e.details.booking_payment_breakup!=null&&(this.booking_price=e.details.booking_payment_breakup.booking.every_booking_price,this.every_person_price=e.details.booking_payment_breakup.person.every_person_price),e.details.service_charge.service_charge_amount!=null&&e.details.service_charge.service_charge_amount!=null&&Number(e.details.service_charge.service_charge_amount)&&(this.total_service_charge_price=Number(e.details.service_charge.service_charge_amount)),console.log(this.total_service_charge_price),e.details.payment_type.toLowerCase()=="paypal"?this.payment_method="PayPal":e.details.payment_type.toLowerCase()=="cod"?this.payment_method="Cash":this.payment_method="Card",this.outputbody!=null&&this.outputbody!=null&&this.outputbody.booking_status=="awaiting_for_response"?this.header_msg="Booking request is received":this.outputbody!=null&&this.outputbody!=null&&this.outputbody.booking_status=="booking_accepted"?this.header_msg="Booking is confirmed":this.outputbody!=null&&this.outputbody!=null&&this.outputbody.booking_status=="booking_declined"?this.header_msg="Booking request is declined":this.header_msg="Opps !! Your Booking is Incomplete"):this.header_msg=e.status},e=>{this.showdata=!0})}retryPayment(){window.location.href=this.payment_url+"pay?key="+this.outputbody.bkey+"_booking&ptype="+this.outputbody.payment_type}static{this.\u0275fac=function(a){return new(a||t)(x(ce),x(Z),x(te),x(j),x(R),x(H))}}static{this.\u0275cmp=A({type:t,selectors:[["app-my-booking-details"]],standalone:!1,decls:10,vars:5,consts:[["payment_not_applicable",""],["paycalguest1",""],["fixedServiceCharge",""],[1,"Successfull-page","total-listing-section"],[1,"container"],[1,"row","d-flex","text-center"],[4,"ngIf"],["class","order-sucess-msg col-lg-12",4,"ngIf"],["class","order-img-details",4,"ngIf"],["class","row mt-3",4,"ngIf"],["loadername","listing-details-booking-complete"],[1,"test"],[1,"animation-ctn"],[1,"icon","icon--order-success","svg"],["xmlns","http://www.w3.org/2000/svg","width","154px","height","154px"],["fill","none","stroke","#22AE73","stroke-width","2"],["cx","77","cy","77","r","72",2,"stroke-dasharray","480px, 480px","stroke-dashoffset","960px"],["id","colored","fill","#22AE73","cx","77","cy","77","r","72",2,"stroke-dasharray","480px, 480px","stroke-dashoffset","960px"],["stroke","#fff","stroke-width","10","points","43.5,77.8 63.7,97.9 112.2,49.4 ",1,"st0",2,"stroke-dasharray","100px, 100px","stroke-dashoffset","200px"],[1,"order-sucess-msg","col-lg-12"],[1,"d-flex","align-items","center","justify-content-center","mt-3"],["class","btn btn-prime mb-3",3,"href",4,"ngIf"],["class","success",4,"ngIf"],[1,"btn","btn-prime","mb-3",3,"href"],[1,"success"],[1,"order-img-details"],[1,"row"],[1,"col-lg-2"],["alt","",1,"order-complete",3,"src"],[1,"col-lg-7"],[3,"href"],[1,"col-lg-3"],[1,"order-id"],[1,"order-id","detail","text-right"],[1,"row","mt-3"],[1,"",3,"ngClass"],[1,"box"],[1,"table-responsive"],[4,"ngIf","ngIfElse"],["class","col-lg-6",4,"ngIf"],["class","col-md-6",4,"ngIf"],[1,"d-flex","justify-content-end","w-100","mt-4"],[1,"pay","btn",3,"href"],[1,"col-lg-6"],["class","",4,"ngIf"],[1,""],[1,"paydtl","first"],[1,"recommendbox"],[1,"foodarea"],[1,"mt-2"],[1,"col-md-12"],[1,"bookingComplete"],[1,"bookingCompleteCart","d-flex","justify-content-between"],[1,"bookingInner"],[1,"bookingCompleteCart","totals","last","d-flex","justify-content-between"],[1,"col-md-6"],[4,"ngFor","ngForOf"],[1,"details"],[1,"ordername"]],template:function(a,n){a&1&&(p(0,"app-header"),i(1,"section",3)(2,"div",4)(3,"div",5),m(4,rn,2,0,"ng-container",6)(5,sn,13,1,"ng-container",6),o(),m(6,mn,8,5,"div",7)(7,pn,22,5,"div",8)(8,On,61,16,"div",9),o()(),p(9,"app-footer")),a&2&&(s(4),_("ngIf",!n.showdata),s(),_("ngIf",n.showdata),s(),_("ngIf",n.showdata),s(),_("ngIf",n.showdata),s(),_("ngIf",n.showdata))},dependencies:[we,Q,L,q,z,Ae,Xe,le,Ze],styles:[".Successfull-page[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:var(--color-c1);font-size:1.6rem}.Successfull-page[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--color-c1);font-size:1.4rem}.box[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%}.box[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:var(--color-light);font-weight:400;background-color:var(--color-c1);padding:10px;text-align:center;border:1px solid var(--color-c1)}.box[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:10px;text-align:center;border:1px solid #f1f1f1}.order-img-details[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{display:block;width:auto}.totals.last[_ngcontent-%COMP%]{padding:10px}.Successfull-page[_ngcontent-%COMP%]   .order-img-details[_ngcontent-%COMP%]   .image-order[_ngcontent-%COMP%]   .image-div[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.order-id[_ngcontent-%COMP%]{text-align:right}.animation-ctn[_ngcontent-%COMP%]{text-align:center;margin-top:2em}@-webkit-keyframes _ngcontent-%COMP%_checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:200px}}@-ms-keyframes checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:200px}}@keyframes _ngcontent-%COMP%_checkmark{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0px}}@-webkit-keyframes _ngcontent-%COMP%_checkmark-circle{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}@-ms-keyframes checkmark-circle{0%{stroke-dashoffset:240px}to{stroke-dashoffset:480px}}@keyframes _ngcontent-%COMP%_checkmark-circle{0%{stroke-dashoffset:480px}to{stroke-dashoffset:960px}}@keyframes _ngcontent-%COMP%_colored-circle{0%{opacity:0}
1to{opacity:100}}.inlinesvg[_ngcontent-%COMP%]   .svg[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:inline}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   polyline[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_checkmark .25s ease-in-out .7s backwards;animation:_ngcontent-%COMP%_checkmark .25s ease-in-out .7s backwards}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_checkmark-circle .6s ease-in-out backwards;animation:_ngcontent-%COMP%_checkmark-circle .6s ease-in-out backwards}.icon--order-success[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   circle#colored[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_colored-circle .6s ease-in-out .7s backwards;animation:_ngcontent-%COMP%_colored-circle .6s ease-in-out .7s backwards}a.pay.btn[_ngcontent-%COMP%]{color:#fff!important;font-size:1.2rem!important}a.pay.btn[_ngcontent-%COMP%]:hover{color:var(--color-c1)!important}@media only screen and (max-width: 820px){section.Successfull-page.total-listing-section[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{padding:10px;margin-bottom:20px}.order-img-details[_ngcontent-%COMP%], .order-img-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.total-listing-section[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto}}.Successfull-page[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--color-c1)}"]})}}return t})();var Pn=["formview"],Tn=["confirm_modal"],Dn=["information_modal"];function Bn(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),v(", ",e.address2,"")}}function Vn(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),v(", ",e.city,"")}}function An(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c().$implicit;s(),v(", ",e.zipcode,"")}}function Fn(t,l){if(t&1){let e=E();i(0,"a",30),f("click",function(){u(e);let n=c().index,d=c(3);return h(d.setdefault(n))}),p(1,"i",31),r(2," Set as default"),o()}}function Nn(t,l){t&1&&(i(0,"a",32)(1,"strong"),r(2,"Default address"),o()())}function Ln(t,l){if(t&1){let e=E();i(0,"div",15)(1,"div",16)(2,"div",17)(3,"h3"),r(4),o(),i(5,"h4")(6,"strong"),r(7),o(),p(8,"br"),r(9),m(10,Bn,2,1,"ng-container",8)(11,Vn,2,1,"ng-container",8)(12,An,2,1,"ng-container",8),o(),i(13,"p"),V(),i(14,"svg",18),p(15,"path",19),o(),r(16),o(),U(),i(17,"p"),V(),i(18,"svg",20),p(19,"path",21),o(),r(20),o()(),U(),i(21,"div"),m(22,Fn,3,0,"a",22)(23,Nn,3,0,"a",23),i(24,"a",24),f("click",function(){let n=u(e).index,d=c(3);return h(d.deleteadress(n))}),p(25,"i",25),r(26," Delete"),o(),i(27,"a",26),f("click",function(){let n=u(e).index,d=c(3);return h(d.editaddress(n))}),p(28,"i",27),V(),i(29,"svg",28),p(30,"path",29),o(),r(31," Edit"),o()()()()}if(t&2){let e=l.$implicit;s(4),g(e.address_tag_name),s(3),g(e.name),s(2),v(" ",e.address,""),s(),_("ngIf",e.address2!=""),s(),_("ngIf",e.city!=""),s(),_("ngIf",e.zipcode!=""),s(4),v(" ",e.mobile_no," "),s(4),v(" ",e.email," "),s(2),_("ngIf",e.is_default!="yes"),s(),_("ngIf",e.is_default=="yes")}}function Rn(t,l){if(t&1&&(i(0,"div"),m(1,Ln,32,10,"div",14),o()),t&2){let e=c(2);s(),_("ngForOf",e.addresslist)}}function jn(t,l){if(t&1){let e=E();i(0,"div",9)(1,"div",10)(2,"h3"),r(3,"Address Book "),o(),i(4,"a",11),f("click",function(){u(e);let n=c();return h(n.addaddadress())}),r(5,"Add Address"),o()(),i(6,"div",12)(7,"div",13),m(8,Rn,2,1,"div",8),o()()()}if(t&2){let e=c();s(8),_("ngIf",e.addresslist.length>0)}}function qn(t,l){t&1&&(i(0,"div",52),r(1," Name is required "),o())}function zn(t,l){t&1&&(i(0,"div",52),r(1," Email is required "),o())}function Wn(t,l){t&1&&(i(0,"div",52),r(1," Please enter valid email "),o())}function Hn(t,l){t&1&&(i(0,"div",52),r(1," Mobile Number is required "),o())}function $n(t,l){t&1&&(i(0,"div",53),r(1," Phone number must have 11 digit and a leading 0 "),o())}function Gn(t,l){t&1&&(i(0,"div",52),r(1," Address is required "),o())}function Un(t,l){t&1&&(i(0,"div",52),r(1," Postcode is required "),o())}function Qn(t,l){t&1&&(i(0,"div",52),r(1," Please name the address "),o())}function Yn(t,l){if(t&1&&(i(0,"div",52),r(1),o()),t&2){let e=c(2);s(),g(e.error)}}function Kn(t,l){if(t&1){let e=E();i(0,"div")(1,"div",33)(2,"div",34)(3,"div",35,2)(5,"form",36,3),f("ngSubmit",function(){u(e);let n=c();return h(n.saveaddress())}),i(7,"div",37),p(8,"input",38),m(9,qn,2,0,"div",39),o(),i(10,"div",37),p(11,"input",40),m(12,zn,2,0,"div",39)(13,Wn,2,0,"div",39),o(),i(14,"div",37),p(15,"input",41),m(16,Hn,2,0,"div",39)(17,$n,2,0,"div",42),o(),i(18,"div",37),p(19,"input",43),m(20,Gn,2,0,"div",39),o(),i(21,"div",37),p(22,"input",44),m(23,Un,2,0,"div",39),o(),i(24,"div",37)(25,"label"),r(26,"Save address as"),o(),i(27,"select",45)(28,"option",46),r(29,"Home"),o(),i(30,"option",47),r(31,"Office"),o(),i(32,"option",48),r(33,"Shop"),o(),i(34,"option",49),r(35,"Others"),o()(),m(36,Qn,2,0,"div",39),o(),m(37,Yn,2,1,"div",39),i(38,"div",50),p(39,"input",51),o()()()()()()}if(t&2){let e=c();s(5),_("formGroup",e.addAddressForm),s(4),_("ngIf",e.addValidator.name.errors!=null&&e.addValidator.name.errors.required&&e.addValidator.name.touched),s(3),_("ngIf",e.addValidator.email.errors!=null&&e.addValidator.email.errors.required&&e.addValidator.email.touched),s(),_("ngIf",e.addValidator.email.errors!=null&&e.addValidator.email.errors.email&&e.addValidator.email.touched),s(3),_("ngIf",e.addValidator.mob.errors!=null&&e.addValidator.mob.errors.required&&e.addValidator.mob.touched),s(),_("ngIf",e.addValidator.mob.errors!=null&&e.addValidator.mob.errors.pattern&&e.addValidator.mob.touched),s(3),_("ngIf",e.addValidator.addr1.errors!=null&&e.addValidator.addr1.errors.required&&e.addValidator.addr1.touched),s(3),_("ngIf",e.addValidator.postcode.errors!=null&&e.addValidator.postcode.errors.required&&e.addValidator.postcode.touched),s(13),_("ngIf",e.addValidator.address_tag_name.errors!=null&&e.addValidator.address_tag_name.errors.required&&e.addValidator.address_tag_name.touched),s(),_("ngIf",e.error!="")}}function Jn(t,l){t&1&&(i(0,"div"),p(1,"img",61),o())}function Xn(t,l){if(t&1){let e=E();i(0,"div")(1,"button",62),f("click",function(){u(e);let n=c(2);return h(n.deleteaddresscall())}),r(2,"Yes"),o(),i(3,"button",63),f("click",function(){u(e);let n=c().$implicit;return h(n.dismiss("Cross click"))}),r(4,"No"),o()()}}function Zn(t,l){if(t&1){let e=E();i(0,"div",54)(1,"h4",55),r(2,"Confirm"),o(),i(3,"button",56),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),i(4,"span",57),r(5,"\xD7"),o()()(),i(6,"div",58)(7,"div",5)(8,"div",59)(9,"p"),r(10,"Are you Sure want to delete address ?"),o()()()(),i(11,"div",60),m(12,Jn,2,0,"div",8)(13,Xn,5,0,"div",8),o()}if(t&2){let e=c();s(12),_("ngIf",e.loader),s(),_("ngIf",!e.loader)}}function eo(t,l){if(t&1){let e=E();i(0,"div",54)(1,"h4",55),r(2),o(),i(3,"button",56),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),i(4,"span",57),r(5,"\xD7"),o()()(),i(6,"div",58)(7,"div",5)(8,"div",59)(9,"p"),r(10),o()()()(),i(11,"div",60)(12,"div")(13,"button",63),f("click",function(){let n=u(e).$implicit;return h(n.dismiss("Cross click"))}),r(14,"OK"),o()()()}if(t&2){let e=c();
1s(2),g(e.popup_title),s(8),g(e.popup_message)}}var Mt=(()=>{class t{constructor(e,a,n,d){this.restProvider=e,this.modalService=a,this.authServ=n,this.storage=d,this.addresslist=[],this.viewmode=!0,this.deleteaddress="",this.popup_title="",this.popup_message="",this.showdloader=!1,this.loader=!1,this.deladdress={mobile_no:"",address:"",address2:"",city:"",zipcode:"",sessiontoken:"",address_id:"",name:"",email:"",address_tag_name:""},this.error="",this.addAddressForm=new Me({name:new ee(null,[Y.required]),mob:new ee(null,[Y.required,Y.pattern("^0[0-9]{10}$")]),email:new ee(null,[Y.required,Y.email]),addr1:new ee(null,[Y.required]),addr2:new ee(null),postcode:new ee(null,[Y.required]),address_tag_name:new ee(null,[Y.required])})}ngOnInit(){this.initPage()}initPage(){return He(this,null,function*(){this.user=yield this.storage.getLocalstorage("userdata"),this.user.address_book_list.map(e=>{this.addresslist.push(e)})})}editaddress(e){this.deladdress=this.addresslist[e],this.viewmode=!1,this.addAddressForm.controls.name.setValue(this.deladdress.name),this.addAddressForm.controls.email.setValue(this.deladdress.email),this.addAddressForm.controls.mob.setValue(this.deladdress.mobile_no),this.addAddressForm.controls.addr1.setValue(this.deladdress.address),this.addAddressForm.controls.addr2.setValue(this.deladdress.address2),this.addAddressForm.controls.postcode.setValue(this.deladdress.zipcode),this.addAddressForm.controls.address_tag_name.setValue(this.deladdress.address_tag_name),window.scroll(0,0)}addaddadress(){this.deladdress={mobile_no:"",address:"",address2:"",city:"",zipcode:"",sessiontoken:"",address_id:0,name:"",email:"",address_tag_name:""},this.viewmode=!1}get addValidator(){return this.addAddressForm.controls}saveaddress(){if(this.addAddressForm.invalid){this.addAddressForm.controls.name.markAsTouched(),this.addAddressForm.controls.mob.markAsTouched(),this.addAddressForm.controls.email.markAsTouched(),this.addAddressForm.controls.addr1.markAsTouched(),this.addAddressForm.controls.postcode.markAsTouched(),this.addAddressForm.controls.address_tag_name.markAsTouched();return}else this.showdloader=!0,this.deladdress.name=this.addAddressForm.controls.name.value,this.deladdress.mobile_no=this.addAddressForm.controls.mob.value,this.deladdress.email=this.addAddressForm.controls.email.value,this.deladdress.address=this.addAddressForm.controls.addr1.value,this.deladdress.address2=this.addAddressForm.controls.addr2.value,this.deladdress.zipcode=this.addAddressForm.controls.postcode.value,this.deladdress.address_tag_name=this.addAddressForm.controls.address_tag_name.value,this.deladdress.sessiontoken=this.authServ.getSecureToken(),this.restProvider.postdataapi(this.deladdress,"users/add_edit_address").subscribe(e=>{this.error="",this.showdloader=!1,e.responsecode==200?(this.user.address_book_list=e.delivery_address,this.user.address_book=e.defaule_delivery_address,this.storage.setLocalstorage("userdata",this.user),this.addresslist=[],this.user.address_book_list.map(a=>{this.addresslist.push(a)}),this.viewmode=!0):this.error=e.status},e=>{this.showdloader=!1})}deleteadress(e){let a={backdrop:"static",keyboard:!1};this.deleteaddress=this.addresslist[e].address_id,this.modalService.open(this.confirm_modal,a).result.then(n=>{this.deleteaddress=""},n=>{this.deleteaddress=""})}deleteaddresscall(){this.showdloader=!0,this.loader=!0;let e={sessiontoken:this.authServ.getSecureToken(),address_id:this.deleteaddress};this.restProvider.postdataapi(e,"users/delete_address").subscribe(a=>{this.showdloader=!1,this.loader=!1,a.responsecode==200?(this.user.address_book_list=a.delivery_address,this.user.address_book=a.default_delivery_address,this.storage.setLocalstorage("userdata",this.user),this.addresslist=[],this.user.address_book_list.map(n=>{this.addresslist.push(n)}),this.modalService.dismissAll(),this.popup_title="Sucess",this.popup_message="Address scessfully deleted",this.modalService.open(this.information_modal)):(this.modalService.dismissAll(),this.popup_title="Error",this.popup_message=a.status,this.modalService.open(this.information_modal)),this.deleteaddress=""},a=>{this.showdloader=!1,this.loader=!1,this.deleteaddress="",this.popup_title="Error",this.popup_message="Something went wrong",this.modalService.open(this.information_modal)})}setdefault(e){let a=this.addresslist[e].address_id;this.showdloader=!0,this.loader=!0;let n={sessiontoken:this.authServ.getSecureToken(),address_id:a,is_default:"yes"};this.restProvider.postdataapi(n,"users/set_default_address").subscribe(d=>{this.showdloader=!1,this.loader=!1,d.responsecode==200?(this.user.address_book_list=d.delivery_address,this.user.address_book=d.default_delivery_address,this.storage.setLocalstorage("userdata",this.user),this.addresslist=[],this.user.address_book_list.map(y=>{this.addresslist.push(y)}),this.popup_title="Sucess",this.popup_message="Address scessfully set to default",this.modalService.open(this.information_modal),window.scroll(0,0)):(this.popup_title="Error",this.popup_message="Something went wrong",this.modalService.open(this.information_modal))},d=>{this.showdloader=!1,this.loader=!1,this.popup_title="Error",this.popup_message="Something went wrong",this.modalService.open(this.information_modal)})}static{this.\u0275fac=function(a){return new(a||t)(x(j),x(re),x(R),x(H))}}static{this.\u0275cmp=A({type:t,selectors:[["app-address-book"]],viewQuery:function(a,n){if(a&1&&(K(Pn,5),K(Tn,5),K(Dn,5)),a&2){let d;J(d=X())&&(n.formview=d.first),J(d=X())&&(n.confirm_modal=d.first),J(d=X())&&(n.information_modal=d.first)}},standalone:!1,decls:12,vars:2,consts:[["confirm_modal",""],["information_modal",""],["formview",""],["delf","ngForm"],[1,"profile-page-details","container","tabContent"],[1,"row"],["
1id","Address_Book","role","tabpanel","aria-labelledby","Address_Book-tab",1,"tab-pane","review-section"],["class","address-book-div-head",4,"ngIf"],[4,"ngIf"],[1,"address-book-div-head"],[1,"upper-section","d-flex","justify-content-between","align-items-center"],["href","javascript:void(0)",1,"anchor",3,"click"],[1,"down-section-body"],[1,"card"],["class","content",4,"ngFor","ngForOf"],[1,"content"],[1,"d-md-flex","justify-content-between","align-items-start"],[1,"address"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","#f03157","viewBox","0 0 16 16",1,"bi","bi-telephone"],["d","M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","#f03157","viewBox","0 0 16 16",1,"bi","bi-envelope"],["d","M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"],["href","javascript:void(0)","class","anchor btn",3,"click",4,"ngIf"],["href","javascript:void(0)","class","btn btn-sm disabled btn",4,"ngIf"],["href","javascript:void(0)",1,"anchor","del","ml-1","btn",3,"click"],[1,"las","la-trash-alt"],["href","javascript:void(0)",1,"anchor","edit","ml-2","btn",3,"click"],[1,"las","la-edit"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152L0 424c0 48.6 39.4 88 88 88l272 0c48.6 0 88-39.4 88-88l0-112c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 22.1-17.9 40-40 40L88 464c-22.1 0-40-17.9-40-40l0-272c0-22.1 17.9-40 40-40l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 64z"],["href","javascript:void(0)",1,"anchor","btn",3,"click"],[1,"las","la-check-double"],["href","javascript:void(0)",1,"btn","btn-sm","disabled","btn"],[1,"row","d-lg-flex","justify-content-lg-center"],[1,"tab-pane","review-section","card"],[1,"addressdtl","myform"],[3,"ngSubmit","formGroup"],[1,"fldarea"],["type","text form-control","name","nmbl","formControlName","name","placeholder","Name"],["class","error-text",4,"ngIf"],["type","text form-control","name","embl","formControlName","email","placeholder","Email"],["type","text form-control","name","mbl","formControlName","mob","placeholder","Mobile Number"],["class","alert alert-danger",4,"ngIf"],["type","text form-control","name","addr_1","formControlName","addr1","placeholder","Address"],["type","text form-control","name","postcode","formControlName","postcode","placeholder","Postcode"],["name","address_tag_name form-control","formControlName","address_tag_name"],["value","Home"],["value","Office"],["value","Shop"],["value","Others"],[1,"anchor-div-save","text-right","d-flex","justify-content-end","mt-2"],["type","submit","name","","value","Save",1,"pay","anchor"],[1,"error-text"],[1,"alert","alert-danger"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["size","lg",1,"modal-body","myform"],[1,"col-md-12"],[1,"modal-footer"],["src","assets/images/loader.gif",2,"width","100%"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-outline-dark","ml-2",3,"click"]],template:function(a,n){a&1&&(p(0,"app-header"),i(1,"section",4)(2,"div",5),p(3,"app-account-menu"),i(4,"div",6),m(5,jn,9,1,"div",7)(6,Kn,40,10,"div",8),o()()(),m(7,Zn,14,2,"ng-template",null,0,I)(9,eo,15,2,"ng-template",null,1,I),p(11,"app-footer")),a&2&&(s(5),_("ngIf",n.viewmode),s(),_("ngIf",!n.viewmode))},dependencies:[Q,L,q,z,pe,Te,De,oe,Pe,ae,_e,Ie,Oe,se],styles:[".error-text[_ngcontent-%COMP%]{color:red}"]})}}return t})();function to(t,l){t&1&&(k(0),p(1,"app-loader",11),C())}function io(t,l){if(t&1){let e=E();i(0,"div",36)(1,"h4"),r(2,"Revise booking?"),o(),i(3,"div",37)(4,"a",38),f("click",function(){u(e);let n=c(3);
1return h(n.hideShowRescheduleBooking())}),r(5,"Reschedule booking"),o(),i(6,"a",39),f("click",function(){u(e);let n=c(3);return h(n.hideShowCancelBooking())}),r(7,"Cancel booking"),o()()()}}function no(t,l){if(t&1){let e=E();i(0,"div",36)(1,"p"),r(2,"Retry Payment?"),o(),i(3,"div",37)(4,"a",38),f("click",function(){u(e);let n=c(3);return h(n.retryPayment())}),r(5,"Retry Payment"),o()()()}}function oo(t,l){if(t&1&&(i(0,"p",40)(1,"strong"),r(2),o()()),t&2){let e=c(3);s(2),g(e.booking_reschedule_possible_msg)}}function ao(t,l){if(t&1&&(k(0),r(1),C()),t&2){let e=c(4);s(),v("Refund against Booking ID ",e.booking_id," is subject to Restaurant's terms and condition. ")}}function ro(t,l){if(t&1){let e=E();i(0,"div",41)(1,"h5",42),r(2,"Are you sure you want to cancel the booking?"),o(),p(3,"hr"),i(4,"form",43)(5,"div",44)(6,"label"),r(7,"Reason"),o(),i(8,"input",45),B("ngModelChange",function(n){u(e);let d=c(3);return D(d.cancel_booking_msg,n)||(d.cancel_booking_msg=n),h(n)}),o()()(),i(9,"div",46)(10,"div",39),f("click",function(){u(e);let n=c(3);return h(n.hideShowCancelBooking())}),r(11,"No"),o(),i(12,"div",47),f("click",function(){u(e);let n=c(3);return h(n.ConfirmCancelBooking())}),r(13,"Yes"),o()(),i(14,"div",48)(15,"strong"),r(16,"Note: "),o(),r(17),m(18,ao,2,1,"ng-container",9),S(19,"lowercase"),S(20,"lowercase"),r(21," For more details check our Refund policy or contact us. "),o()()}if(t&2){let e=c(3);s(8),T("ngModel",e.cancel_booking_msg),s(9),de(" If you want to cancel this booking then Booking ID ",e.booking_id," will be requested for cancalation to ",e.bs_name,". "),s(),_("ngIf",ne(19,4,e.payment_status)=="success"&&ne(20,6,e.payment_method)!="cod"&&e.total_price>0)}}function so(t,l){if(t&1&&(i(0,"option",70),r(1),o()),t&2){let e=l.$implicit;N("value",e.value),s(),g(e.value)}}function lo(t,l){if(t&1&&(i(0,"p",71)(1,"strong")(2,"span",72),r(3),o()()()),t&2){let e=c(4);s(3),g(e.reschedule_booking_guest_err)}}function co(t,l){if(t&1&&(k(0),i(1,"option",70),r(2),o(),C()),t&2){let e=l.$implicit;s(),N("value",e),s(),g(e)}}function _o(t,l){if(t&1){let e=E();i(0,"div",73)(1,"label"),r(2,"Preferred time "),i(3,"span",72),r(4,"*"),o()(),i(5,"select",74,5),B("ngModelChange",function(n){u(e);let d=c(4);return D(d.reschedule_booking_time,n)||(d.reschedule_booking_time=n),h(n)}),i(7,"option",75),r(8,"Select Time"),o(),m(9,co,3,2,"ng-container",76),o()()}if(t&2){let e=c(4);s(5),T("ngModel",e.reschedule_booking_time),s(4),_("ngForOf",e.timesloarray)}}function mo(t,l){if(t&1&&(i(0,"div",44)(1,"label")(2,"strong")(3,"sup"),r(4,"**"),o(),r(5,"Note:"),o()(),i(6,"textarea",77),r(7),o()()),t&2){let e=c(4);s(7),g(e.special_booking_note)}}function po(t,l){if(t&1&&(i(0,"div",82),r(1,"1 "),i(2,"strong"),r(3),S(4,"number"),o()()),t&2){let e=c(5);s(3),v("Booking x \xA3",M(4,1,e.every_booking_price,"1.2"),"")}}function go(t,l){if(t&1&&(i(0,"div",82)(1,"strong"),r(2),S(3,"number"),o()()),t&2){let e=c(5);s(2),v("\xA3",M(3,1,e.every_booking_price,"1.2"),"")}}function uo(t,l){t&1&&(k(0),r(1,"Guest"),C())}function ho(t,l){t&1&&r(0,"Guest's")}function vo(t,l){if(t&1&&(i(0,"div",82),r(1),i(2,"strong"),m(3,uo,2,0,"ng-container",69)(4,ho,1,0,"ng-template",null,6,I),r(6),S(7,"number"),o()()),t&2){let e=w(5),a=c(6);s(),v("",a.reschedule_booking_no_guest," "),s(2),_("ngIf",a.reschedule_booking_no_guest==1)("ngIfElse",e),s(3),v(" x \xA3",M(7,4,a.every_person_price,"1.2"),"")}}function fo(t,l){if(t&1&&(i(0,"div",82)(1,"strong"),r(2),S(3,"number"),o()()),t&2){let e=c(6);s(2),v("\xA3",M(3,1,e.reschedule_booking_no_guest*e.every_person_price,"1.2"),"")}}function bo(t,l){if(t&1&&(i(0,"div",79),m(1,vo,8,7,"div",80)(2,fo,4,4,"div",80),o()),t&2){let e=c(5);s(),_("ngIf",e.every_person_price>0),s(),_("ngIf",e.every_person_price>0)}}function xo(t,l){if(t&1&&(k(0),r(1),S(2,"number"),C()),t&2){let e=c(6);s(),v(" (",M(2,1,e.every_booking_service_charge_price,"1.2"),"% ) ")}}function yo(t,l){if(t&1&&(r(0),S(1,"number")),t&2){let e=c(6);v(" (\xA3",M(1,1,e.every_booking_service_charge_price,"1.2")," ) ")}}function ko(t,l){if(t&1&&(i(0,"div",79)(1,"div",82)(2,"strong"),r(3,"Service Charge"),o(),m(4,xo,3,4,"ng-container",69)(5,yo,2,4,"ng-template",null,7,I),o(),i(7,"div",82)(8,"strong"),r(9),S(10,"number"),o()()()),t&2){let e=w(6),a=c(5);s(4),_("ngIf",a.every_booking_service_charge_type=="percentage")("ngIfElse",e),s(5),v("\xA3",M(10,3,a.total_service_charge_price,"1.2"),"")}}function Co(t,l){t&1&&p(0,"app-svg-icon",105)}function wo(t,l){t&1&&p(0,"app-svg-icon",106)}function So(t,l){t&1&&p(0,"app-svg-icon",107)}function Mo(t,l){if(t&1){let e=E();i(0,"div",96)(1,"input",97),B("ngModelChange",function(n){u(e);let d=c(5);return D(d.reschedule_booking_paymode,n)||(d.reschedule_booking_paymode=n),h(n)}),f("change",function(){let n=u(e).$implicit,d=c(5);return h(d.changeBookingPaytype(n.value))}),o(),i(2,"label",98)(3,"span",99)(4,"div",100),m(5,Co,1,0,"app-svg-icon",101)(6,wo,1,0,"app-svg-icon",102)(7,So,1,0,"app-svg-icon",103),o(),i(8,"div",104)(9,"h6"),r(10),S(11,"titlecase"),o()()()()()}if(t&2){let e=l.$implicit,a=c(5);s(),N("id",e.value),N("value",e.value),T("ngModel",a.reschedule_booking_paymode),s(),N("for",e.value),s(3),_("ngIf",e.value.toLowerCase()=="paypal"),s(),_("ngIf",e.value.toLowerCase()=="cod"),s(),_("ngIf",e.value.toLowerCase()!="paypal"&&e.value.toLowerCase()!="cod"),s(3),g(ne(11,8,e.leble))}}function Eo(t,l){t&1&&(i(0,"div",108),r(1,"**Payment method is required "),o())}function Io(t,l){if(t&1&&(i(0,"div",49)(1,"label")(2,"strong"),r(3,"Payment Details"),o()(),i(4,"div",78)(5,"div",79),m(6,po,5,4,"div",80)(7,go,4,4,"div",80),o(),m(8,bo,3,2,"div",81)(9,ko,11,6,"div",81),i(10,"div",79)(11,"div",82)(12,"strong"),r(13,"Total"),o()(),i(14,"div",82)(15,"strong"),r(16),S(17,"number"),o()()()(),i(18,"div",83)(19,"div",84)(20,"div",85)(21,"div",86)(22,"table",87)(23,"tbody")(24,"tr",88)(25,"td",89)(26,"div",90)(27,"div",91)(28,"strong"),r(29,"Select Payment Method"),o()(),i(30,"div",92)(31,"div",93),m(32,Mo,12,10,"div",94),o()()()()()()()()()()(),m(33,Eo,2,0,"div",95),o()),t&2){let e=c(4);Ge("red-boder-active",e.bookingPayModeErr),s(6),_("ngIf",e.every_booking_price>0),s(),_("ngIf",e.every_booking_price>0),s(),_("ngIf",e.every_person_price>0&&e.total_booking_person_price>0),s(),_("ngIf",e.total_service_charge_price>0),s(7),v("\xA3",M(17,9,e.total_booking_price,"1.2"),""),s(16),_("ngForOf",e.all_payment_methods),s(),_("ngIf",e.bookingPayModeErr)}}function Oo(t,l){t&1&&(i(0,"div",109),r(1,"Please agree our Terms & Conditions. "),o())}function Po(t,l){t&1&&(k(0),r(1,"Reschedule & Pay"),C())}function To(t,l){t&1&&r(0,"Reschedule")}function Do(t,l){if(t&1){let e=E();i(0,"div",49)(1,"h5"),r(2,"Are you sure you want to reschedule the booking?"),o(),p(3,"hr"),i(4,"form",43)(5,"div",13)(6,"div",50)(7,"label"),r(8,"Booking date"),o(),i(9,"mat-form-field",51)(10,"input",52),B("ngModelChange",function(n){u(e);let d=c(3);return D(d.reschedule_booking_date_fetch,n)||(d.reschedule_booking_date_fetch=n),h(n)}),f("click",function(){u(e);let n=w(13);return h(n.open())})("dateChange",function(n){u(e);let d=c(3);return h(d.onBookingDateSelect(n.value))}),o(),p(11,"mat-datepicker-toggle",53)(12,"mat-datepicker",null,2),o()(),i(14,"div",54)(15,"div",44)(16,"label"),r(17,"No of guest"),o(),i(18,"select",55,3),B("ngModelChange",function(n){u(e);let d=c(3);return D(d.reschedule_booking_no_guest,n)||(d.reschedule_booking_no_guest=n),h(n)}),f("change",function(){u(e);let n=c(3);return h(n.checkGuests())}),m(20,so,2,2,"option",56),o()()(),i(21,"div",57),m(22,lo,4,1,"p",58),o()(),m(23,_o,10,2,"div",59),i(24,"div",44)(25,"label"),r(26,"Message"),o(),i(27,"textarea",60),B("ngModelChange",function(n){u(e);let d=c(3);return D(d.reschedule_booking_msg,n)||(d.reschedule_booking_msg=n),h(n)}),o()(),m(28,mo,8,1,"div",61)(29,Io,34,12,"div",62),i(30,"div",63)(31,"input",64),B("ngModelChange",function(n){u(e);let d=c(3);return D(d.reschedule_booking_agree_checkbox,n)||(d.reschedule_booking_agree_checkbox=n),h(n)}),o(),r(32," I agree to BookYup's "),i(33,"a",65)(34,"strong"),r(35,"Terms & Conditions"),o()(),r(36," and "),i(37,"a",66)(38,"strong"),r(39,"Privacy Policy"),o()(),r(40,". "),m(41,Oo,2,0,"div",67),o()(),i(42,"div",68)(43,"div",39),f("click",function(){u(e);let n=c(3);
1return h(n.hideShowRescheduleBooking())}),r(44,"Cancel"),o(),i(45,"div",47),f("click",function(){u(e);let n=c(3);return h(n.ConfirmRescheduleBooking())}),m(46,Po,2,0,"ng-container",69)(47,To,1,0,"ng-template",null,4,I),o()()()}if(t&2){let e=w(13),a=w(48),n=c(3);s(10),_("matDatepicker",e),T("ngModel",n.reschedule_booking_date_fetch),_("min",n.today),s(),_("for",e),s(7),T("ngModel",n.reschedule_booking_no_guest),s(2),_("ngForOf",n.select_guest_arr),s(2),_("ngIf",n.reschedule_booking_guest_err_show),s(),_("ngIf",n.timesloarray.length>0),s(4),T("ngModel",n.reschedule_booking_msg),s(),_("ngIf",n.special_booking_note!=""),s(),_("ngIf",(n.every_booking_price>0||n.every_person_price>0||n.total_service_charge_price>0)&&n.booking_payment_accept_over_guest_number==0||n.booking_payment_accept_over_guest_number>0&&n.reschedule_booking_no_guest>n.booking_payment_accept_over_guest_number&&n.total_booking_price>0||n.total_booking_price>0&&n.booking_payment_accept_over_guest_number>0),s(2),T("ngModel",n.reschedule_booking_agree_checkbox),s(10),_("ngIf",n.reschedule_booking_agree_err=="yes"),s(5),_("ngIf",n.total_booking_price>0)("ngIfElse",a)}}function Bo(t,l){if(t&1&&(i(0,"div",31),m(1,io,8,0,"div",32)(2,no,6,0,"ng-template",null,1,I)(4,oo,3,1,"p",33)(5,ro,22,8,"div",34)(6,Do,49,15,"div",35),o()),t&2){let e=w(3),a=c(2);s(),_("ngIf",!a.booking_payment_retry_show)("ngIfElse",e),s(3),_("ngIf",a.booking_reschedule_possible_err_show),s(),_("ngIf",a.showdDivCancel),s(),_("ngIf",a.showdDivReschedule)}}function Vo(t,l){if(t&1&&(i(0,"div",49)(1,"div",26)(2,"h5"),r(3,"Booking canceled"),o()(),i(4,"div",13)(5,"div",28)(6,"div",23)(7,"strong"),r(8,"Message"),o(),i(9,"div"),r(10),o()()(),i(11,"div",28)(12,"div",23)(13,"strong"),r(14,"Cancel Request Date"),o(),i(15,"div"),r(16),o()()()()()),t&2){let e=c(2);s(10),g(e.booking_cancel_msg),s(6),g(e.booking_cancel_req_date)}}function Ao(t,l){if(t&1&&(i(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15)(4,"div",16)(5,"div",13)(6,"div",17)(7,"div",18),p(8,"img",19),o()(),i(9,"div",20)(10,"h3")(11,"a",21),r(12),o()(),i(13,"div",22)(14,"div",23)(15,"strong"),r(16,"Booking ID"),o(),i(17,"div"),r(18),o()(),i(19,"div",23)(20,"strong"),r(21,"Payment Status"),o(),i(22,"div"),r(23),o()(),i(24,"div",23)(25,"strong"),r(26,"Payment Method"),o(),i(27,"div"),r(28),o()(),i(29,"div",24)(30,"strong"),r(31,"Booking Status"),o(),i(32,"div"),r(33),o()()()()()()(),m(34,Bo,7,5,"div",25),o(),i(35,"div",14)(36,"div",15)(37,"div",26)(38,"div",27)(39,"div",13)(40,"div",28)(41,"div",29)(42,"strong"),r(43,"Booking Date"),o(),i(44,"div"),r(45),o()()(),i(46,"div",28)(47,"div",23)(48,"strong"),r(49,"Booking Time"),o(),i(50,"div"),r(51),o()()(),i(52,"div",28)(53,"div",24)(54,"strong"),r(55,"No. of guest(s)"),o(),i(56,"div"),r(57),o()()()()()(),i(58,"div",26)(59,"div",27)(60,"div",13)(61,"div",28)(62,"div",23)(63,"strong"),r(64,"Name"),o(),i(65,"div"),r(66),o()()(),i(67,"div",28)(68,"div",23)(69,"strong"),r(70,"Email"),o(),i(71,"div"),r(72),o()()(),i(73,"div",28)(74,"div",23)(75,"strong"),r(76,"Booking Price"),o(),i(77,"div"),r(78),S(79,"number"),o()()()()()(),i(80,"div",27)(81,"div",13)(82,"div",28)(83,"div",23)(84,"strong"),r(85,"Message"),o(),i(86,"div"),r(87),o()()(),i(88,"div",28)(89,"div",23)(90,"strong"),r(91,"Occasion"),o(),i(92,"div"),r(93),o()()(),i(94,"div",28)(95,"div",24)(96,"strong"),r(97,"Postcode"),o(),i(98,"div",30),r(99),o()()()()()()()(),m(100,Vo,17,2,"ng-template",null,0,I),o()),t&2){let e=w(101),a=c();s(8),N("src",a.bs_logo,P),s(3),N("href",a.bs_link,P),s(),g(a.bs_name),s(6),g(a.booking_id),s(5),g(a.payment_status),s(5),g(a.payment_method),s(5),g(a.booking_status),s(),_("ngIf",!a.booking_is_cancel)("ngIfElse",e),s(11),g(a.booking_date),s(6),g(a.booking_time),s(6),g(a.no_guest),s(9),g(a.cust_name),s(6),g(a.cust_email),s(6),v("\xA3",M(79,18,a.total_price,"1.2"),""),s(9),g(a.booking_msg),s(6),g(a.booking_occasion),s(6),g(a.cust_postcode)}}var Et=(()=>{class t{constructor(e,a,n,d,y,O,G){this.router=e,this.restProvider=a,this.route=n,this.storage=d,this.customEvent=y,this.authService=O,this.config=G,this.base_url=F.baseUrl,this.payment_url=F.payment_url,this.showdloader=!0,this.showdDivCancel=!1,this.showdDivReschedule=!1,this.getBusinessDetail=!0,this.payment_method="",this.payment_status="",this.total_price=0,this.total_service_charge_price=0,this.every_booking_service_charge_type="fixed",this.every_booking_service_charge_price=0,this.every_booking_price=0,this.every_person_price=0,this.total_booking_person_price=0,this.total_booking_price=0,this.all_payment_methods=[],this.reschedule_booking_paymode="",this.ToDay="",this.bookingPayModeErr
1=!1,this.reschedule_booking_agree_err="",this.reschedule_booking_agree_checkbox="",this.reschedule_booking_payload={sessiontoken:"",business_id:0,date:"",time:"",time_slot_id:0,paymode:"",guest:"",total_guest_price:0,name:"",email:"",phone:"",pincode:"",about_us:"",occasion:"",message:"",booking_update_sms:"y",bookyup_offers:"y",restaurant_offers:"",reschedule_old_bkey:""},this.timesloarray=[],this.slug="",this.bkey="",this.bs_id="",this.bs_name="",this.bs_link="",this.bs_logo="",this.booking_status="",this.booking_id="",this.booking_date="",this.booking_time="",this.booking_msg="N/A",this.booking_occasion="",this.no_guest=0,this.cust_name="",this.cust_email="",this.cust_postcode="",this.reschedule_booking_date_fetch=null,this.min_person=0,this.max_person=0,this.special_booking_note="",this.select_guest_arr=[],this.reschedule_booking_date={year:0,month:0,day:0},this.reschedule_booking_time="",this.reschedule_booking_no_guest=0,this.reschedule_booking_guest_err="",this.reschedule_booking_guest_err_show=!1,this.reschedule_booking_msg="",this.booking_payment_accept_over_guest_number=0,this.cancel_booking_msg="",this.booking_is_cancel=!1,this.booking_cancel_msg="",this.booking_cancel_req_date="",this.booking_reschedule_possible=!0,this.booking_reschedule_possible_msg="",this.booking_reschedule_possible_err_show=!1,this.booking_payment_retry_show=!1,this.formbody={zipcode:"",slug:""},this.bookingDateDisplay="",this.today=new Date,this.bkey=n.snapshot.params.bkey;let b=new Date;G.minDate={year:b.getFullYear(),month:b.getMonth()+1,day:b.getDate()},this.ToDay=(b.getDate()<=9?"0"+b.getDate():b.getDate())+"-"+(b.getMonth()<=9?"0"+b.getMonth():b.getMonth())+"-"+b.getFullYear()}ngOnInit(){this.getBookingDetails()}changeBookingPaytype(e){this.reschedule_booking_paymode=e,this.bookingPayModeErr=!1}recalculateBookingPrice(){let e=0;Number(this.reschedule_booking_no_guest)>Number(this.booking_payment_accept_over_guest_number)&&(e=Number(this.every_person_price)),this.total_booking_person_price=Number(this.reschedule_booking_no_guest)*Number(e),this.every_booking_service_charge_type=="percentage"?this.total_service_charge_price=(this.total_booking_person_price+Number(this.every_booking_price))*this.every_booking_service_charge_price/100:this.total_service_charge_price=Number(this.every_booking_service_charge_price),this.total_booking_price=Number(this.total_booking_person_price)+Number(this.every_booking_price)+Number(this.total_service_charge_price),Number(this.reschedule_booking_no_guest)>Number(this.booking_payment_accept_over_guest_number)?Number(this.booking_payment_accept_over_guest_number)>0&&(this.reschedule_booking_payload.paymode="",this.reschedule_booking_agree_checkbox=!1):Number(this.reschedule_booking_payload.total_guest_price)==0&&(this.reschedule_booking_payload.paymode="cod")}getBookingDetails(){let e={booking_key:this.bkey},a=[],n=[],d=0,y="",O="",G="";this.restProvider.postdataapi(e,"order/booking_cancel_details").subscribe(b=>{this.showdloader=!1,b.responsecode=="200"?(a=b.details.date.split(" ")[1].split("-"),parseInt(a[2])>this.config.minDate.year||parseInt(a[2])==this.config.minDate.year&&parseInt(a[1])>this.config.minDate.month||parseInt(a[2])==this.config.minDate.year&&parseInt(a[1])==this.config.minDate.month&&parseInt(a[0])>=this.config.minDate.day?(this.total_service_charge_price=Number(b.details.service_charge.service_charge_amount),this.every_booking_service_charge_type=b.details.service_charge.service_charge_type,this.every_booking_service_charge_price=Number(b.details.service_charge.service_charge),this.reschedule_booking_payload.name=b.details.customer.customer_name,this.reschedule_booking_payload.email=b.details.customer.customer_email,this.reschedule_booking_payload.phone=b.details.customer.customer_mobile,this.reschedule_booking_payload.pincode=b.details.customer.customer_postcode,this.reschedule_booking_payload.occasion=b.details.occasion,this.reschedule_booking_payload.reschedule_old_bkey=this.bkey,this.bs_name=b.details.business_name,this.slug=b.details.business_slug,this.bs_link=F.baseUrl+"business/"+b.details.business_slug,this.bs_logo=b.details.business_logo,this.booking_status=b.details.booking_status_level,this.total_price=Number(b.details.total),this.booking_id=b.details.booking_id,this.payment_method=b.details.payment_type,this.payment_status=b.details.payment_status,this.booking_date=b.details.date,this.booking_time=b.details.time,this.payment_method.toLowerCase()!="c
1ash"&&this.payment_method.toLowerCase()!="cod"?this.payment_status.toLowerCase()=="pending"?this.booking_payment_retry_show=!0:this.booking_payment_retry_show=!1:this.booking_payment_retry_show=!1,b.details.message!==""&&(this.booking_msg=b.details.message,this.reschedule_booking_msg=b.details.message),(b.details.booking_is_cancel=="yes"||b.details.booking_status=="booking_cancel_request_by_customer")&&(this.booking_is_cancel=!0),b.details.booking_reschedule_possible=="no"&&(this.booking_reschedule_possible=!1,this.booking_reschedule_possible_msg=b.details.booking_reschedule_possible_msg),this.booking_cancel_msg=b.details.booking_cancel_msg,this.booking_cancel_req_date=b.details.booking_cancel_req_date,this.booking_occasion=b.details.occasion,this.no_guest=parseInt(b.details.guest),this.reschedule_booking_no_guest=parseInt(b.details.guest),this.cust_name=b.details.customer.customer_name,this.cust_email=b.details.customer.customer_email,this.cust_postcode=b.details.customer.customer_postcode,this.reschedule_booking_date.year=parseInt(a[2]),this.reschedule_booking_date.month=parseInt(a[1]),this.reschedule_booking_date.day=parseInt(a[0]),n=b.details.time.split(":"),d=parseInt(n[0]),O=n[1].slice(-2),y=n[1].split(O)[0],this.reschedule_booking_time=d+":"+y+" "+O.toLowerCase()):(this.router.navigate(["/not-found"]),this.customEvent.opencommonpopup("Booking Date Expired","Your booking date was "+b.details.date+". You can't reschedule or cancel this booking,","normal"))):(this.router.navigate(["/not-found"]),this.customEvent.opencommonpopup(b.status,b.status,"normal"))})}retryPayment(){this.reschedule_booking_payload.paymode=="cod"?window.location.href=this.base_url+"booking-complete?v="+this.bkey:window.location.href=this.payment_url+"pay?key="+this.bkey+"_booking&ptype="+this.payment_method}hideShowCancelBooking(){this.showdDivCancel?this.showdDivCancel=!1:(this.showdDivReschedule&&(this.showdDivReschedule=!1),this.showdDivCancel=!0)}hideShowRescheduleBooking(){this.booking_reschedule_possible?this.showdDivReschedule?this.showdDivReschedule=!1:(this.showdDivCancel&&(this.showdDivCancel=!1),this.loadBusinessDetails()):(this.booking_reschedule_possible_err_show=!0,this.customEvent.opencommonpopup("Unauthorised",this.booking_reschedule_possible_msg,"normal"))}onBookingDateSelect(e){let a=!1;if(!e)a=!0;else{let n=e.getFullYear(),d=(e.getMonth()+1).toString().padStart(2,"0"),y=e.getDate().toString().padStart(2,"0");this.reschedule_booking_date={day:Number(y),month:Number(d),year:n},this.bookingDateDisplay=`${n}-${d}-${y}`,a=!0}if(a){this.reschedule_booking_date={day:this.reschedule_booking_date.day,month:this.reschedule_booking_date.month,year:this.reschedule_booking_date.year},this.reschedule_booking_date_fetch=new Date(this.reschedule_booking_date.year,this.reschedule_booking_date.month-1,this.reschedule_booking_date.day),$(".owl-carousel").owlCarousel("destroy");let n={business_id:this.bs_id,date:this.reschedule_booking_date.year+"-"+this.reschedule_booking_date.month+"-"+this.reschedule_booking_date.day};this.restProvider.postdataapi(n,"business/booking_time").subscribe(d=>{if(d.responsecode=="200"){this.every_booking_service_charge_type=d.every_booking_service_charge_type,this.every_booking_service_charge_price=Number(d.every_booking_service_charge_price),this.every_booking_price=d.every_booking_price,this.every_person_price=d.every_person_price,this.max_person=Number(d.max_person),this.min_person=Number(d.min_person),d.reservation_notes!=null&&d.reservation_notes!=null&&(this.special_booking_note=d.reservation_notes);let y=0,O=0;for(this.select_guest_arr=[],y=this.min_person;y<=this.max_person;y++,O++)this.select_guest_arr[O]={value:y};this.timesloarray=[],d.booking_time_slot!=null&&d.booking_time_slot!=null&&d.booking_time_slot.slots!=null&&d.booking_time_slot.slots!=null&&d.booking_time_slot.slots.length>0?(d.booking_time_slot.slots.map(G=>{this.timesloarray.push(G.time)}),setTimeout(()=>{this.loadowl()},500)):this.createbookingslot(d.info.resturent_timeing),d.booking_time_slot!=null&&d.booking_time_slot!=null&&d.booking_time_slot.slot_id!=null&&d.booking_time_slot.slot_id!=null&&Number(d.booking_time_slot.slot_id)>0&&(this.reschedule_booking_payload.time_slot_id=Number(d.booking_time_slot.slot_id)),d.guest_number_over_pay!=null&&d.guest_number_over_pay!=null&&d.guest_number_over_pay!=""&&Number(d.guest_number_over_pay)>0?this.booking_payment_accept_over_guest_number=d.guest_number_over_pay:this.booking_payment_accept_over_guest_number=0,this.recalculateBookingPrice()}else this.reschedule_booking_date="",this.customEvent.opencommonpopup("Error",d.status,"normal"),this.timesloarray=[]})}}
1loadBusinessDetails(){let e=0,a=0;this.formbody.zipcode="b233aa",this.formbody.slug=this.slug,this.restProvider.postdataapi(this.formbody,"business/details").subscribe(n=>{if(n.responsecode=="200"){this.max_person=parseInt(n.booking.max_person),this.min_person=parseInt(n.booking.min_person),this.booking_payment_accept_over_guest_number=Number(n.guest_number_over_pay),this.all_payment_methods=n.info.payment_permission[0].booking,console.log(this.all_payment_methods),this.reschedule_booking_guest_err="The restaurant is now accepting minimum "+this.min_person+(this.min_person>1?" guests":" guest")+" & maximum "+this.max_person+(this.max_person>1?" guests":" guest")+". You have selected "+this.reschedule_booking_no_guest+(this.reschedule_booking_no_guest>1?" guests":" guest")+".",(this.reschedule_booking_no_guest<this.min_person||this.reschedule_booking_no_guest>this.max_person)&&(this.reschedule_booking_guest_err_show=!0),this.bs_id=n.info.business_id;let d="yes";n.booking.status=="yes"?(this.customEvent.setBookingBtn("yes"),this.onBookingDateSelect(null),this.showdDivReschedule=!0):(d="no",this.customEvent.setBookingBtn("no"),this.customEvent.opencommonpopup("Business Close",n.info.business_name+" currently not taking any booking. Please contact "+n.info.business_name+" ("+n.info.booking_number+")","normal")),this.getBusinessDetail=!1,this.storage.setLocalstorage("isShowBookingBtn",d),this.storage.setLocalstorage("business_details",n.info),setTimeout(()=>{let y=new Date;this.customEvent.setRefreshHeaderFooter(String(y.getTime()))},400)}})}createbookingslot(e){let a=[],n=0;for(let d of e){let y=d[0],O=y.slice(0,-3);a.push(this.toggle24hr(O,0));let G=d[1],b="15";for(;new Date("1/1/1999 "+G)>new Date("1/1/1999 "+y);){y=this.addMinutes(y,b);let Ot=y.slice(0,-3);a.push(this.toggle24hr(Ot,0));let Pt=Math.abs(new Date("1/1/1999 "+G)-new Date("1/1/1999 "+y));if(Math.floor(Pt/1e3/60)<15)break}this.timesloarray=a,a.slice(-1)}n=a.indexOf(this.reschedule_booking_time)-1,n<1&&(n=1),setTimeout(()=>{this.loadowl(n)},500)}addMinutes(e,a){let n=new Date(new Date("01/01/2015 "+e).getTime()+a*6e4);return(n.getHours().toString().length==1?"0"+n.getHours():n.getHours())+":"+(n.getMinutes().toString().length==1?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds().toString().length==1?"0"+n.getSeconds():n.getSeconds())}toggle24hr(e,a){a==null&&(a=isNaN(e.replace(":","")));var n=e.toString().toLowerCase().indexOf("pm")>-1;return e=e.toString().toLowerCase().replace(/[ap]m/,"").split(":"),e[0]=Number(e[0]),a?(n&&e[0]!=12?e[0]+=12:!n&&e[0]==12&&(e[0]="00"),String(e[0]).length==1&&(e[0]="0"+e[0])):(n=e[0]>=12,e[0]?n&&e[0]!=12&&(e[0]-=12):e[0]=12),a?e.join(":"):e.join(":")+(n?" pm":" am")}loadowl(e=-1){e>=0?$(".owl-carousel").owlCarousel({margin:10,startPosition:e,loop:0,nav:!0,navText:["<div class='nav-btn prev-slide'><i class='las la-angle-double-left'></i></div>","<div class='nav-btn next-slide'><i class='las la-angle-double-right'></i></div>"],rewind:!0,responsive:{600:{items:3},1e3:{items:5}}}):$(".owl-carousel").owlCarousel({margin:10,loop:0,nav:!0,navText:["<div class='nav-btn prev-slide'><i class='las la-angle-double-left'></i></div>","<div class='nav-btn next-slide'><i class='las la-angle-double-right'></i></div>"],rewind:!0,responsive:{600:{items:3},1e3:{items:5}}})}ConfirmRescheduleBooking(){if(this.booking_is_cancel)this.customEvent.opencommonpopup("Booking already canceled","This booking already canceled.","normal");else if(this.reschedule_booking_guest_err_show)this.customEvent.opencommonpopup("Select Guest Number",this.reschedule_booking_guest_err,"normal");else if(this.reschedule_booking_agree_checkbox!=!0)this.reschedule_booking_agree_err="yes",this.customEvent.opencommonpopup("Accept T&C","Please agree our terms and condition","normal");else{this.reschedule_booking_agree_err="no",this.showdloader=!0;let e="Declined",a=this.reschedule_booking_date.year+"-"+(this.reschedule_booking_date.month<=9?"0"+this.reschedule_booking_date.month:this.reschedule_booking_date.month)+"-"+(this.reschedule_booking_date.day<=9?"0"+this.reschedule_booking_date.day:this.reschedule_booking_date.day);if(this.reschedule_booking_payload.date=a,this.reschedule_booking_payload.time=this.reschedule_booking_time,this.reschedule_booking_payload.guest=String(this.reschedule_booking_no_guest),this.reschedule_booking_payload.message=this.reschedule_booking_msg,this.reschedule_booking_payload.total_guest_price=this.total_booking_price,this.reschedule_booking_payload.paymode=this.reschedule_booking_paymode,this.reschedule_booking_payload.business_id=Number(this.bs_id),this.bkey!=""&&a!=""&&a!="0-00-00"&&this.reschedule_booking_time!=""&&this.reschedule_booking_no_guest!=0)if(this.total_booking_price==0&&this.total_price==0){this.reschedule_booking_payload.paymode="cod";let n={booking_key:this.bkey,reschedule_booking_date:a,reschedule_booking_time:this.reschedule_booking_time,reschedule_booking_no_guest:this.reschedule_booking_no_guest,reschedule_booking_msg:this.reschedule_booking_msg};this.restProvider.postdataapi(n,"business/submit_reschedule_booking").subscribe(d=>{this.showdloader=!1,d.responsecode=="200"&&(e="Success",this.getBookingDetails(),this.showdDivReschedule&&(this.showdDivReschedule=!1)),setTimeout(()=>{this.showdloader=!1},5500),this.customEvent.opencommonpopup(e,d.status,"normal")})}else if(this.total_booking_price==0&&(this.reschedule_booking_payload.paymode="cod",this.reschedule_booking_paymode="cod"),this.reschedule_booking_paymode!=""){let n=this.reschedule_booking_payload.date;
1this.bookingPayModeErr=!1,this.restProvider.postdataapi(this.reschedule_booking_payload,"business/booking").subscribe(d=>{d.responsecode=="200"?this.reschedule_booking_payload.paymode=="cod"?window.location.href=this.base_url+"booking-complete?v="+d.id:window.location.href=this.payment_url+"pay?key="+d.id+"_booking&ptype="+this.reschedule_booking_payload.paymode:(this.customEvent.opencommonpopup("Error",d.status,"normal"),this.reschedule_booking_payload.date=n),setTimeout(()=>{this.showdloader=!1},5500)})}else this.customEvent.opencommonpopup("Payment Method","Please select a payment method","normal"),this.bookingPayModeErr=!0;else this.customEvent.opencommonpopup("Invalid Data","Please enter valid data","normal")}}ConfirmCancelBooking(){if(this.booking_is_cancel)this.customEvent.opencommonpopup("Booking already canceled","This booking already canceled.","normal");else if(this.cancel_booking_msg!==""){this.showdloader=!0;let e="Declined",a={booking_key:this.bkey,booking_cancel_reason:this.cancel_booking_msg};this.restProvider.postdataapi(a,"business/submit_cancel_booking").subscribe(n=>{this.showdloader=!1,n.responsecode=="200"&&(e="Success",this.getBookingDetails(),this.showdDivCancel&&(this.showdDivCancel=!1)),this.customEvent.opencommonpopup(e,n.status,"normal")})}else this.customEvent.opencommonpopup("Reason","Please enter reason to cancel this booking.","normal")}checkGuests(){this.reschedule_booking_no_guest>=this.min_person&&this.reschedule_booking_no_guest<=this.max_person?this.reschedule_booking_guest_err_show=!1:this.reschedule_booking_guest_err_show=!0,this.recalculateBookingPrice()}static{this.\u0275fac=function(a){return new(a||t)(x(Z),x(j),x(ce),x(H),x(te),x(R),x(dt))}}static{this.\u0275cmp=A({type:t,selectors:[["app-booking-cancel"]],standalone:!1,decls:6,vars:2,consts:[["bookingCancel",""],["bookingPaymentRetry",""],["picker",""],["booking_guest","ngModel"],["onlyRescheduleText",""],["booking_time","ngModel"],["paidTdBookingGuest",""],["fixedServiceCharge",""],[1,"Successfull-page","total-listing-section"],[4,"ngIf"],["class","container",4,"ngIf"],["loadername","listing-details-checkout"],[1,"container"],[1,"row"],[1,"col-md-6"],[1,"box"],[1,"recommendbox"],[1,"col-lg-2"],[1,"reclgimg"],[3,"src"],[1,"col-lg-10"],[3,"href"],[1,"details","d-flex"],[1,"ordername"],[1,"ordername","last"],["class","box mt-3",4,"ngIf","ngIfElse"],[1,"yourorder"],[1,"summary1"],[1,"col"],[1,"ordername","flex"],[1,"tt"],[1,"box","mt-3"],["class","d-flex align-items-center justify-content-between flex-wrap",4,"ngIf","ngIfElse"],["class","mb-0 mt-4 text-right",4,"ngIf"],["class","paydtl mt-3",4,"ngIf"],["class","paydtl",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between","flex-wrap"],[1,"d-flex","justify-content-start","align-items-center"],[1,"btn","btn-prime","mr-3",3,"click"],[1,"btn","btn-prime",3,"click"],[1,"mb-0","mt-4","text-right"],[1,"paydtl","mt-3"],[1,"mt-3"],[1,"myform"],[1,"fldarea"],["type","text","name","cancel_booking_msg",3,"ngModelChange","ngModel"],[1,"d-flex","mb-2"],[1,"btn","btn-green","w","ml-2",3,"click"],[1,"d-flex","justify-content-end"],[1,"paydtl"],[1,"col-8"],["appearance","outline",1,"w-100"],["matInput","","name","date",3,"ngModelChange","click","dateChange","matDatepicker","ngModel","min"],["matIconSuffix","",3,"for"],[1,"col-4"],["name","reschedule_booking_no_guest","required","",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"fldarea","w-100","pl-3","pr-3"],["class","mb-0 mt-2 text-right",4,"ngIf"],["class","fldarea mt-3 mb-3 w-100 pl-1 pr-1",4,"ngIf"],["rows","3","name","book_msg",3,"ngModelChange","ngModel"],["class","fldarea",4,"ngIf"],["class","paydtl",3,"red-boder-active",4,"ngIf"],[1,""],["type","checkbox","name","booking_agree","value","agree","required","",1,"booking-agree-checkbox",3,"ngModelChange","ngModel"],["routerLink","/information/terms-and-condition","rel","nofollow","target","_blank"],["routerLink","/information/privacy-policy","rel","nofollow","target","_blank"],["class","alert alert-danger alert-booking-term-condition-check",4,"ngIf"],[1,"d-flex","mt-2","mb-2","button-cancel"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"mb-0","mt-2","text-right"],[1,"text-red"],[1,"fldarea","mt-3","mb-3","w-100","pl-1","pr-1"],["id","select-time","name","reschedule_booking_time","placeholder","Preferred Time",1,"form-select",3,"ngModelChange","ngModel"],["value",""],[4,"ngFor","ngForOf"],["rows","3","name","book_msg","disabled",""],[1,"BookingCartMode"],[1,"bookingInfo"],["class","innerInfo",4,"ngIf"],["class","bookingInfo",4,"ngIf"],[1,"innerInfo"],[1,"delivery-collection"],[1,"tab-slider--container"],[1,"tab-slider--body"],[1,"tab-first-div","second-content"],[1,"booking-side-panel"],[1,"total"],["colspan","3"],[1,"checkout-all"],[1,"innerInfo","mt-2"],[1,"checkout","bottom"],[1,"switch-toggle","left","mt-3"],["class","button",4,"ngFor","ngForOf"],["class","error-txt",4,"ngIf"],[1,"button"],["type","radio","name","dmode",3,"ngModelChange","change","id","value","ngModel"],[1,"btn","btn-default",3,"for"],[1,"total-div","mt-2"],[1,"left-div"],["iconname","paypal",4,"ngIf"],["iconname","cash",4,"ngIf"],["iconname","card",4,"ngIf"],[1,"right-div"],["iconname","paypal"],["iconname","cash"],["iconname","card"],[1,"error-txt"],[1,"alert","alert-danger","alert-booking-term-condition-check"]],template:function(a,n){a&1&&(p(0,"app-header"),i(1,"main")(2,"div",8),m(3,to,2,0,"ng-container",9)(4,Ao,102,21,"div",10),o()(),p(5,"app-footer")),a&2&&(s(3),_("ngIf",n.showdloader),s(),_("ngIf",!n.showdloader))},dependencies:[Q,L,Se,q,z,Ve,Ae,pe,Te,De,oe,it,Pe,nt,ae,_e,Be,ot,me,Ee,mt,pt,gt,_t,ct,vt,Ke,le,Je],styles:[".BookingCartMode[_ngcontent-%COMP%]{margin-bottom:10px}.BookingCartMode[_ngcontent-%COMP%]   .bookingInfo[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #dee2e6}.alert-booking-term-condition-check[_ngcontent-%COMP%]{margin:5px 0 10px;background:#fff2f1;font-weight:700;font-size:12px;color:#eb2d4e;border:1px dashed #eb2d4e;padding:3px 8px}@media (max-width: 992px){.paydtl[_ngcontent-%COMP%]{margin-top:10px}}.total-listing-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--color-c1);font-size:1.6rem}.total-listing-section[_ngcontent-%COMP%]   .ordername[_ngcontent-%COMP%]{margin:0 10px 0 0;font-size:15px;text-transform:capitalize}.total-listing-section[_ngcontent-%COMP%]   .ordername[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{line-height:20px}.total-listing-section[_ngcontent-%COMP%]   .yourorder[_ngcontent-%COMP%]{border-bottom:1px solid var(--all);margin-bottom:10px}.total-listing-section[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-bottom:0}.box[_ngcontent-%COMP%]   .paydtl[_ngcontent-%COMP%]{margin-top:30px}.box[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], .fldarea.popcal[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;border:1px solid var(--gray1);border-radius:10px}.fldarea.custom-checkbox2[_ngcontent-%COMP%]{margin:10px 0 0 17px}.fldarea.custom-checkbox2[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;width:90%;height:100%}.fldarea.custom-checkbox2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:5px 10px;background-color:var(--color-light);border:1px solid var(--color-c1);border-radius:10px}.fldarea.custom-checkbox2[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{background-color:var(--color-c1);color:var(--color-light)}.total-listing-section[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:1.1rem;cursor:pointer}.nav-btn.prev-slide[_ngcontent-%COMP%]{left:2!important}#respMenu[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:auto}.fldarea[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;margin-bottom:20px;border:1px solid var(--gray1);border-radius:10px}.btn.btn-green[_ngcontent-%COMP%]{background-color:var(--green);border:1px solid var(--green)}.btn.btn-green[_ngcontent-%COMP%]:hover{background-color:var(--color-light);color:var(--green);border:1px solid var(--green)}
1.checkout-all[_ngcontent-%COMP%]   .checkout[_ngcontent-%COMP%]   .switch-toggle[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{width:50%;float:left;margin-bottom:10px}table.booking-side-panel[_ngcontent-%COMP%]{width:100%}.checkout.bottom[_ngcontent-%COMP%]{padding-bottom:30px}.Successfull-page.total-listing-section[_ngcontent-%COMP%]{padding-top:0}.total-listing-section[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{padding:7px}.btn.btn-prime[_ngcontent-%COMP%]{margin:0 10px 0 0}.checkout-all[_ngcontent-%COMP%]   .checkout[_ngcontent-%COMP%]   .switch-toggle[_ngcontent-%COMP%]{display:block;overflow:hidden}@media only screen and (max-width: 896px){.booking-agree-checkbox[_ngcontent-%COMP%]{width:auto!important}.details[_ngcontent-%COMP%]{justify-content:center}.box[_ngcontent-%COMP%]{margin-bottom:20px}.paydtl[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:left}.switch-toggle.left[_ngcontent-%COMP%]{display:block}a.btn.btn-prime[_ngcontent-%COMP%]{margin-left:0;margin-right:10px}.button[_ngcontent-%COMP%]{margin-bottom:10px}.fldarea[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-bottom:0}.checkout-all[_ngcontent-%COMP%]   .checkout[_ngcontent-%COMP%]   .switch-toggle[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-bottom:10px}.checkout-all[_ngcontent-%COMP%]{padding-bottom:0}.myform[_ngcontent-%COMP%]{margin-bottom:10px}.total-listing-section[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{padding:7px}.button-cancel[_ngcontent-%COMP%]{justify-content:center}}.date-field[_ngcontent-%COMP%]{width:100%}.date-field[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{height:40px}.date-field[_ngcontent-%COMP%]   .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:8px 0!important;min-height:40px}.date-field[_ngcontent-%COMP%]   input.mat-mdc-input-element[_ngcontent-%COMP%]{height:24px;line-height:24px;font-size:14px}.date-field[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{height:40px;width:40px}.mdc-text-field--outlined[_ngcontent-%COMP%]   .mat-mdc-form-field-infix[_ngcontent-%COMP%], .mdc-text-field--no-label[_ngcontent-%COMP%]   .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:var(--mat-form-field-container-vertical-padding, 1px);padding-bottom:var(--mat-form-field-container-vertical-padding, 1px)}mat-form-field[_ngcontent-%COMP%]{margin-right:12px}"]})}}return t})();var Fo=[{path:"details",component:yt,data:{animation:"login"}},{path:"my-order",component:kt,data:{animation:"home"}},{path:"my-order-details/:okey/:seskey/:type",component:Ct,data:{animation:"login"}},{path:"my-booking",component:wt,data:{animation:"login"}},{path:"my-booking-details/:bkey",component:St,data:{animation:"login"}},{path:"address-book",component:Mt,data:{animation:"login"}},{path:"booking-revision/:bkey",component:Et}],It=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=ke({type:t})}static{this.\u0275inj=ye({imports:[Re.forChild(Fo),Re]})}}return t})();var qa=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=ke({type:t})}static{this.\u0275inj=ye({imports:[et,It,bt,rt,st,lt,ut,xt,ht,ft]})}}return t})();export{qa as ProfileModule};

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.