PageSourceSearch

https://stxcloud.com/chunk-O7KUIQEJ.js

js stxcloud.com collected 2026-10-05 02:19:34 UTC 170,459 bytes, 34 lines download raw bytes

1import{d as zt,f as jt,g as qt}from"./chunk-FITHSAKU.js";import"./chunk-XKLGBZBL.js";import"./chunk-CJPLD6EO.js";import{a as V,b as Rt}from"./chunk-SIXBTUEX.js";import{a as Wt,b as $t,c as Gt}from"./chunk-7FAQ4UKW.js";import"./chunk-GVZPOEAW.js";import{$a as d,$c as At,Ad as Z,Bc as bt,Cb as mt,Db as K,Eb as j,Ec as yt,Fb as _t,Ga as s,Hb as ht,Ia as p,Ib as C,Ic as St,Ka as E,Kb as k,Kc as wt,La as M,Lb as B,Ma as O,Mb as it,Na as D,Oa as a,Pa as o,Pc as Pt,Q as J,Qa as f,Qc as It,Rc as Et,Tc as Mt,Ua as Q,V as v,Va as Y,W as b,Wc as Ot,Xa as w,Za as g,Zc as Dt,bc as ut,cd as Lt,db as st,eb as R,ed as Nt,fb as W,fd as Ft,gb as pt,hc as Ct,hd as nt,jc as xt,kb as U,kd as Bt,lb as r,lc as kt,ma as ct,mb as S,mc as ft,nb as u,nc as gt,ob as I,od as ot,pa as n,pb as A,rd as Vt,tb as L,ub as N,uc as Tt,va as q,vb as F,wb as z,xa as dt,xb as tt,ya as H,yb as et,yc as vt}from"./chunk-QXLMLGHR.js";var Ht=["recieptModal"],Qt=["smileModal"],Yt=["productModal"],Kt=["serviceModal"],Zt=["otherModal"],Xt=["tipModal"],te=["editTicketModal"],ee=["paymentModal"],ie=["myModal"],ne=["editTipModal"],oe=["voidTicketModal"],ae=["emailGiftModal"],le=["striketipModal"],re=(e,c)=>({"bg-before":e,"bg-before1":c}),at=e=>({disabled:e}),lt=e=>[e],ce=()=>({backdrop:"static",keyboard:!1}),de=()=>["/checkout"],se=()=>["/checkout/refundnewpage"],pe=(e,c,t,l)=>({apptId:e,clientId:c,apptDataName:t,apptDataDate:l}),me=e=>({actionMethod:"fTicket",apptId:e});function _e(e,c){if(e&1&&(a(0,"div",16)(1,"label",178),r(2," Group Ticket "),a(3,"span",179),r(4),o(),r(5),o()()),e&2){let t=d();n(3),D("routerLink",j(3,lt,"/groupcompletedticket/"+t.apptData.GroupId)),n(),u("#",t.groupId),n(),u(" | Ticket #",t.ticketNumber," ")}}function he(e,c){if(e&1){let t=w();a(0,"div",17)(1,"img",180),g("click",function(){v(t);let i=d();return b(i.openLink(i.apptId))}),o(),r(2,"\xA0\xA0"),a(3,"span",181),r(4),o()()}if(e&2){let t=d();n(4),I("",t.invoiceStatus," #",t.ticketNumber)}}function ue(e,c){if(e&1&&(a(0,"div",16)(1,"label",178),r(2),o()()),e&2){let t=d();n(2),u("Ticket #",t.ticketNumber)}}function Ce(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d(3);n(),A("Ticket #",t.ticketNumber," ",t.LastModifiedDate[0]," ",t.LastModifiedDate[1])}}function xe(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d(3);n(),A("Ticket #",t.ticketNumber," ",t.lastmofdate[0]," ",t.lastmofdate[1])}}function ke(e,c){if(e&1&&(a(0,"tr")(1,"td"),r(2),C(3,"number"),o()()),e&2){let t=c.$implicit;n(2),I("",t.paymentTypeName==="Gift Redeem"?t.Gift_Number__c:t.paymentTypeName," $",k(3,2,t.Amount_Paid__c,"2.2-2")," ")}}function fe(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(3);n(),u("$",k(2,1,t.prepaidTax+t.subTotal,"2.2-2"))}}function ge(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(3);n(),u(" $",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function Te(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(3);n(),u(" $",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function ve(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(3);n(),u(" $",k(2,1,t.prepaidTax,"2.2-2"))}}function be(e,c){if(e&1&&(a(0,"option"),r(1),o()),e&2){let t=c.$implicit;n(),u(" ",t.visitType)}}function ye(e,c){if(e&1){let t=w();a(0,"div",183)(1,"table",185)(2,"tr")(3,"td",186),r(4,"TICKET DETAILS"),o()(),a(5,"tr")(6,"td",187),s(7,Ce,2,3,"span"),s(8,xe,2,3,"span"),o()(),a(9,"tr")(10,"td",188),r(11),C(12,"currency"),o()(),M(13,ke,4,5,"tr",null,E),a(15,"tr")(16,"td",187),r(17,"Payment Total "),s(18,fe,3,4,"span"),s(19,ge,3,4,"span"),s(20,Te,3,4,"span"),s(21,ve,3,4,"span"),o()(),a(22,"tr")(23,"label",189),r(24),C(25,"number"),o()(),a(26,"tr")(27,"label",190),r(28,"Visit Type "),o(),r(29,"\xA0"),a(30,"select",191),F("ngModelChange",function(i){v(t);let m=d(2);return N(m.visitType,i)||(m.visitType=i),b(i)}),g("change",function(){v(t);let i=d(2);return b(i.changeVisitType())}),f(31,"option",192),M(32,be,2,1,"option",null,E),r(34,"px "),o()()()()}if(e&2){let t=d(2);n(7),p(t.LastModifiedDate[0]?7:-1),n(),p(t.lastmofdate&&t.LastModifiedDate[0]==""?8:-1),n(3),u(" Ticket Total: ",B(12,11,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"USD","symbol-narrow")," "),n(2),O(t.ticketPaymentList),n(5),p(t.subTotal&&!t.includedTicketsTotal?18:-1),n(),p(t.subTotal&&t.includedTicketsTotal?19:-1),n(),p(!t.subTotal&&t.includedTicketsTotal?20:-1),n(),p(!t.subTotal&&t.prepaidTax?21:-1),n(3),u("Change Back $",k(25,15,t.changeBack,"2.2-2")),n(6),D("disabled",t.voidTckt),L("ngModel",t.visitType),n(),D("selected",!t.visitType),n(),O(t.visitTypes)}}function Se(e,c){if(e&1&&(a(0,"label",196),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.workerName," - ",t.tipOption," ")}}function we(e,c){if(e&1&&(a(0,"label",197),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.workerName," - ",t.tipOption," ")}}function Pe(e,c){if(e&1&&(a(0,"label",198),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.workerName," - ",t.tipOption," ")}}function Ie(e,c){e&1&&(a(0,"label",199),r(1,"NO WORKER "),o())}function Ee(e,c){if(e&1&&(a(0,"span",205),r(1),C(2,"number"),o()),e&2){let t=d().$implicit;n(),u(" ($",k(2,1,t.Price__c,"2.2-2"),")")}}function Me(e,c){if(e&1&&(a(0,"div"),s(1,Ee,3,4,"span",205),o()),e&2){let t=c.$implicit,l=d(2).$implicit;n(),p(t.workerId===l.workerId?1:-1)}}function Oe(e,c){if(e&1&&(a(0,"div",200),M(1,Me,2,1,"div",null,E),o()),e&2){let t=d(4);n(),O(t.tipArrTicketServ)}}function De(e,c){if(e&1){let t=w();a(0,"div",202)(1,"input",206),g("ngModelChange",function(i){v(t);let m=d().$implicit;return b(m.tipAmount=i)})("keypress",function(i){v(t);let m=d().$index,h=d(3);return b(h.validateNum(i,m))})("blur",function(){v(t);let i=d(),m=i.$implicit,h=i.$index,x=d(3);
1return b(x.tipPriceOnClick(m.tipAmount,h))}),o()()}if(e&2){let t=d().$implicit,l=d(3);n(),D("value",z(t.tipAmount))("disabled",l.voidTckt)("ngModel",t.tipAmount)}}function Ae(e,c){if(e&1&&(a(0,"div",203),r(1),o()),e&2){let t=d().$implicit;n(),u(" $",t.tipAmount," ")}}function Le(e,c){e&1&&f(0,"img",207)}function Ne(e,c){if(e&1&&(a(0,"div",204),s(1,Le,1,0,"img",207),o()),e&2){let t=d().$implicit;n(),p(t.tipOption==="Tippy Tip"?1:-1)}}function Fe(e,c){if(e&1){let t=w();a(0,"div",88)(1,"div",193),s(2,Se,2,2,"label",196),s(3,we,2,2,"label",197),s(4,Pe,2,2,"label",198),s(5,Ie,2,0,"label",199),s(6,Oe,3,0,"div",200),a(7,"input",201),F("ngModelChange",function(i){let m=v(t).$implicit;return N(m.workerName,i)||(m.workerName=i),b(i)}),o()(),s(8,De,2,4,"div",202),s(9,Ae,2,1,"div",203),s(10,Ne,2,1,"div",204),o()}if(e&2){let t=c.$implicit,l=d(3);n(2),p(t.workerName&&t.tipOption==="Tippy Tip"?2:-1),n(),p(t.workerName&&t.tipOption!=="Tippy Tip"&&!t.tipAddFromCompletedTckt?3:-1),n(),p(t.workerName&&t.tipOption!=="Tippy Tip"&&t.tipAddFromCompletedTckt?4:-1),n(),p(t.workerName?-1:5),n(),p(l.tipArrTicketServ&&l.tipArrTicketServ.length>0?6:-1),n(),L("ngModel",t.workerName),n(),p(l.tippyTicket?-1:8),n(),p(l.tippyTicket?9:-1),n(),p(l.tippyTicket?10:-1)}}function Be(e,c){if(e&1&&(a(0,"option",98),r(1),o()),e&2){let t=c.$implicit;D("value",et("",t.workerId,"$",t.workerName)),n(),u(" ",t.workerName)}}function Ve(e,c){if(e&1){let t=w();a(0,"div",88)(1,"div",208)(2,"label",186),r(3,"Add Worker"),o()(),a(4,"div",209)(5,"select",210),F("ngModelChange",function(i){v(t);let m=d(3);return N(m.selWor,i)||(m.selWor=i),b(i)}),g("change",function(i){v(t);let m=d(3);return b(m.addWorkerTip(i))}),a(6,"option",145),r(7,"Select Worker"),o(),M(8,Be,2,4,"option",98,E),o()()()}if(e&2){let t=d(3);n(5),L("ngModel",t.selWor),D("disabled",t.showWorkerList),n(3),O(t.activeWorkerLists)}}function Re(e,c){if(e&1){let t=w();a(0,"button",211),g("click",function(){v(t);let i=d(3);return b(i.tipPopup())}),r(1,"Add Tip Payment"),o()}}function We(e,c){if(e&1&&(a(0,"table",185)(1,"tbody")(2,"tr")(3,"td",186),r(4,"TIP ALLOCATION"),o()(),a(5,"tr")(6,"div",62)(7,"div",193)(8,"label",190),r(9,"Total Tip Amount"),o()(),a(10,"div",194)(11,"label",186),r(12),C(13,"currency"),o()()()(),a(14,"tr"),M(15,Fe,11,9,"div",88,E),o(),a(17,"tr"),s(18,Ve,10,2,"div",88),o(),a(19,"tr"),s(20,Re,2,0,"button",195),o()()()),e&2){let t=d(2);n(12),S(B(13,3,t.tipTotal,"USD","symbol-narrow")),n(3),O(t.tipsArray),n(3),p(t.tippyTicket?-1:18),n(2),p(!t.voidTckt&&t.showVoidButton&&!t.tippyTicket?20:-1)}}function $e(e,c){if(e&1&&(a(0,"div",18),f(1,"div",182),s(2,ye,35,18,"div",183),a(3,"div",184),s(4,We,21,7,"table",185),o()()),e&2){let t=d();n(2),p(t.includeTcktmsg?-1:2),n(2),p(t.includeTcktmsg?-1:4)}}function Ge(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d(2);n(),A("Ticket #",t.ticketNumber," ",t.LastModifiedDate[0]," ",t.LastModifiedDate[1])}}function ze(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d(2);n(),A("Ticket #",t.ticketNumber," ",t.lastmofdate[0]," ",t.lastmofdate[1])}}function je(e,c){if(e&1&&(a(0,"tr")(1,"td"),r(2),C(3,"number"),o()()),e&2){let t=c.$implicit;n(2),I("",t.paymentTypeName==="Gift Redeem"?t.Gift_Number__c:t.paymentTypeName," $",k(3,2,t.Amount_Paid__c,"2.2-2")," ")}}function qe(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(2);n(),u("$",k(2,1,t.prepaidTax+t.subTotal,"2.2-2"))}}function Ue(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(2);n(),u(" $",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function Je(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(2);n(),u(" $",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function He(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"number"),o()),e&2){let t=d(2);n(),u(" $",k(2,1,t.prepaidTax,"2.2-2"))}}function Qe(e,c){if(e&1&&(a(0,"option"),r(1),o()),e&2){let t=c.$implicit;n(),u(" ",t.visitType)}}function Ye(e,c){if(e&1&&(a(0,"tr")(1,"label",213),r(2),o()()),e&2){let t=d(2);n(2),u(" ",t.includeTcktmsg," ")}}function Ke(e,c){if(e&1){let t=w();a(0,"div",19)(1,"table",185)(2,"tr")(3,"td",186),r(4,"TICKET DETAILS"),o()(),a(5,"tr")(6,"td",187),s(7,Ge,2,3,"span"),s(8,ze,2,3,"span"),o()(),a(9,"tr")(10,"td",188),r(11),C(12,"currency"),o()(),M(13,je,4,5,"tr",null,E),a(15,"tr")(16,"td",187),r(17,"Payment Total "),s(18,qe,3,4,"span"),s(19,Ue,3,4,"span"),s(20,Je,3,4,"span"),s(21,He,3,4,"span"),o()(),a(22,"tr")(23,"label",189),r(24),C(25,"number"),o()(),a(26,"tr")(27,"label",190),r(28,"Visit Type "),o(),r(29,"\xA0"),a(30,"select",212),F("ngModelChange",function(i){v(t);let m=d();return N(m.visitType,i)||(m.visitType=i),b(i)}),g("change",function(){v(t);let i=d();return b(i.changeVisitType())}),f(31,"option",192),M(32,Qe,2,1,"option",null,E),r(34,"px "),o()(),s(35,Ye,3,1,"tr"),o()()}if(e&2){let t=d();n(7),p(t.LastModifiedDate[0]?7:-1),n(),p(t.lastmofdate&&t.LastModifiedDate[0]==""?8:-1),n(3),u(" Ticket Total: ",B(12,12,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"USD","symbol-narrow")," "),n(2),O(t.ticketPaymentList),n(5),p(t.subTotal&&!t.includedTicketsTotal?18:-1),n(),p(t.subTotal&&t.includedTicketsTotal?19:-1),n(),p(!t.subTotal&&t.includedTicketsTotal?20:-1),n(),p(!t.subTotal&&t.prepaidTax?21:-1),n(3),u("Change Back $",k(25,16,t.changeBack,"2.2-2")),n(6),D("disabled",t.voidTckt),L("ngModel",t.visitType),n(),D("selected",!t.visitType),n(),O(t.visitTypes),n(3),p(t.includeTcktmsg?35:-1)}}function Ze(e,c){if(e&1&&(a(0,"div",17)(1,"span"),r(2),o()()),e&2){let t=d();n(2),u(" Next Appointment: ",t.apptData.nextAppt," ")}}function Xe(e,c){if(e&1){let t=w();a(0,"button",215),g("click",function(){v(t);let i=d(2);return b(i.saveAll("saveRebook"))}),a(1,"span",216),r(2,"Save + Rebook"),o()()}}
1function ti(e,c){if(e&1){let t=w();a(0,"div",20)(1,"div",19),s(2,Xe,3,0,"button",214),a(3,"button",215),g("click",function(){v(t);let i=d();return b(i.saveAll("saveNew"))}),a(4,"span",216),r(5,"Save + New Ticket"),o()(),a(6,"button",217),g("click",function(){v(t);let i=d();return b(i.saveAll("save"))}),a(7,"span",216),r(8,"Save"),o()(),a(9,"button",218)(10,"span",216),r(11,"Go To Checkout List"),o()()()()}if(e&2){let t=d();n(2),p(t.TicketServiceData&&t.TicketServiceData.length>0&&t.clientName!=""?2:-1),n(7),D("routerLink",K(2,de))}}function ei(e,c){if(e&1){let t=w();a(0,"a",229),g("click",function(){v(t);let i=d(2);return b(i.reopenTicket())}),r(1," Reopen Ticket"),o()}}function ii(e,c){if(e&1){let t=w();a(0,"a",230),g("click",function(){v(t);let i=d(2);return b(i.storePage())}),r(1," Issue Refund"),o()}if(e&2){let t=d(2);D("routerLink",K(2,se))("queryParams",ht(3,pe,t.apptId,t.clientId,t.apptName,t.refundApptDate))}}function ni(e,c){if(e&1){let t=w();a(0,"a",231),g("click",function(){v(t);let i=d(2);return b(i.voidTicketModal.show())}),r(1," Void Ticket "),o()}}function oi(e,c){if(e&1){let t=w();a(0,"a",232),g("click",function(){v(t);let i=d(2);return b(i.editTicket())}),r(1," Edit Ticket Details "),o()}}function ai(e,c){if(e&1){let t=w();a(0,"a",233),g("click",function(){v(t);let i=d(2);return b(i.showRecieptModal())}),r(1," Email Receipt"),o()}}function li(e,c){if(e&1){let t=w();a(0,"div",22)(1,"div",219)(2,"span",220),s(3,ei,2,0,"a",221),s(4,ii,2,8,"a",222),o(),s(5,ni,2,0,"a",223),a(6,"a",224),g("click",function(){v(t);let i=d();return b(i.showSmileModal())}),r(7," Edit Ticket Rating "),o(),s(8,oi,2,0,"a",225),o(),a(9,"div",226)(10,"a",227),g("click",function(){v(t);let i=d();return b(i.printDiv())}),r(11," Print Receipt"),o(),s(12,ai,2,0,"a",228),o()()}if(e&2){let t=d();n(3),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Reopen Ticket"]&&t.showReopenBtn&&t.apptData.isRefund__c===0&&!t.m360Instance&&t.showVoidButton&&!t.classDetailTicket?3:-1),n(),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Refund Details"]&&t.apptData.isRefund__c===0&&t.displayIssueRefund?4:-1),n(),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Void Ticket"]&&!t.apptData.Paid_By_Ticket__c&&t.showVoidButton&&t.clientTktServicePkg&&t.displayVoidBtn&&!t.tippyTicket?5:-1),n(3),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Ticket Edit"]?8:-1),n(4),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Completed Ticket - Email Receipt"]?12:-1)}}function ri(e,c){e&1&&(a(0,"h2",235),r(1," VOIDED"),o())}function ci(e,c){e&1&&(a(0,"h2",236),r(1," REFUNDED"),o())}function di(e,c){if(e&1&&(a(0,"div",23)(1,"div",234),s(2,ri,2,0,"h2",235),s(3,ci,2,0,"h2",236),o()()),e&2){let t=d();n(2),p(t.originalTicketSrvc===1?2:-1),n(),p(t.originalTicketSrvc===0?3:-1)}}function si(e,c){if(e&1){let t=w();a(0,"a",237),g("click",function(){v(t);let i=d();return b(i.printGift())}),f(1,"i",238),r(2," Print Gift "),o()}}
1function pi(e,c){if(e&1){let t=w();a(0,"a",239),g("click",function(){v(t);let i=d();return b(i.emailGiftModal.show())}),f(1,"i",240),r(2," Email Gift "),o()}}function mi(e,c){if(e&1&&(a(0,"div",35),r(1),o()),e&2){let t=d();D("routerLink",j(3,lt,"/client/edit/"+t.clientId))("queryParams",j(5,me,t.apptId)),n(),S(t.clientName)}}function _i(e,c){if(e&1&&(a(0,"div",36),f(1,"img",241),a(2,"h4",242),r(3),o()()),e&2){let t=d();n(3),u("\xA0",t.clientPoints)}}function hi(e,c){if(e&1){let t=w();a(0,"div",244),g("click",function(){v(t);let i=d(2);return b(i.addNewClient())}),f(1,"img",245),o()}}function ui(e,c){if(e&1&&(a(0,"div",37),r(1," No Client "),s(2,hi,2,0,"div",243),o()),e&2){let t=d();n(2),p(t.apptData.isRefund__c===0?2:-1)}}function Ci(e,c){if(e&1){let t=w();a(0,"span",252),g("click",function(){v(t);let i=d(2).$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),C(2,"slice"),o()}if(e&2){let t=d(2).$implicit;n(),A(" ",B(2,3,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ",t.Booked_Package__c?'"Prepaid Package"':""," ")}}function xi(e,c){if(e&1&&(a(0,"span",250),r(1),C(2,"slice"),o()),e&2){let t=d(2).$implicit;n(),A(" ",B(2,3,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ",t.Booked_Package__c?'"Prepaid Package"':" "," ")}}function ki(e,c){if(e&1&&(a(0,"span",251),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u(" ",t.Redeem_Rule_Name__c," ")}}function fi(e,c){if(e&1&&(a(0,"span",251),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u(" ",t.promotionName," ")}}function gi(e,c){if(e&1&&(s(0,Ci,3,7,"span",249),s(1,xi,3,7,"span",250),s(2,ki,3,1,"span",251),s(3,fi,3,1,"span",251)),e&2){let t=d().$implicit,l=d(2);p(l.decodedToken.Tickets&&l.decodedToken.Tickets["Ticket Edit"]?0:-1),n(),p(l.decodedToken.Tickets&&l.decodedToken.Tickets["Ticket Edit"]?-1:1),n(),p(t.reward__c?2:-1),n(),p(t.Promotion__c?3:-1)}}function Ti(e,c){if(e&1){let t=w();a(0,"span",252),g("click",function(){v(t);let i=d(2).$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),C(2,"slice"),o()}if(e&2){let t=d(2).$implicit;n(),I(" ",B(2,2,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ")}}function vi(e,c){if(e&1&&(a(0,"span",250),r(1),C(2,"slice"),o()),e&2){let t=d(2).$implicit;n(),I(" ",B(2,2,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ")}}function bi(e,c){if(e&1&&(s(0,Ti,3,6,"span",249),s(1,vi,3,6,"span",250)),e&2){let t=d(3);p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Ticket Edit"]?0:-1),n(),p(t.decodedToken.Tickets&&t.decodedToken.Tickets["Ticket Edit"]?-1:1)}}function yi(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.FullName)}}function Si(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function wi(e,c){if(e&1&&(a(0,"span",256),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct)}}function Pi(e,c){if(e&1&&(a(0,"span",257),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct)}}function Ii(e,c){if(e&1&&(r(0),C(1,"number"),s(2,Si,2,0,"span",255),s(3,wi,2,1,"span",256),s(4,Pi,2,1,"span",257)),e&2){let t=d(2).$implicit,l=d(2);u(" ",k(1,4,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?2:-1),n(),p(!l.voidTckt&&t.Deduct_From_Worker__c&&t.isRefund__c?3:-1),n(),p(!l.voidTckt&&t.Original_Ticket_Service__c&&l.apptData.isRefund__c===0?4:-1)}}function Ei(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function Mi(e,c){if(e&1&&(a(0,"p",258),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Oi(e,c){if(e&1&&(a(0,"p",258),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Di(e,c){if(e&1&&(a(0,"span",259),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct)}}function Ai(e,c){if(e&1&&(a(0,"span",260),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct)}}function Li(e,c){if(e&1&&(Q(0,254),r(1),C(2,"number"),s(3,Ei,2,0,"span",255),s(4,Mi,4,4,"p",258),s(5,Oi,4,4,"p",258),s(6,Di,2,1,"span",259),s(7,Ai,2,1,"span",260),Y()),e&2){let t=d(2).$implicit,l=d(2);n(),u(" ",k(2,6,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?3:-1),n(),p(t.reward__c?4:-1),n(),p(t.Promotion__c?5:-1),n(),p(!l.voidTckt&&t.Deduct_From_Worker__c&&t.isRefund__c?6:-1),n(),p(!l.voidTckt&&t.Original_Ticket_Service__c&&l.apptData.isRefund__c===0?7:-1)}}
1function Ni(e,c){if(e&1&&(s(0,Ii,5,7),s(1,Li,8,9,"ng-container",254)),e&2){let t=d().$implicit;p(!t.reward__c&&!t.Promotion__c?0:-1),n(),p(t.reward__c||t.Promotion__c?1:-1)}}function Fi(e,c){if(e&1&&(a(0,"span",256),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct)}}function Bi(e,c){if(e&1&&(a(0,"span",257),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct)}}function Vi(e,c){if(e&1&&(r(0," Pkg "),s(1,Fi,2,1,"span",256),s(2,Bi,2,1,"span",257)),e&2){let t=d().$implicit,l=d(2);n(),p(!l.voidTckt&&t.Deduct_From_Worker__c&&t.isRefund__c?1:-1),n(),p(!l.voidTckt&&t.Original_Ticket_Service__c&&l.apptData.isRefund__c===0?2:-1)}}function Ri(e,c){if(e&1&&(a(0,"div",45)(1,"div",248),s(2,gi,4,4),s(3,bi,2,2),s(4,yi,4,1,"span"),o(),f(5,"div",47),a(6,"div",50),s(7,Ni,2,2),s(8,Vi,3,2),o()()),e&2){let t=c.$implicit,l=d(2);n(2),p(t.Booked_Package__c||t.Client_Package__c?-1:2),n(),p(t.Booked_Package__c||t.Client_Package__c?3:-1),n(),p(l.showWorkerName?4:-1),n(3),p(t.Booked_Package__c||t.Client_Package__c?-1:7),n(),p(t.Booked_Package__c||t.Client_Package__c?8:-1)}}function Wi(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Services"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",247),M(10,Ri,9,5,"div",45,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.serviceTotal,"2.2-2")),n(3),O(t.TicketServiceData)}}function $i(e,c){if(e&1&&(r(0),C(1,"slice")),e&2){let t=d().$implicit;I(" ",B(1,2,t.dispName,0,21),"",t.dispName.length>21?"...":""," ")}}function Gi(e,c){if(e&1&&(a(0,"span",264),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u("",t.Redeem_Rule_Name__c," ")}}function zi(e,c){if(e&1&&(a(0,"span",264),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u("",t.promotionName," ")}}function ji(e,c){if(e&1&&(r(0),C(1,"slice"),s(2,Gi,3,1,"span",264),s(3,zi,3,1,"span",264)),e&2){let t=d().$implicit;I(" ",B(1,4,t.dispName,0,21),"",t.dispName.length>21?"...":""," "),n(2),p(t.Reward__c?2:-1),n(),p(t.Promotion__c?3:-1)}}function qi(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.workerName)}}function Ui(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function Ji(e,c){if(e&1&&(a(0,"span",266),r(1),o()),e&2){let t=d(3).$implicit;n(),S(t.deduct)}}
1function Hi(e,c){if(e&1&&(a(0,"div")(1,"span",265),r(2),C(3,"number"),C(4,"number"),o(),s(5,Ui,2,0,"span",255),s(6,Ji,2,1,"span",266),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,5,t.Display_price__c,"2.2-2"),") ",k(4,8,t.quantity*t.Display_price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(!l.voidTckt&&t.deduct?6:-1)}}function Qi(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function Yi(e,c){if(e&1&&(a(0,"span",266),r(1),o()),e&2){let t=d(3).$implicit;n(),S(t.deduct)}}function Ki(e,c){if(e&1&&(a(0,"div")(1,"span",265),r(2),C(3,"number"),o(),s(4,Qi,2,0,"span",255),s(5,Yi,2,1,"span",266),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,3,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(!l.voidTckt&&t.deduct?5:-1)}}function Zi(e,c){if(e&1&&(Q(0,263),s(1,Hi,7,11,"div"),s(2,Ki,6,6,"div"),Y()),e&2){let t=d().$implicit;n(),p(t.quantity>=2?1:-1),n(),p(t.quantity<2?2:-1)}}function Xi(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function tn(e,c){if(e&1&&(a(0,"span",267),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A(" (",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function en(e,c){if(e&1&&(a(0,"span",267),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A(" (",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function nn(e,c){if(e&1&&(a(0,"span",268),r(1),o()),e&2){let t=d(3).$implicit;n(),S(t.deduct)}}function on(e,c){if(e&1&&(a(0,"div")(1,"span",265),r(2),C(3,"number"),C(4,"number"),o(),s(5,Xi,2,0,"span",255),s(6,tn,5,9,"span",267),s(7,en,5,9,"span",267),s(8,nn,2,1,"span",268),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,7,t.Display_price__c,"2.2-2"),") ",k(4,10,t.quantity*t.Display_price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(t.Reward__c?6:-1),n(),p(t.Promotion__c?7:-1),n(),p(!l.voidTckt&&t.deduct?8:-1)}}function an(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function ln(e,c){if(e&1&&(a(0,"span",267),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function rn(e,c){if(e&1&&(a(0,"span",267),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function cn(e,c){if(e&1&&(a(0,"span",268),r(1),o()),e&2){let t=d(3).$implicit;n(),S(t.deduct)}}function dn(e,c){if(e&1&&(a(0,"div")(1,"span",265),r(2),C(3,"number"),o(),s(4,an,2,0,"span",255),s(5,ln,4,4,"span",267),s(6,rn,4,4,"span",267),s(7,cn,2,1,"span",268),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,5,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(t.Reward__c?5:-1),n(),p(t.Promotion__c?6:-1),n(),p(!l.voidTckt&&t.deduct?7:-1)}}function sn(e,c){if(e&1&&(Q(0,263),s(1,on,9,13,"div"),s(2,dn,8,8,"div"),Y()),e&2){let t=d().$implicit;n(),p(t.quantity>=2?1:-1),n(),p(t.quantity<2?2:-1)}}function pn(e,c){if(e&1&&(a(0,"div",262)(1,"div",248),s(2,$i,2,6),s(3,ji,4,8),s(4,qi,4,1,"span"),o(),f(5,"div",47),a(6,"div",50),s(7,Zi,3,2,"ng-container",263),s(8,sn,3,2,"ng-container",263),o()()),e&2){let t=c.$implicit,l=d(2);n(2),p(!t.Reward__c&&!t.Promotion__c?2:-1),n(),p(t.Reward__c||t.Promotion__c?3:-1),n(),p(l.showWorkerName?4:-1),n(3),p(!t.Reward__c&&!t.Promotion__c?7:-1),n(),p(t.Reward__c||t.Promotion__c?8:-1)}}function mn(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Product"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",261),M(10,pn,9,5,"div",262,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.productTotal,"2.2-2")),n(3),O(t.ticketProductsList)}}function _n(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.Transaction_Type__c," ",t.Online__c===1?"(OL)":""," ")}}function hn(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"slice"),o()),e&2){let t=d().$implicit;n(),I(" ",B(2,2,t.className,0,21),"",t.className.length>21?"...":""," ")}}function un(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d().$implicit;n(),S(t.Gift_Number__c)}}
1function Cn(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"slice"),o()),e&2){let t=d().$implicit;n(),I(" ",it(2,2,t.packageName,0,14,""),"",t.packageName.length>14?"...":"","\xA0\xA0 ")}}function xn(e,c){e&1&&(a(0,"div",50),r(1,"Pkg "),o())}function kn(e,c){if(e&1&&(a(0,"span",271),r(1),o()),e&2){let t=d(2).$implicit;n(),S(t.deduct)}}function fn(e,c){if(e&1&&(a(0,"div",50),r(1),C(2,"number"),s(3,kn,2,1,"span",271),o()),e&2){let t=d().$implicit,l=d(2);n(),u(" ",k(2,2,t.Display_price__c,"2.2-2")," "),n(2),p(l.voidTckt?-1:3)}}function gn(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),s(2,_n,2,2,"span"),s(3,hn,3,6,"span"),s(4,un,2,1,"span"),s(5,Cn,3,7,"span"),o(),f(6,"div",47),s(7,xn,2,0,"div",50),s(8,fn,4,5,"div",50),o()),e&2){let t=c.$implicit;n(2),p(t.Transaction_Type__c!=="Class"?2:-1),n(),p(t.Transaction_Type__c==="Class"?3:-1),n(),p(t.Transaction_Type__c==="Gift"?4:-1),n(),p(t.Transaction_Type__c==="Package"?5:-1),n(2),p(t.Client_Package?7:-1),n(),p(t.Client_Package?-1:8)}}function Tn(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Other"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()(),a(8,"div",269),M(9,gn,9,6,"div",45,E),o()()),e&2){let t=d();n(6),u(" ",k(7,1,t.otherTotal,"2.2-2")),n(3),O(t.ticketOthersList)}}function vn(e,c){if(e&1&&(a(0,"span",272),r(1),o()),e&2){let t=d().$implicit;n(),S(t.deduct)}}function bn(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),r(2),o(),f(3,"div",47),a(4,"div",50),r(5),C(6,"number"),s(7,vn,2,1,"span",272),o()()),e&2){let t=c.$implicit,l=d(2);n(2),I(" ",t.workerName," - ",t.Tip_Option__c),n(3),S(k(6,4,t.Tip_Amount__c,"1.2-4")),n(2),p(!l.voidTckt&&t.deduct?7:-1)}}function yn(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Tip"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()(),a(8,"div",269),M(9,bn,8,7,"div",45,E),o()()),e&2){let t=d();n(6),u("",k(7,1,t.tipTotal,"2.2-2")," "),n(3),O(t.workerTipsList)}}function Sn(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Tax"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()()()),e&2){let t=d();n(6),u(" ",k(7,1,t.prepaidTax,"2.2-2"))}}function wn(e,c){if(e&1&&(a(0,"div",45)(1,"div",136),r(2),o(),f(3,"div",47),a(4,"div",50),r(5),C(6,"number"),o()()),e&2){let t=c.$implicit;n(2),u("Incl Tckt Amt [",t.Name,"]"),n(3),u(" ",k(6,2,-t.Included_Ticket_Amount__c,"2.2-2"))}}function Pn(e,c){if(e&1&&(a(0,"div",44),M(1,wn,7,5,"div",45,E),o()),e&2){let t=d();n(),O(t.includedTicketsList)}}function In(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),S(k(2,1,t.prepaidTax+t.subTotal,"2.2-2"))}}function En(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2")," ")}}function Mn(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2")," ")}}function On(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.prepaidTax,"2.2-2"))}}function Dn(e,c){e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2&&(n(),u(" ",k(2,1,0,"2.2-2")))}function An(e,c){if(e&1&&r(0),e&2){let t=d().$implicit;u(" ***",t.CardLast4," ")}}function Ln(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",136),r(3," change back"),o(),f(4,"div",47),a(5,"div",50),r(6),C(7,"number"),o()()()),e&2){let t=d().$implicit;n(6),u("",k(7,1,t.Change_Back__c,"2.2-2")," ")}}function Nn(e,c){if(e&1&&(a(0,"div",39)(1,"div",44)(2,"div",45)(3,"div",136),r(4),C(5,"slice"),s(6,An,1,1),o(),f(7,"div",47),a(8,"div",50),r(9),C(10,"number"),o()()(),s(11,Ln,8,4,"div",44),o()),e&2){let t=c.$implicit;n(4),I(" ",t.paymentTypeName==="Gift Redeem"?t.Gift_Number__c:B(5,5,t.paymentTypeName,0,25),"",t.paymentTypeName.length>25?"...":""," \xA0 "),n(2),p(t.paymentTypeName==="Token On File"?6:-1),n(3),u(" ",k(10,9,t.Amount_Paid__c,"2.2-2")),n(2),p(t.Change_Back__c?11:-1)}}
1function Fn(e,c){if(e&1&&(a(0,"div",53)(1,"h4"),r(2),o()()),e&2){let t=d();n(2),I("",t.dispCashDrawer," - ",t.dispShift)}}function Bn(e,c){if(e&1&&(a(0,"div",54)(1,"h4"),r(2),o()()),e&2){let t=d();n(2),S(t.posLists)}}function Vn(e,c){if(e&1){let t=w();a(0,"div",273)(1,"img",278),g("error",function(i){v(t);let m=d(2);return b(m.errorHandler(i,m.i))}),o()()}if(e&2){let t=d().$implicit,l=d();n(),D("src",et("",l.imgPath,"",t.image),ct)}}function Rn(e,c){if(e&1&&(a(0,"strong"),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.FirstName[0].toUpperCase()," ")}}function Wn(e,c){if(e&1&&(a(0,"div",273)(1,"div",279),s(2,Rn,2,1,"strong"),o()()),e&2){let t=d().$implicit;n(2),p(t.FirstName?2:-1)}}function $n(e,c){if(e&1&&(a(0,"div",276),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.Phone," | ",t.MobilePhone)}}function Gn(e,c){if(e&1){let t=w();a(0,"div",83),s(1,Vn,2,3,"div",273),s(2,Wn,3,1,"div",273),a(3,"div",274),g("click",function(){let i=v(t).$implicit,m=d();return b(m.clientChange(i))}),a(4,"span",275),r(5),o(),a(6,"span"),s(7,$n,2,2,"div",276),a(8,"div",277),r(9),o()()()()}if(e&2){let t=c.$implicit;n(),p(t.image&&t.image!==""?1:-1),n(),p(t.image===null||t.image===""||t.image===void 0?2:-1),n(3),I("",t.FirstName,"\xA0",t.LastName),n(2),p(t.Phone||t.MobilePhone?7:-1),n(2),S(t.Email)}}function zn(e,c){if(e&1&&(a(0,"option",92),r(1),o()),e&2){let t=c.$implicit;D("ngValue",t.workerId),n(),u(" ",t.FullName)}}function jn(e,c){if(e&1){let t=w();a(0,"div",18)(1,"div",89)(2,"label"),r(3,"Service Note:"),o()(),a(4,"div",90)(5,"textarea",280),F("ngModelChange",function(i){v(t);let m=d();return N(m.serviceNotes,i)||(m.serviceNotes=i),b(i)}),r(6,"                              "),o()()()}if(e&2){let t=d();n(5),D("value",z(t.serviceNotes)),L("ngModel",t.serviceNotes)}}function qn(e,c){if(e&1&&(a(0,"option",98),r(1),o()),e&2){let t=c.$implicit;D("value",z(t.workerId)),n(),u(" ",t.FullName)}}function Un(e,c){if(e&1&&(a(0,"option",98),r(1),o()),e&2){let t=c.$implicit;D("value",z(t.workerId)),n(),u(" ",t.workerName)}}function Jn(e,c){if(e&1){let t=w();a(0,"div",100)(1,"select",97),F("ngModelChange",function(i){v(t);let m=d();return N(m.otherWorkerId,i)||(m.otherWorkerId=i),b(i)}),M(2,Un,2,3,"option",98,E),o()()}if(e&2){let t=d();n(),L("ngModel",t.otherWorkerId),n(),O(t.activeWorkerLists)}}function Hn(e,c){if(e&1){let t=w();a(0,"div",281),g("keypress",function(){v(t);let i=d();return b(i.clearErrorMsg())}),a(1,"h6"),r(2),o()()}if(e&2){let t=d();n(2),S(t.errTipAmount)}}
1function Qn(e,c){if(e&1&&(a(0,"option",98),r(1),o()),e&2){let t=c.$implicit;D("value",z(t.Payment_Type__c)),n(),u(" ",t.Name)}}function Yn(e,c){if(e&1){let t=w();a(0,"div",281),g("keypress",function(){v(t);let i=d();return b(i.clearErrorMsg())}),a(1,"h6"),r(2),o()()}if(e&2){let t=d();n(2),S(t.errTipName)}}function Kn(e,c){if(e&1&&(a(0,"p",284),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u(" ",t.Redeem_Rule_Name__c," ")}}function Zn(e,c){if(e&1&&(a(0,"p",284),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u(" ",t.promotionName," ")}}function Xn(e,c){if(e&1){let t=w();a(0,"span",252),g("click",function(){v(t);let i=d().$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),C(2,"slice"),o(),s(3,Kn,3,1,"p",284),s(4,Zn,3,1,"p",284)}if(e&2){let t=d().$implicit;n(),A(" ",B(2,5,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ",t.Booked_Package__c?'"Prepaid Package"':""," "),n(2),p(t.reward__c?3:-1),n(),p(t.Promotion__c?4:-1)}}function to(e,c){if(e&1){let t=w();a(0,"span",285),g("click",function(){v(t);let i=d().$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),C(2,"slice"),o()}if(e&2){let t=d().$implicit;n(),I(" ",B(2,2,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ")}}function eo(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.FullName)}}function io(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function no(e,c){if(e&1&&(a(0,"span",286),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function oo(e,c){if(e&1&&(r(0),C(1,"number"),s(2,io,2,0,"span",255),s(3,no,2,1,"span",286)),e&2){let t=d(2).$implicit,l=d(2);u(" ",k(1,3,t.Net_Price__c,"2.2-2")," "),n(2),p(t.astrix?2:-1),n(),p(l.voidTckt?-1:3)}}function ao(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function lo(e,c){if(e&1&&(a(0,"p",258),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}
1function ro(e,c){if(e&1&&(a(0,"p",258),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function co(e,c){if(e&1&&(a(0,"span",287),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function so(e,c){if(e&1&&(r(0),C(1,"number"),s(2,ao,2,0,"span",255),s(3,lo,4,4,"p",258),s(4,ro,4,4,"p",258),s(5,co,2,1,"span",287)),e&2){let t=d(2).$implicit,l=d(2);u(" ",k(1,5,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?2:-1),n(),p(t.reward__c?3:-1),n(),p(t.Promotion__c?4:-1),n(),p(l.voidTckt?-1:5)}}function po(e,c){if(e&1&&(s(0,oo,4,6),s(1,so,6,8)),e&2){let t=d().$implicit;p(!t.reward__c&&!t.Promotion__c?0:-1),n(),p(t.reward__c||t.Promotion__c?1:-1)}}function mo(e,c){if(e&1&&(a(0,"span",286),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct," ")}}function _o(e,c){if(e&1&&(r(0," Pkg "),s(1,mo,2,1,"span",286)),e&2){let t=d(3);n(),p(t.voidTckt?-1:1)}}function ho(e,c){if(e&1&&(a(0,"div",45)(1,"div",248),s(2,Xn,5,9),s(3,to,3,6,"span",283),s(4,eo,4,1,"span"),o(),f(5,"div",47),a(6,"div",50),s(7,po,2,2),s(8,_o,2,1),o()()),e&2){let t=c.$implicit,l=d(2);n(2),p(t.Booked_Package__c||t.Client_Package__c?-1:2),n(),p(t.Booked_Package__c||t.Client_Package__c?3:-1),n(),p(l.showWorkerName?4:-1),n(3),p(t.Booked_Package__c||t.Client_Package__c?-1:7),n(),p(t.Booked_Package__c||t.Client_Package__c?8:-1)}}function uo(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Services"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",282),M(10,ho,9,5,"div",45,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.serviceTotal,"2.2-2")),n(3),O(t.TicketServiceData)}}function Co(e,c){if(e&1&&(a(0,"p",284),f(1,"br"),r(2),o()),e&2){let t=d().$implicit;n(2),u(" ",t.Redeem_Rule_Name__c," ")}}function xo(e,c){if(e&1&&(a(0,"p",284),f(1,"br"),r(2),o()),e&2){let t=d().$implicit;n(2),u(" ",t.promotionName," ")}}function ko(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.workerName)}}function fo(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function go(e,c){if(e&1&&(a(0,"span",266),r(1),o()),e&2){let t=d(3).$implicit;n(),u("",t.deduct," ")}}function To(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),C(4,"number"),o(),s(5,fo,2,0,"span",255),s(6,go,2,1,"span",266),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,5,t.Net_Price__c,"2.2-2"),") ",k(4,8,t.quantity*t.Net_Price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(!l.voidTckt&&t.deduct?6:-1)}}function vo(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function bo(e,c){if(e&1&&(a(0,"span",266),r(1),o()),e&2){let t=d(3).$implicit;n(),u("",t.deduct," ")}}function yo(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),o(),s(4,vo,2,0,"span",255),s(5,bo,2,1,"span",266),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,3,t.Net_Price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(!l.voidTckt&&t.deduct?5:-1)}}function So(e,c){if(e&1&&(s(0,To,7,11,"div"),s(1,yo,6,6,"div")),e&2){let t=d().$implicit;p(t.quantity>=2?0:-1),n(),p(t.quantity<2?1:-1)}}function wo(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}function Po(e,c){if(e&1&&(a(0,"span",290),r(1),o()),e&2){let t=d(3).$implicit;n(),u("",t.deduct," ")}}function Io(e,c){if(e&1&&(a(0,"span",291),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A("(",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function Eo(e,c){if(e&1&&(a(0,"span",291),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A("(",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function Mo(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),C(4,"number"),o(),s(5,wo,2,0,"span",255),s(6,Po,2,1,"span",290),s(7,Io,5,9,"span",291),s(8,Eo,5,9,"span",291),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,7,t.Display_price__c,"2.2-2"),") ",k(4,10,t.quantity*t.Display_price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(!l.voidTckt&&t.deduct?6:-1),n(),p(t.Reward__c?7:-1),n(),p(t.Promotion__c?8:-1)}}function Oo(e,c){e&1&&(a(0,"span",255),r(1,"\xA0*"),o())}
1function Do(e,c){if(e&1&&(a(0,"span",290),r(1),o()),e&2){let t=d(3).$implicit;n(),u("",t.deduct," ")}}function Ao(e,c){if(e&1&&(a(0,"span",291),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Lo(e,c){if(e&1&&(a(0,"span",291),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function No(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),o(),s(4,Oo,2,0,"span",255),s(5,Do,2,1,"span",290),s(6,Ao,4,4,"span",291),s(7,Lo,4,4,"span",291),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,5,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(!l.voidTckt&&t.deduct?5:-1),n(),p(t.Reward__c?6:-1),n(),p(t.Promotion__c?7:-1)}}function Fo(e,c){if(e&1&&(s(0,Mo,9,13,"div"),s(1,No,8,8,"div")),e&2){let t=d().$implicit;p(t.quantity>=2?0:-1),n(),p(t.quantity<2?1:-1)}}function Bo(e,c){if(e&1){let t=w();a(0,"div",45)(1,"div",248)(2,"span",252),g("click",function(){let i=v(t).$implicit,m=d(2);return b(m.showProductModal(i))}),r(3),C(4,"slice"),o(),s(5,Co,3,1,"p",284),s(6,xo,3,1,"p",284),s(7,ko,4,1,"span"),o(),f(8,"div",47),a(9,"div",50),s(10,So,2,2),s(11,Fo,2,2),o()()}if(e&2){let t=c.$implicit,l=d(2);n(3),I(" ",B(4,7,t.dispName,0,21),"",t.dispName.length>21?"...":""," "),n(2),p(t.Reward__c?5:-1),n(),p(t.Promotion__c?6:-1),n(),p(l.showWorkerName?7:-1),n(3),p(!t.Reward__c&&!t.Promotion__c?10:-1),n(),p(t.Reward__c||t.Promotion__c?11:-1)}}function Vo(e,c){if(e&1&&(a(0,"div",133)(1,"div",45)(2,"div",46),r(3,"Product"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",288),M(10,Bo,12,11,"div",45,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.productTotal,"2.2-2")),n(3),O(t.ticketProductsList)}}function Ro(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.Transaction_Type__c," ",t.Online__c===1?"(OL)":""," ")}}function Wo(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"slice"),o()),e&2){let t=d().$implicit;n(),I(" ",B(2,2,t.className,0,21),"",t.className.length>21?"...":""," ")}}function $o(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d().$implicit;n(),I("",t.Gift_Number__c," ",t.Online__c===1?"(OL)":"")}}function Go(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"slice"),o()),e&2){let t=d().$implicit;n(),A(" ",it(2,3,t.packageName,0,14,""),"",t.Online__c===1?"(OL)":"","",t.packageName.length>14?"...":"","\xA0\xA0 ")}}function zo(e,c){e&1&&(a(0,"div",50),r(1,"Pkg "),o())}function jo(e,c){if(e&1&&(a(0,"div",50),r(1),C(2,"number"),o()),e&2){let t=d().$implicit;n(),u(" ",k(2,1,t.Display_price__c,"2.2-2")," ")}}function qo(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),s(2,Ro,2,2,"span"),s(3,Wo,3,6,"span"),s(4,$o,2,2,"span"),s(5,Go,3,8,"span"),o(),f(6,"div",47),s(7,zo,2,0,"div",50),s(8,jo,3,4,"div",50),o()),e&2){let t=c.$implicit;n(2),p(t.Transaction_Type__c!=="Class"?2:-1),n(),p(t.Transaction_Type__c==="Class"?3:-1),n(),p(t.Transaction_Type__c==="Gift"?4:-1),n(),p(t.Transaction_Type__c==="Package"?5:-1),n(2),p(t.Client_Package?7:-1),n(),p(t.Client_Package?-1:8)}}function Uo(e,c){if(e&1&&(a(0,"div",134)(1,"div",45)(2,"div",46),r(3,"Other"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()(),a(8,"div",282),M(9,qo,9,6,"div",45,E),o()()),e&2){let t=d();n(6),u(" ",k(7,1,t.otherTotal,"2.2-2")," "),n(3),O(t.ticketOthersList)}}function Jo(e,c){if(e&1){let t=w();a(0,"div",285),g("click",function(){v(t);let i=d().$implicit,m=d(2);return b(m.editTip(i))}),r(1),o()}if(e&2){let t=d().$implicit;n(),I(" ",t.workerName," - ",t.Tip_Option__c)}}function Ho(e,c){if(e&1&&(a(0,"div",270),r(1),o()),e&2){let t=d().$implicit;n(),u(" ",t.workerName)}}function Qo(e,c){if(e&1&&(a(0,"div",45),s(1,Jo,2,2,"div",283),s(2,Ho,2,1,"div",270),f(3,"div",47),a(4,"div",50),r(5),C(6,"number"),o()()),e&2){let t=c.$implicit,l=d(2);n(),p(l.tippyTicket?-1:1),n(),p(l.tippyTicket?2:-1),n(3),S(k(6,3,t.Tip_Amount__c,"1.2-4"))}}function Yo(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Tip"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()(),a(8,"div",282),M(9,Qo,7,6,"div",45,E),o()()),e&2){let t=d();n(6),u(" ",k(7,1,t.tipTotal,"2.2-2")," "),n(3),O(t.workerTipsList)}}
1function Ko(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Tax"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()()()),e&2){let t=d();n(6),u(" ",k(7,1,t.prepaidTax,"2.2-2")," ")}}function Zo(e,c){if(e&1&&(a(0,"div",45)(1,"div",136),r(2),o(),f(3,"div",47),a(4,"div",50),r(5),C(6,"number"),o()()),e&2){let t=c.$implicit;n(2),u("Incl Tckt Amt [",t.Name,"]"),n(3),u(" ",k(6,2,-t.Included_Ticket_Amount__c,"2.2-2")," ")}}function Xo(e,c){if(e&1&&(a(0,"div",44),M(1,Zo,7,5,"div",45,E),o()),e&2){let t=d();n(),O(t.includedTicketsList)}}function ta(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u("",k(2,1,t.prepaidTax+t.subTotal,"2.2-2")," ")}}function ea(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2")," ")}}function ia(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2")," ")}}function na(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),S(k(2,1,t.prepaidTax,"2.2-2"))}}function oa(e,c){e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2&&(n(),u(" ",k(2,1,0,"2.2-2")))}function aa(e,c){if(e&1&&r(0),e&2){let t=d().$implicit;u(" ***",t.CardLast4," ")}}function la(e,c){if(e&1){let t=w();a(0,"div",39)(1,"div",44)(2,"div",45)(3,"div",136),r(4," Payment type"),o(),f(5,"div",47),a(6,"div",292),g("click",function(){let i=v(t).$implicit,m=d();return b(m.showPaymentModal(i))}),r(7),C(8,"slice"),s(9,aa,1,1),o()()(),a(10,"div",44)(11,"div",45)(12,"div",136),r(13," Amount paid"),o(),f(14,"div",47),a(15,"div",50),r(16),C(17,"number"),o()()()()}if(e&2){let t=c.$implicit;n(7),I(" ",t.paymentTypeName==="Gift Redeem"?t.Gift_Number__c:B(8,4,t.paymentTypeName,0,25),"",t.paymentTypeName.length>25?"...":""," \xA0 "),n(2),p(t.paymentTypeName==="Token On File"?9:-1),n(7),u(" ",k(17,8,t.Amount_Paid__c,"2.2-2"))}}
1function ra(e,c){if(e&1){let t=w();a(0,"div",39)(1,"div",44)(2,"div",293)(3,"textarea",294),F("ngModelChange",function(i){let m=v(t).$implicit;return N(m.paymentNotesFeild,i)||(m.paymentNotesFeild=i),b(i)}),r(4,"                                                                "),o()()()()}if(e&2){let t=c.$implicit,l=c.$index,i=d();n(3),D("placeholder",z(i.paymentTypeObj[l]?i.paymentTypeObj[l]:"")),L("ngModel",t.paymentNotesFeild)}}function ca(e,c){if(e&1&&(a(0,"option",98),r(1),o()),e&2){let t=c.$implicit;D("value",z(t.Payment_Type__c)),n(),u(" ",t.Name)}}function da(e,c){if(e&1&&(a(0,"option",92),r(1),o()),e&2){let t=c.$implicit;D("ngValue",t.workerId),n(),u(" ",t.workerName)}}function sa(e,c){if(e&1&&(a(0,"div",165),f(1,"img",295),r(2),o()),e&2){let t=d();n(2),u("\xA0",t.clientPoints," ")}}function pa(e,c){if(e&1&&(a(0,"span",296),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u("",t.Redeem_Rule_Name__c," ")}}function ma(e,c){if(e&1&&(a(0,"span",296),f(1,"br"),r(2),o()),e&2){let t=d(2).$implicit;n(2),u("",t.promotionName," ")}}function _a(e,c){if(e&1){let t=w();a(0,"span",252),g("click",function(){v(t);let i=d().$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),C(2,"slice"),o(),s(3,pa,3,1,"span",296),s(4,ma,3,1,"span",296)}if(e&2){let t=d().$implicit;n(),A(" ",B(2,5,t.ServiceName,0,21),"",t.ServiceName.length>21?"...":""," ",t.Booked_Package__c?'"Prepaid Package"':""," "),n(2),p(t.reward__c?3:-1),n(),p(t.Promotion__c?4:-1)}}function ha(e,c){if(e&1){let t=w();a(0,"span",252),g("click",function(){v(t);let i=d().$implicit,m=d(2);return b(m.showServiceModal(i))}),r(1),o()}if(e&2){let t=d().$implicit;n(),u(" ",t.ServiceName," ")}}function ua(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.FullName)}}function Ca(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function xa(e,c){if(e&1&&(a(0,"span",298),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct," ")}}function ka(e,c){if(e&1&&(r(0),C(1,"number"),s(2,Ca,2,0,"span",297),s(3,xa,2,1,"span",298)),e&2){let t=d().$implicit,l=d(2);u(" ",k(1,3,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?2:-1),n(),p(l.voidTckt?-1:3)}}function fa(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function ga(e,c){if(e&1&&(a(0,"span",299),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(2).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Ta(e,c){if(e&1&&(a(0,"span",299),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(2).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function va(e,c){if(e&1&&(a(0,"span",298),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct," ")}}function ba(e,c){if(e&1&&(r(0),C(1,"number"),s(2,fa,2,0,"span",297),s(3,ga,4,4,"span",299),s(4,Ta,4,4,"span",299),s(5,va,2,1,"span",298)),e&2){let t=d().$implicit,l=d(2);u(" ",k(1,5,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?2:-1),n(),p(t.reward__c?3:-1),n(),p(t.Promotion__c?4:-1),n(),p(l.voidTckt?-1:5)}}function ya(e,c){if(e&1&&(a(0,"span",298),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct," ")}}function Sa(e,c){if(e&1&&(r(0," Pkg "),s(1,ya,2,1,"span",298)),e&2){let t=d(3);n(),p(t.voidTckt?-1:1)}}function wa(e,c){if(e&1&&(a(0,"div",45)(1,"div",248),s(2,_a,5,9),s(3,ha,2,1,"span",249),s(4,ua,4,1,"span"),o(),f(5,"div",47),a(6,"div",50),s(7,ka,4,6),s(8,ba,6,8),s(9,Sa,2,1),o()()),e&2){let t=c.$implicit,l=d(2);n(2),p(t.Booked_Package__c||t.Client_Package__c?-1:2),n(),p(t.Booked_Package__c||t.Client_Package__c?3:-1),n(),p(l.showWorkerName?4:-1),n(3),p(!(t.Booked_Package__c||t.Client_Package__c)&&!t.reward__c&&!t.Promotion__c?7:-1),n(),p(!(t.Booked_Package__c||t.Client_Package__c)&&(t.reward__c||t.Promotion__c)?8:-1),n(),p(t.Booked_Package__c||t.Client_Package__c?9:-1)}}function Pa(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Services"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",269),M(10,wa,10,6,"div",45,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.serviceTotal,"2.2-2")," "),n(3),O(t.TicketServiceData)}}function Ia(e,c){if(e&1&&(a(0,"span",300),f(1,"br"),r(2),o()),e&2){let t=d().$implicit;n(2),u(" ",t.Redeem_Rule_Name__c)}}
1function Ea(e,c){if(e&1&&(a(0,"span",300),f(1,"br"),r(2),o()),e&2){let t=d().$implicit;n(2),u(" ",t.promotionName)}}function Ma(e,c){if(e&1&&(a(0,"span"),f(1,"br"),a(2,"i",253),r(3),o()()),e&2){let t=d().$implicit;n(3),S(t.workerName)}}function Oa(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function Da(e,c){if(e&1&&(a(0,"span",301),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function Aa(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),C(4,"number"),o(),s(5,Oa,2,0,"span",297),s(6,Da,2,1,"span",301),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,5,t.Display_price__c,"2.2-2"),") ",k(4,8,t.quantity*t.Display_price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(!l.voidTckt&&t.deduct?6:-1)}}function La(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function Na(e,c){if(e&1&&(a(0,"span",301),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function Fa(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),o(),s(4,La,2,0,"span",297),s(5,Na,2,1,"span",301),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,3,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(!l.voidTckt&&t.deduct?5:-1)}}function Ba(e,c){if(e&1&&(s(0,Aa,7,11,"div"),s(1,Fa,6,6,"div")),e&2){let t=d().$implicit;p(t.quantity>=2?0:-1),n(),p(t.quantity<2?1:-1)}}function Va(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function Ra(e,c){if(e&1&&(a(0,"span",301),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function Wa(e,c){if(e&1&&(a(0,"span",302),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A("(",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function $a(e,c){if(e&1&&(a(0,"span",302),f(1,"br"),r(2),C(3,"number"),C(4,"number"),o()),e&2){let t=d(3).$implicit;n(2),A("(",t.quantity," \u2715 ",k(3,3,-t.discountAmount,"1.2-4"),") ",k(4,6,-t.quantity*t.discountAmount,"1.2-4")," ")}}function Ga(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),C(4,"number"),o(),s(5,Va,2,0,"span",297),s(6,Ra,2,1,"span",301),s(7,Wa,5,9,"span",302),s(8,$a,5,9,"span",302),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),A(" (",t.quantity," \u2715 ",k(3,7,t.Display_price__c,"2.2-2"),") ",k(4,10,t.quantity*t.Display_price__c,"2.2-2")," "),n(3),p(t.astrix?5:-1),n(),p(!l.voidTckt&&t.deduct?6:-1),n(),p(t.Reward__c?7:-1),n(),p(t.Promotion__c?8:-1)}}function za(e,c){e&1&&(a(0,"span",297),r(1,"\xA0*"),o())}function ja(e,c){if(e&1&&(a(0,"span",301),r(1),o()),e&2){let t=d(3).$implicit;n(),u(" ",t.deduct," ")}}function qa(e,c){if(e&1&&(a(0,"span",302),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Ua(e,c){if(e&1&&(a(0,"span",302),f(1,"br"),r(2),C(3,"number"),o()),e&2){let t=d(3).$implicit;n(2),u(" ",k(3,1,-t.discountAmount,"1.2-4")," ")}}function Ja(e,c){if(e&1&&(a(0,"div")(1,"span",289),r(2),C(3,"number"),o(),s(4,za,2,0,"span",297),s(5,ja,2,1,"span",301),s(6,qa,4,4,"span",302),s(7,Ua,4,4,"span",302),o()),e&2){let t=d(2).$implicit,l=d(2);n(2),u(" ",k(3,5,t.Display_price__c,"2.2-2")," "),n(2),p(t.astrix?4:-1),n(),p(!l.voidTckt&&t.deduct?5:-1),n(),p(t.Reward__c?6:-1),n(),p(t.Promotion__c?7:-1)}}function Ha(e,c){if(e&1&&(s(0,Ga,9,13,"div"),s(1,Ja,8,8,"div")),e&2){let t=d().$implicit;p(t.quantity>=2?0:-1),n(),p(t.quantity<2?1:-1)}}function Qa(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),r(2),s(3,Ia,3,1,"span",300),s(4,Ea,3,1,"span",300),s(5,Ma,4,1,"span"),o(),f(6,"div",47),a(7,"div",50),s(8,Ba,2,2),s(9,Ha,2,2),o()()),e&2){let t=c.$implicit,l=d(2);n(2),A(" ",t.Name," - ",t.Size__c," ",t.Unit_of_Measure__c," "),n(),p(t.Reward__c?3:-1),n(),p(t.Promotion__c?4:-1),n(),p(l.showWorkerName?5:-1),n(3),p(!t.Reward__c&&!t.Promotion__c?8:-1),n(),p(t.Reward__c||t.Promotion__c?9:-1)}}function Ya(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Product"),o(),f(4,"div",47),a(5,"div",50)(6,"h4",246),r(7),C(8,"number"),o()()(),a(9,"div",269),M(10,Qa,10,8,"div",45,E),o()()),e&2){let t=d();n(7),u(" ",k(8,1,t.productTotal,"2.2-2")," "),n(3),O(t.ticketProductsList)}}
1function Ka(e,c){if(e&1&&(a(0,"span"),r(1),o()),e&2){let t=d().$implicit;n(),I(" ",t.Transaction_Type__c," ",t.Online__c===1?"(OL)":""," ")}}function Za(e,c){if(e&1&&(a(0,"span"),r(1),C(2,"slice"),o()),e&2){let t=d().$implicit;n(),I(" ",B(2,2,t.className,0,21),"",t.className.length>21?"...":""," ")}}function Xa(e,c){e&1&&(a(0,"div",303),r(1," Pkg "),o())}function tl(e,c){if(e&1&&(a(0,"span",298),r(1),o()),e&2){let t=d(2).$implicit;n(),u(" ",t.deduct," ")}}function el(e,c){if(e&1&&(a(0,"div",303),r(1),C(2,"number"),s(3,tl,2,1,"span",298),o()),e&2){let t=d().$implicit,l=d(2);n(),u(" ",k(2,2,t.Display_price__c,"2.2-2")," "),n(2),p(l.voidTckt?-1:3)}}function il(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),s(2,Ka,2,2,"span"),s(3,Za,3,6,"span"),r(4),o(),f(5,"div",47),s(6,Xa,2,0,"div",303),s(7,el,4,5,"div",303),o()),e&2){let t=c.$implicit;n(2),p(t.Transaction_Type__c!=="Class"?2:-1),n(),p(t.Transaction_Type__c==="Class"?3:-1),n(),I(" ",t.Transaction_Type__c==="Package"?t.packageName:""," ",t.Transaction_Type__c==="Gift"?t.Gift_Number__c:""," "),n(2),p(t.Client_Package?6:-1),n(),p(t.Client_Package?-1:7)}}function nl(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3,"Other"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()(),a(8,"div",269),M(9,il,8,6,"div",45,E),o()()),e&2){let t=d();n(6),u(" ",k(7,1,t.otherTotal,"2.2-2")),n(3),O(t.ticketOthersList)}}function ol(e,c){if(e&1&&(a(0,"div",45)(1,"div",270),r(2),o(),f(3,"div",47),a(4,"div",303),r(5),C(6,"number"),o()()),e&2){let t=c.$implicit;n(2),I("",t.workerName," - ",t.Tip_Option__c," "),n(3),S(k(6,3,t.Tip_Amount__c,"1.2-4"))}}function al(e,c){if(e&1){let t=w();a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Tip"),o(),f(4,"div",47),a(5,"input",304),F("ngModelChange",function(i){v(t);let m=d();return N(m.tipTotalHidden,i)||(m.tipTotalHidden=i),b(i)}),o(),a(6,"div",48),r(7),C(8,"number"),o()(),a(9,"div",269),M(10,ol,7,6,"div",45,E),o()()}if(e&2){let t=d();n(5),D("value",z(t.tipTotal)),L("ngModel",t.tipTotalHidden),n(2),u("",k(8,4,t.tipTotal,"2.2-2")," "),n(3),O(t.workerTipsList)}}function ll(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",46),r(3," Tax"),o(),f(4,"div",47),a(5,"div",48),r(6),C(7,"number"),o()()()),e&2){let t=d();n(6),u(" ",k(7,1,t.prepaidTax,"2.2-2"))}}function rl(e,c){if(e&1&&(a(0,"div",45)(1,"div",136),r(2),o(),f(3,"div",47),a(4,"div",50),r(5),C(6,"number"),o()()),e&2){let t=c.$implicit;n(2),u("Incl Tckt Amt [",t.Name,"] "),n(3),u(" ",k(6,2,-t.Included_Ticket_Amount__c,"2.2-2"))}}function cl(e,c){if(e&1&&(a(0,"div",44),M(1,rl,7,5,"div",45,E),o()),e&2){let t=d();n(),O(t.includedTicketsList)}}function dl(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),S(k(2,1,t.prepaidTax+t.subTotal,"2.2-2"))}}function sl(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function pl(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.subTotal+t.prepaidTax+t.includedTicketsTotal,"2.2-2"))}}function ml(e,c){if(e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2){let t=d();n(),u(" ",k(2,1,t.prepaidTax,"2.2-2"))}}function _l(e,c){e&1&&(a(0,"h2",51),r(1),C(2,"number"),o()),e&2&&(n(),u(" ",k(2,1,0,"2.2-2")))}function hl(e,c){if(e&1&&r(0),e&2){let t=d().$implicit;u(" ***",t.CardLast4," ")}}function ul(e,c){if(e&1&&(a(0,"div",44)(1,"div",45)(2,"div",136),r(3," change back"),o(),f(4,"div",47),a(5,"div",50),r(6),C(7,"number"),o()()()),e&2){let t=d().$implicit;n(6),u(" ",k(7,1,t.Change_Back__c,"2.2-2"))}}function Cl(e,c){if(e&1&&(a(0,"div",39)(1,"div",44)(2,"div",45)(3,"div",136),r(4),s(5,hl,1,1),o(),f(6,"div",47),a(7,"div",50),r(8),C(9,"number"),o()()(),s(10,ul,8,4,"div",44),o()),e&2){let t=c.$implicit;n(4),u(" ",t.paymentTypeName==="Gift Redeem"?t.Gift_Number__c:t.paymentTypeName," \xA0 "),n(),p(t.paymentTypeName==="Token On File"?5:-1),n(3),u(" ",k(9,4,t.Amount_Paid__c,"2.2-2")),n(2),p(t.Change_Back__c?10:-1)}}function xl(e,c){if(e&1&&(a(0,"div",18)(1,"h4"),r(2),o()()),e&2){let t=d();n(2),I("",t.dispCashDrawer," - ",t.dispShift)}}function kl(e,c){if(e&1&&(a(0,"div",168)(1,"h4"),r(2),o()()),e&2){let t=d();n(2),S(t.posLists)}}function fl(e,c){if(e&1){let t=w();a(0,"input",305),F("ngModelChange",function(i){v(t);let m=d();return N(m.clientPhone,i)||(m.clientPhone=i),b(i)}),g("input",function(i){v(t);let m=d();return b(m.formatPhoneNumber(i))}),o()}if(e&2){let t=d();L("ngModel",t.clientPhone)}}function gl(e,c){if(e&1){let t=w();a(0,"input",306),F("ngModelChange",function(i){v(t);let m=d();return N(m.clientEmail,i)||(m.clientEmail=i),b(i)}),o()}if(e&2){let t=d();L("ngModel",t.clientEmail)}}var rt=(()=>{class e{constructor(t,l,i,m,h,x){this.route=t,this.router=l,this.toastr=i,this.commonService=m,this.http=h,this.sanitizer=x,this.TicketServiceData=[],this.bookApptVal="",this.ticketPaymentList=[],this.autoList=[],this.imgPath=Vt,this.error="",this.rewardsList=[],this.selWor="",this.apptData={apdate:"",clientName:"",visttype:"",clientId:"",Status__c:"",aptName:"",cltemail:"",Name:"",isRefund__c:0},this.visitTypes=[],this.visitType="",this.includedTicketsList=[],this.serviceTotal=0,this.productTotal=0,this.otherTotal=0,this.tipTotal=0,this.paymentTotal=0,this.paymentTotal1=0,this.includedTicketsTotal=0,this.serTax=0,this.prodTax=0,this.totalTax=0,this.totalsTax=0,this.subTotal=0,this.CreatedDate=["",""],this.emailTemplate=!1,this.LastModifiedDate=["",""],this.isRebook=!1,this.isBookAppt=!1,this.balanceDue=0,this.merchantName="",this.packageTax=0,this.inputs=[],this.tipsArray=[],this.serviceworkerId="",this.productWorkerId="",this.productName="",this.productId="",this.serviceNotes="",this.lists=[],this.delTipAry=[],this.styleOnClickPoor="logo-active",this.styleOnClickFair="logo-active",this.styleOnClickGood="logo-active",this.ticketRate="",this.tipAmountAdd=0,this.paymentType="",this.tipName="Tip Left in Drawer",this.cashBackAmt=0,this.tipArrTicketServ=[],this.editTipAmnt=0,this.setPermissin=0,this.serviceAmount=0,this.productAmount=0,this.prepaidTax=0,this.showstar=!1,this.submitParam=!0,this.trigger=!0,this.giftBtns=!1,this.giftTrigger=!0,this.mailTrigger=!0,this.voidTckt=!1,this.originalTicketSrvc=1,this.tokenData={},this.showVoidButton=!0,this.rfdsrvcAry=[],this.rfdPrdAry=[],this.rfdOthrAry=[],this.rfdTipAry=[],this.ticketTipObj=[],this.tipsRows=!1,this.showDeduct=0,this.clientTktServicePkg=!0,this.showWorkerList=!1,this.deletedTipArray=[],this.deletedAmount=0,this.displayVoidBtn=!0,this.clientPackageData=[],this.oldTipAmount=0,this.displayIssueRefund=!1,this.includeTcktmsg="",this.tippyTicket=!1,this.paymentTypeObj=[],this.maxDate=new Date,this.showReopenBtn=!0,this.dispCashDrawer="",this.dispShift="",this.drawerList=[],this.classDetailTicket=!1,this.creditCardFee=0,this.ticketPayAmt=0,this.ticketotherStpncp=[],this.showMySrvcNote=!0,this.showWorkerName=!1,this.hideTipOption=!1,this.dispStrkTipBtn=!1,this.TabClass=["active",""],this.TabsArray=[!0,!1],this.TabVal="sms",this.clientPhone="",this.invoiceStatus="",this.m360Instance=ot.toString()==="GENER
1IC"||ot.toString()==="M360",this.recieptModal=V,this.smileModal=V,this.productModal=V,this.serviceModal=V,this.otherModal=V,this.tipModal=V,this.editTicketModal=V,this.paymentModal=V,this.myModal=V,this.editTipModal=V,this.voidTicketModal=V,this.emailGiftModal=V,this.striketipModal=V,this.route.queryParams.subscribe(_=>{this.apptId=t.snapshot.params.TicketId,_.voidticket==="true"&&(this.voidTckt=!0)}),this.datePickerConfig=Object.assign({},{showWeekNumbers:!1,containerClass:"theme-blue",dateInputFormat:"MM/DD/YYYY"})}ngOnInit(){try{this.decodedToken=this.commonService.decodeToken(localStorage.getItem("rights")),this.decodeUserToken=this.commonService.decodeToken(localStorage.getItem("token"))}catch(l){this.decodedToken={},this.decodeUserToken={}}if(this.decodedToken.data&&this.decodedToken.data.permissions?this.decodedToken=JSON.parse(this.decodedToken.data.permissions):this.decodedToken={},localStorage.getItem("browserObject")){let l=localStorage.getItem("browserObject");this.cashDrawer=JSON.parse(l).CashDrawer.split(" ")[0],this.shift=JSON.parse(l).Shift}this.listVisitTypes(),this.getApptDetails(this.apptId),setTimeout(()=>{this.getTicketServices(this.apptId),this.getOthersTicketDetails(),this.getTicketProducts(this.apptId),this.getTicketPayment(this.apptId),setTimeout(()=>{this.getWorkerTips()},1500),this.calCharge()},1500),this.posDeviceList(),this.getGiftTemplate(),this.tokenData=this.commonService.decodeToken(localStorage.getItem("token")).data,this.getBookingData();var t=document.getElementById("editTicketModal");t&&t.addEventListener("click",function(l){if(l.target.id==="editTicketModal"){t.style.display="none";let m=document.getElementById("apptModal");m&&m.click()}}),this.http.get("https://pay.strikepay.co/api/tags/stx?uid=40312876").subscribe(l=>{l.teamId?this.dispStrkTipBtn=!0:this.dispStrkTipBtn=!0},l=>{})}getApptDetails(t){this.commonService.commonGet("/api/appointments/"+t).subscribe(l=>{if(this.apptData=l.result[0],this.apptData.IsDeleted?(this.router.navigate(["/completedticket/"+this.apptId],{queryParams:{voidticket:!0}}),this.voidTckt=!0):this.getIncludedTickets(this.apptId),this.apptData&&this.apptData.Status__c==="Checked In"&&this.apptData.IsDeleted===0&&this.router.navigate(["/checkout/"+t]).then(()=>{}),this.apptData){this.modifiedUser=this.apptData.modifiedUser,this.ticketNumber=this.apptData.Name,this.groupId=this.apptData.GroupId,this.invoiceStatus=this.apptData.invoiceStatus,this.invoiceStatus==="Paid"&&(this.invoiceStatus="Invoice"),l.result[0].lastmofdate&&(this.lastmofdate=this.commonService.getUsrDtStrFrmDBStr(l.result[0].lastmofdate)),this.clientName=this.apptData.clientName?this.apptData.clientName:"",this.clientId=this.apptData.clientId,this.clientId&&(this.getClientRewardsData(this.clientId),setTimeout(()=>{this.getClientPackages(this.clientId)},2e3)),this.status=this.apptData.Status__c,this.apptName=this.apptData.aptName,this.clientEmail=this.apptData.cltemail,this.clientPhone=this.apptData.mbphone?.replace(/^01-/,"");let i=this.apptData.isRefund__c;if(this.getClientRewardDatabyApptId(this.apptId,i),(this.apptId&&!this.clientName||this.clientName===""||this.clientName===null)&&(this.noclientLabel="NO CLIENT",this.accountBal=0),this.apptData&&this.apptData.apdate!=="")this.refundApptDate=this.apptData.apdate;else{let m=new Date,h=m.getMonth()+1+"/"+m.getDate()+"/"+m.getFullYear()}if(this.displayIssueRefund=!0,setTimeout(()=>{!this.apptData.visttype||this.apptData.visttype==="null"?this.visitType="":this.visitType=this.apptData.visttype},500),(this.clientId!=="null"||this.clientId!=="")&&(this.apptId!=="null"||this.apptId!=="")){let m=new Date,h=new Date(this.apptData.apdate),x=m.getMonth()+1+"-"+m.getDate()+"-"+m.getFullYear(),_=h.getMonth()+1+"-"+h.getDate()+"-"+h.getFullYear();(this.status==="Checked In"||this.status==="Complete")&&_===x&&this.clientId?this.isRebook=this.apptData.isNoService__c===0:(this.status==="Checked In"||this.status==="Complete")&&_<x&&this.clientId&&(this.isBookAppt=this.apptData.isNoService__c===0)}this.getWorkerLists(),this.styleOnClickPoor="logo-active",this.styleOnClickFair="logo-active",this.styleOnClickGood="logo-active",this.apptData.Ticket_Rating__c==="Good"?(this.styleOnClickPoor="logo-inactive",this.styleOnClickFair="logo-inactive"):this.apptData.Ticket_Rating__c==="Fair"?(this.styleOnClickPoor="logo-inactive",this.styleOnClickGood="logo-inactive"):this.apptData.Ticket_Rating__c==="Poor"&&(this.styleOnClickGood="logo-inactive",this.styleOnClickFair="logo-inactive"),this.appointmentDate=new Date(this.apptData.apdate),this.ticketDate=this.commonService.getUsrDtStrFrmDBStr(this.apptData.apdate)}},l=>{let i=l.error.status;l.error.status,(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getTicketServices(t){let l;this.voidTckt&&(l={voidticket:"true"}),this.commonService.commonGetHeader("/api/checkout/services/"+t,l).subscribe(i=>{if(this.TicketServiceData=i.result.ticetServices,this.TicketServiceData&&this.TicketServiceData.length>0?this.bookApptVal="Rebook":this.bookApptVal="Book Appt",!this.voidTckt){let h=[];this.TicketServiceData.forEach((function(x){return function(_){x[_.workerId]||(x[_.workerId]={workerId:_.workerId,Price__c:0},h.push(x[_.workerId])),x[_.workerId].Price__c+=+_.Net_Price__c}})(Object.create(null))),this.tipArrTicketServ=h}for(let h=0;h<this.TicketServiceData.length;h++)setTimeout(()=>{this.TicketServiceData[h].deduct="",this.TicketServiceData[h].Deduct_From_Worker__c&&this.TicketServiceData[h].isRefund__c&&(this.TicketServiceData[h].deduct="DEDUCTED"),this.TicketServiceData[h].Original_Ticket_Service__c&&this.apptData.isRefund__c===0&&(this.TicketServiceData[h].deduct="R")},1e3);this.TicketServiceData.filter(h=>h.Original_Ticket_Service__c&&!h.isRefund__c).length>0&&(this.originalTicketSrvc=0,this.showVoidButton=!1),this.calServRetTax()},i=>{let m=i.error.status;i.error.status,(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getTicketProducts(t){let l;this.voidTckt&&(l={voidticket:"true"}),this.commonService.commonGetHeader("/api/checkout/ticketproducts/"+t,l).subscribe(i=>{this.ticketProductsList=i.result;for(let h=0;h<this.ticketProductsList.length;h++)setTimeout(()=>{this.ticketProductsList[h].deduct="",this.ticketProductsList[h].Deduct_From_Worker__c&&this.ticketProductsList[h].isRefund__c&&(this.ticketProductsList[h].deduct="DEDUCTED"),this.ticketProductsList[h].Original_Ticket_Product__c&&this.apptData.isRefund__c===0&&(this.ticketProductsList[h].deduct="R")},1e3),this.ticketProductsList[h].Size__c&&this.ticketProductsList[h].Unit_of_Measure__c?this.ticketProductsList[h].dispName=this.ticketProductsList[h].Name+"- "+this.ticketProductsList[h].Size__c+" "+this.ticketProductsList[h].Unit_of_Measure__c:this.ticketProductsList[h].dispName=this.ticketProductsList[h].Name;this.ticketProductsList.filter(h=>h.Original_Ticket_Product__c&&!h.isRefund__c).length>0&&(this.originalTicketSrvc=0,this.showVoidButton=!1),this.calServRetTax(),this.calCharge()},i=>{let m=i.error.status;i.error.status,(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getTicketPayment(t,l){this.ticketPayAmt=0;let i;this.voidTckt&&(i={voidticket:"true"}),this.commonService.commonGetHeader("/api/checkout/ticketpayments/"+this.apptId,i).subscribe(m=>{let h=m.result.paymentList.filter(_=>_.Change_Back__c&&_.Appt_Ticket__c===this.apptId);this.changeBack=0;for(let _=0;_<h.length;_++)this.changeBack=this.changeBack+h[_].Change_Back__c;this.ticketPaymentList=m.result.paymentList.filter(function(_){return _.paymentTypeName!=="Prepaid Package"});let x=0;for(let _=0;_<this.ticketPaymentList.length;_++)x+=Number(this.ticketPaymentList[_].Amount_Paid__c),this.dispCashDrawer=this.ticketPaymentList[_].Drawer_Number__c,this.ticketPaymentList[_].Drawer_Number__c&&this.drawerList.length>0&&this.drawerList.forEach(T=>{T.drawerNumber===this.ticketPaymentList[_].Drawer_Number__c&&(this.dispCashDrawer=this.ticketPaymentList[_].Drawer_Number__c+" "+T.drawerName)}),this.dispShift=this.ticketPaymentList[_].Shift__c,this.ticketPayAmt+=this.ticketPaymentList[_].Amount_Paid__c;if(this.cashBackAmt=this.subTotal+this.totalTax-x,this.electronicPaymentData=m.result.elecpaymtRefunds,m.result&&m.result.balanceDue.length>0,this.ticketPaymentList&&this.ticketPaymentList.length>0){let _=m.result.balanceDue.map(T=>(T.paymentTypeName="Ticket # "+T.Name,T.Amount_Paid__c=-T.inclAmount,T.type="included",T));_&&_.length>0&&_[0].inclAmount<0&&this.ticketPaymentList.push(_[0]),this.CreatedDate=this.commonService.getUsrDtStrFrmDBStr(m.result.balanceDue[0].CreatedDate),this.LastModifiedDate=this.commonService.getUsrDtStrFrmDBStr(m.result.balanceDue[0].LastModifiedDate),this.checkdate(this.LastModifiedDate)}else this.ticketPaymentList=[],this.CreatedDate=this.commonService.getUsrDtStrFrmDBStr(m.result.balanceDue[0].CreatedDate),this.LastModifiedDate=this.commonService.getUsrDtStrFrmDBStr(m.result.balanceDue[0].LastModifiedDate),this.ticketPaymentList=m.result.balanceDue.map(_=>(_.paymentTypeName="Ticket # "+_.Name,_.Amount_Paid__c=-_.inclAmount,_.type="included",_));for(let _=0;_<this.ticketPaymentList.length;_++)this.ticketPaymentList[_].Notes__c&&(this.ticketPaymentList[_].paymentNotesFeild=this.ticketPaymentList[_].paymentTypeName+" - "+this.ticketPaymentList[_].Notes__c),this.ticketPaymentList[_].paymentTypeName==="Gift Redeem"&&(this.ticketPaymentList[_].Gift_Number__c="GIFT #"+this.ticketPaymentList[_].Gift_Number__c),l&&this.paymentTypeObj.push(this.ticketPaymentList[_].paymentTypeName+" - Payment Note...");this.calCharge()},m=>{let h=m.status,x=m.error.status;switch(h){case 500:break;case 400:x==="2008"?(this.error="Record cannot be deleted due to dependency",window.scrollTo(0,0)):(x==="2044"||x==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}})}getClientRewardsData(t){this.commonService.commonGet("/api/client/rewards/"+t).subscribe(l=>{l.result.length>0&&l.result[0].Points_Balance__c?(this.showstar=!0,this.clientPoints=l.result[0].Points_Balance__c):this.showstar=!1},l=>{let i=l.error.status;(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getWorkerTips(){let t;this.voidTckt&&(t={voidticket:"true"}),this.commonService.commonGetHeader("/api/checkout/tips/"+this.apptId,t).subscribe(l=>{this.workerTipsList=l.result,this.ticketTipObj=l.result;for(let h=0;h<this.workerTipsList.length;h++)this.workerTipsList[h].Original_Ticket_Tip__c&&this.apptData.isRefund__c===0&&(this.workerTipsList[h].deduct="R");this.workerTipsList.filter(h=>h.Original_Ticket_Tip__c&&!h.isRefund__c).length>0&&(this.originalTicketSrvc=0,this.showVoidButton=!1),this.tipsArray.length===0?l.result.forEach(h=>{this.tipsArray.push({id:h.tipId,workerId:h.Worker__c,workerName:h.workerName,tipAmount:h.Tip_Amount__c?h.Tip_Amount__c.toFixed(2):0,oldTipAmount:h.oldTipAmount,tipOption:h.Tip_Option__c,Drawer_Number__c:h.Drawer_Number__c?h.Drawer_Number__c:this.cashDrawer,Shift__c:h.Shift__c?h.Shift__c:this.shift})}):l.result.forEach(h=>{let x=this.tipsArray.filter(_=>h.tipId===_.id);this.tipsArray.forEach(_=>{_.workerId===h.Worker__c&&(_.id=h.tipId,_.oldTipAmount=h.oldTipAmount)})}),this.tipsArray.length===0&&(this.showWorkerList=!0),this.tipsArray.filter(h=>h.tipOption==="Tippy Tip").length>0?this.tippyTicket=!0:this.tippyTicket=!1,this.calCharge();for(let h=0;h<this.tipsArray.length;h++)for(let x=0;x<this.tipArrTicketServ.length;x++)this.tipArrTicketServ[x].workerId===this.tipsArray[h].workerId&&(this.tipsArray[h].tipAddFromCompletedTckt=!0)},l=>{let i=l.status,m=l.error.status;switch(i){case 500:break;case 400:m==="2008"?(this.error="Record cannot be deleted due to dependency",window.scrollTo(0,0)):(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}})}getOthersTicketDetails(){let t;this.voidTckt&&(t={voidticket:"true"}),this.commonService.commonGetHeader("/api/checkout/ticketother/"+this.apptId,t).subscribe(l=>{this.ticketOthersList=l.result,this.ticketotherStpncp=l.result;for(let _=0;_<this.ticketOthersList.length;_++)this.ticketOthersList[_].Original_Ticket_Other__c&&this.apptData.isRefund__c===0&&(this.ticketOthersList[_].deduct="R");this.ticketOthersList.filter(_=>_.Original_Ticket_Other__c&&!_.isRefund__c).length>0&&(this.showVoidButton=!1,this.originalTicketSrvc=0),this.ticketOthersList=this.ticketOthersList.filter(_=>_.Transaction_Type__c!=="Non Cash Payment"&&_.Transaction_Type__c!=="NCP Fee"),this.ticketOthersList=this.ticketOthersList.map(_=>(_.Transaction_Type__c==="Package"?(_.packageName="- "+_.packageName,_.Amount__c=_.Package_Price__c):_.packageName="",_)),this.ticketOthersList.filter(_=>_.Transaction_Type__c==="Gift").length>0&&(this.displayVoidBtn=!1,this.giftBtns=!0),this.ticketOthersList.filter(_=>_.Transaction_Type__c==="Deposit"&&_.Online__c).length>0&&(this.displayVoidBtn=!1),this.calServRetTax(),this.calCharge(),this.ticketOthersList.length>0?(this.ticketOthersList.filter(y=>y.Transaction_Type__c==="Class").length>0?(this.classDetailTicket=!0,this.displayVoidBtn=!1):(this.displayVoidBtn=!0,this.classDetailTicket=!1),this.ticketOthersList.filter(y=>y.Transaction_Type__c==="Package"||y.clientpkgTktService>0).length>0&&(this.clientTktServicePkg=!1)):this.displayVoidBtn=!0,this.ticketOthersList.filter(_=>_.Transaction_Type__c==="Membership").length>0?this.showReopenBtn=!1:this.showReopenBtn=!0},l=>{let i=l.status,m=l.error.status;switch(i){case 500:break;case 400:break}(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getIncludedTickets(t){this.commonService.commonGet("/api/checkout/apptincludetickets/"+t).subscribe(l=>{this.includedTicketsList=l.result,this.calCharge()},l=>{let i=l.error.status;l.error.status,(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}calCharge(){this.serviceTotal=0,this.productTotal=0,this.otherTotal=0,this.paymentTotal=0,this.paymentTotal1=0,this.tipTotal=0,this.includedTicketsTotal=0,this.subTotal=0;let t=0;if(this.TicketServiceData&&this.TicketServiceData.length>0)for(let l=0;l<this.TicketServiceData.length;l++)this.TicketServiceData[l].Booked_Package__c||this.TicketServiceData[l].Client_Package__c?this.serviceTotal+=0:(t+=this.TicketServiceData[l].Net_Price__c,this.TicketServiceData[l].reward__c||this.TicketServiceData[l].Promotion__c?this.serviceTotal+=parseFloat(this.TicketServiceData[l].Display_price__c)-this.TicketServiceData[l].discountAmount:this.serviceTotal+=parseFloat(this.TicketServiceData[l].Display_price__c));if(this.ticketProductsList&&this.ticketProductsList.length>0)for(let l=0;l<this.ticketProductsList.length;l++)t+=this.ticketProductsList[l].Net_Price__c*this.ticketProductsList[l].quantity,this.ticketProductsList[l].Reward__c||this.ticketProductsList[l].Promotion__c?this.productTotal+=(this.ticketProductsList[l].Display_price__c-this.ticketProductsList[l].discountAmount)*this.ticketProductsList[l].quantity:this.productTotal+=this.ticketProductsList[l].Display_price__c*this.ticketProductsList[l].quantity;if(this.workerTipsList&&this.workerTipsList.length>0)for(let l=0;l<this.workerTipsList.length;l++)this.workerTipsList[l].Tip_Amount__c&&(this.tipTotal+=parseFloat(this.workerTipsList[l].Tip_Amount__c));if(this.ticketOthersList&&this.ticketOthersList.length>0)for(let l=0;l<this.ticketOthersList.length;l++)t+=this.ticketOthersList[l].intialPrice,this.ticketOthersList[l].Client_Package&&this.ticketOthersList[l].Client_Package!==null?this.otherTotal+=0:this.otherTotal+=parseFloat(this.ticketOthersList[l].Display_price__c);if(this.includedTicketsList.length>0&&(this.includedTicketsTotal=parseFloat(this.includedTicketsList.map(l=>-+l.Included_Ticket_Amount__c).reduce(this.calculateSum))),this.subTotal=this.serviceTotal+this.productTotal+this.tipTotal+this.otherTotal,this.ticketPaymentList&&this.ticketPaymentList.length>0)for(let l=0;l<this.ti
1cketPaymentList.length;l++)this.paymentTotal+=parseFloat(this.ticketPaymentList[l].Amount_Paid__c),this.ticketPaymentList[l].Paid_By_Ticket__c&&(this.includeTcktmsg="INCLUDED ON TICKET #"+this.ticketPaymentList[l].Name);if(this.electronicPaymentData&&this.electronicPaymentData.length>0)for(let l=0;l<this.electronicPaymentData.length;l++)this.electronicPaymentData[l].apptdate=this.commonService.getUsrDtStrFrmDBStr(this.electronicPaymentData[l].Appt_Date_Time__c),this.paymentTotal1+=parseFloat(this.electronicPaymentData[l].Amount_Paid__c);this.includedTicketsList.length>0&&(this.includedTicketsTotal=parseFloat(this.includedTicketsList.map(l=>-+l.Included_Ticket_Amount__c).reduce(this.calculateSum)))}getClientRewardDatabyApptId(t,l){this.commonService.commonGet("/api/checkout/clientRewards/"+t+"/"+l).subscribe(i=>{this.rewardsList=i.result,this.rewardsList&&(this.rewardsList=this.rewardsList.filter(function(m){return m.earnedPoints||m.usedPoints}))},i=>{let m=i.error.status;(m==="2044"||m==="2033")&&this.router.navigate(["/"]).then(()=>{})})}calServRetTax(){if(this.serTax=0,this.prodTax=0,this.packageTax=0,this.totalTax=0,this.prepaidTax=0,this.TicketServiceData&&this.TicketServiceData.length>0){for(let t=0;t<this.TicketServiceData.length;t++){let l=this.TicketServiceData[t].Client_Package__c,i=this.TicketServiceData[t].Booked_Package__c,m=+this.TicketServiceData[t].Taxable__c;!(l||i)&&m===1&&(this.serTax+=this.TicketServiceData[t].Service_Tax__c)}for(let t=0;t<this.TicketServiceData.length;t++)if(this.clientPackageData.ClientPackageData&&this.clientPackageData.ClientPackageData.length>0)for(let l=0;l<this.clientPackageData.ClientPackageData.length;l++){let m=JSON.parse(this.clientPackageData.ClientPackageData[l].Package_Details__c).filter(h=>h.serviceId===this.TicketServiceData[t].ServiceId);m&&m.length>0&&!m[0].taxable&&this.TicketServiceData[t].Taxable__c===1&&(this.serTax+=this.TicketServiceData[t].Service_Tax__c)}}if(this.ticketProductsList&&this.ticketProductsList.length>0)for(let t=0;t<this.ticketProductsList.length;t++)this.ticketProductsList[t].Taxable__c===1&&(this.prodTax+=this.ticketProductsList[t].Product_Tax__c);if(this.ticketOthersList&&this.ticketOthersList.length>0)for(let t=0;t<this.ticketOthersList.length;t++)(this.ticketOthersList[t].Package__c||this.ticketOthersList[t].Membership__c)&&(this.packageTax+=this.ticketOthersList[t].Service_Tax__c);if(this.TicketServiceData.length>0){let t=0;for(let l=0;l<this.TicketServiceData.length;l++)this.TicketServiceData[l].Booked_Package__c||this.TicketServiceData[l].Client_Package__c||(t+=this.TicketServiceData[l].Service_Tax__c);for(let l=0;l<this.TicketServiceData.length;l++)if(this.clientPackageData.ClientPackageData&&this.clientPackageData.ClientPackageData.length>0)for(let i=0;i<this.clientPackageData.ClientPackageData.length;i++){let h=JSON.parse(this.clientPackageData.ClientPackageData[i].Package_Details__c).filter(x=>x.serviceId===this.TicketServiceData[l].ServiceId);h&&h.length>0&&!h[0].taxable&&this.TicketServiceData[l].Taxable__c===1&&(t+=this.TicketServiceData[l].Service_Tax__c)}this.prepaidTax=t+this.prodTax+this.packageTax,this.totalTax=t+this.packageTax}else this.prepaidTax=this.serTax+this.prodTax+this.packageTax,this.totalTax=this.prodTax+this.packageTax}calculateSum(t,l){return t+l}commonCancelModal(){this.recieptModal.hide(),this.error=""}clearErrMsg(){this.error=""}printDiv(){let t,l;t=document.getElementById("inner_cont").innerHTML;let m=t+"<style>"+"@import url(https://fonts.googleapis.com/css?family=Inter,sans-serif:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);body{font-size:8pt; line-height:1;}*,h4{margin:0;line-height:1.1}.total,h4{text-align:center}*{font-family:Inter,sans-serif;padding:0;font-size:14px}.profile-list-view-txt{padding:20px 0;font-size:18px}h4{display:block;font-size:18px;font-weight:400;padding:0 0 10px}.check-profile-list-img,.check-profile-list-name{font-family:Inter,sans-serif!important;font-weight:400;text-align:center;float:none;width:100%;margin:0;padding:0}.check-profile-list-name,.price-total,.sub-item-service{font-size:18px;font-weight:600}.checkoutlist,.drawer-button,.merchantDropDown{padding:0 15px}.check-profile-list{display:flex;align-items:center;max-width:400px;width:100%;margin:0 auto 7px;cursor:pointer}.check-profile-list-img{width:61px;height:61px;float:left;margin-left:-70px}.check-profile-list-img img{width:61px;height:61px;border-radius:100%;object-fit:cover;border:1px solid #fff}.check-profile-list-name{width:100%;line-height:1.1;text-transform:uppercase;color:#000;padding:20px 0}.check-profile-list-name.text-uppercase{padding-top:0}.check-profile-list-name h4{font-size:18px;line-height:1;margin:0;padding:0}.check-profile-details-in{max-width:400px;width:100%;margin:0 auto}.sub-item-service{display:table;line-height:20px;width:100%;margin-bottom:15px;color:#000}.sub-item-service .sub-item1,.sub-item2,.sub-item3{display:table-cell;width:auto}.listcharge,.total{display:inline-block;vertical-align:top;margin-top:15px}.price-total{line-height:1;text-transform:uppercase;color:#000;width:126px}.total{width:136px;font-size:20px;color:#000}.sub-item-service .sub-item3,.sub-item3 h4{text-align:right}.total-charge{margin-top:0;padding-bottom:20px}.sub-item-service .ng-star-inserted{display:table;width:100%}.merchantDropDown{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.ml-50{margin-left:-30px}.merchantDropDown select{padding:0 15px;height:27px;font-size:12px;line-height:12px;width:52%!important}.checkoutlist a:hover{text-decoration:underline!important}.charge-btn{padding-top:3px;padding-bottom:4px;margin-top:12px}.sub-item-service.desc{margin-bottom:5px}.sub-item-service .sub-item1 span.disc{margin-right:10px;text-transform:uppercase;padding:2px 5px 2px 10px}.sub-item3 span{text-decoration:line-through;padding-right:10px}.sub-item-service .sub-item1,.sub-item3{white-space:nowrap;width:25%}.sub-item3 h4{padding:0}.sub-item-service .sub-item2{border-bottom:1px solid rgba(231,234,242,1)}.sub-item-sub{padding:0 10%}.sub-item-sub .sub-item-service{font-weight:400}"+"</style>";l=window.open("","_blank","top=0,left=0,height=100%,width=auto"),l.document.open(),l.document.write(`
2    <html>
3      <head>
4        <title>BILL RECEIPT</title>
5        <style>
6        * {
7          -webkit-print-color-adjust: exact !important;
8          color-adjust: exact !important
9        }
10        table {
11          border-collapse: collapse;
12        }
13        table, th, td {
14            border: 0.5px solid black;
15        }
16        .pri td {
17          padding:6px;
18        }
19        .arc {
20          float:left;
21          margin:12px;
22        }
23        .arc button {
24          margin-top:10px;
25        }
26        .total {
27          margin:6px;
28        }
29        </style>
30        </head>
31      <body style="border: 3px solid black;
32            border-radius: 12px;"
33            onload="window.print();setTimeout(function(){window.close()},1000);">${m}</body>
34    </html>`),l.document.close()}sendEmailReciept(){let t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!this.clientEmail)this.toastr.error("Client Email is required","",{timeOut:1500});else if(this.clientEmail&&!t.test(this.clientEmail))this.toastr.error("Client Email is invali
34d","",{timeOut:1500});else{let m=document.getElementById("inner_cont").innerHTML.replace(/✕/g,"&times;")+"<style>"+"@import url(https://fonts.googleapis.com/css?family=Inter:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);body{font-size:8pt; line-height:1;}*,h4{margin:0;line-height:1.1}.total,h4{text-align:center}*{font-family:Inter,sans-serif;padding:0;font-size:14px}.profile-list-view-txt{padding:20px 0;font-size:18px}h4{display:block;font-size:18px;font-weight:400;padding:0 0 10px}.check-profile-list-img,.check-profile-list-name{font-family:Inter,sans-serif!important;font-weight:400;text-align:center;float:none;width:100%;margin:0;padding:0}.check-profile-list-name,.price-total,.sub-item-service{font-size:18px;font-weight:600}.checkoutlist,.drawer-button,.merchantDropDown{padding:0 15px}.check-profile-list{display:flex;align-items:center;max-width:400px;width:100%;margin:0 auto 7px;cursor:pointer}.check-profile-list-img{width:61px;height:61px;float:left;margin-left:-70px}.check-profile-list-img img{width:61px;height:61px;border-radius:100%;object-fit:cover;border:1px solid #fff}.check-profile-list-name{width:100%;line-height:1.1;text-transform:uppercase;color:#16337d;padding:20px 0}.check-profile-list-name.text-uppercase{padding-top:0}.check-profile-list-name h4{font-size:18px;line-height:1;margin:0;padding:0}.check-profile-details-in{max-width:400px;width:100%;margin:0 auto}.sub-item-service{display:table;line-height:20px;width:100%;margin-bottom:15px;color:#062675}.sub-item-service .sub-item1,.sub-item2,.sub-item3{display:table-cell;width:auto}.listcharge,.total{display:inline-block;vertical-align:top;margin-top:15px}.price-total{line-height:1;text-transform:uppercase;color:#16337d;width:126px}.total{width:136px;font-size:20px;color:#16337d}.sub-item-service .sub-item3,.sub-item3 h4{text-align:right}.total-charge{margin-top:0;padding-bottom:20px}.sub-item-service .ng-star-inserted{display:table;width:100%}.merchantDropDown{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.ml-50{margin-left:-30px}.merchantDropDown select{padding:0 15px;height:27px;font-size:12px;line-height:12px;width:52%!important}.checkoutlist a:hover{text-decoration:underline!important}.charge-btn{padding-top:3px;padding-bottom:4px;margin-top:12px}.sub-item-service.desc{margin-bottom:5px}.sub-item-service .sub-item1 span.disc{margin-right:10px;text-transform:uppercase;padding:2px 5px 2px 10px}.sub-item3 span{text-decoration:line-through;padding-right:10px}.sub-item-service .sub-item1,.sub-item3{white-space:nowrap;width:25%}.sub-item3 h4{padding:0}.sub-item-service .sub-item2{border-bottom:1px solid rgba(231,234,242,1)}.sub-item-sub{padding:0 10%}.sub-item-sub .sub-item-service{font-weight:400}"+"</style>",h={apptName:this.apptName,apptId:this.apptId,clientName:this.clientName,clientId:this.clientId,clientEmail:this.clientEmail,htmlFile:m};this.mailTrigger&&(this.toastr.info("Sending Receipt","",{timeOut:1500}),this.mailTrigger=!1,this.commonService.commonPost("/api/checkout/emailreciept",{data:h}).subscribe(x=>{x.status==1001&&(this.recieptModal.hide(),this.toastr.success("Receipt sent successfully","",{timeOut:1500}),this.clientEmail="",this.mailTrigger=!0)},x=>{this.mailTrigger=!0;let _=x.status,T=x.error.status;switch(_){case 500:break;case 400:break}(T==="2044"||T==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))}))}}loadCompanyInfo(t){if(this.companyInfo=t,this.companyInfo.Phone__c){let l=this.companyInfo.Phone__c.split("-");this.cmpPhone=l[1]+"-"+l[2]}else this.cmpPhone=""}getWorkerLists(){this.commonService.commonGetHeader("/api/setupworkers/setupworkerdetail",{startDate:this.commonService.getDBDatTmStr(new Date).split(" ")[0]}).subscribe(t=>{this.activeWorkerLists=t.result.filter(l=>l.IsActive===1);for(let l=0;l<this.activeWorkerLists.length;l++)this.activeWorkerLists[l].workerId.indexOf("test")!==-1&&(this.defaultUserId=this.activeWorkerLists[l].workerId)})}activeSerive(){this.commonService.commonGet("/api/checkout/activeSerive/"+"asda").subscribe(l=>{this.serviceLists=l.result})}addWorkerTip(t){if(this.selWor){let l=this.tipsArray.filter(i=>i.workerId===this.selWor.split("$")[0]);l&&l.length===0?this.tipsArray.push({workerId:this.selWor.split("$")[0],workerName:this.selWor.split("$")[1],tipAmount:""}):this.toastr.warning("Worker already selected","",{timeOut:3e3}),this.inputs.push(this.selWor);for(let i=0;i<this.tipsArray.length;i++)for(let m=0;m<this.tipArrTicketServ.length;m++)this.tipArrTicketServ[m].workerId===this.tipsArray[i].workerId&&(this.tipsArray[i].tipAddFromCompletedTckt=!0)}}showRecieptModal(){this.recieptModal.show(),this.clientEmail=this.apptData.cltemail}showSmileModal(){this.smileModal.show()}showServiceModal(t){this.serviceworkerId=t.workerId,this.serviceName=t.ServiceName,this.serviceId=t.TicketServiceId,t.Notes__c&&(t.N
34otes__c=t.Notes__c.replace(/`/g,"'")),this.serviceNotes=t.Notes__c?t.Notes__c:"";let l=t.ServiceId;this.commonService.commonGet("/api/checkout/activeSerive/"+l).subscribe(i=>{if(this.serviceLists=i.result,this.serviceLists.length>0){this.serviceLists.filter(x=>x.workerId===t.workerId).length===0&&this.serviceLists.push({workerId:t.workerId,FullName:"("+t.FullName+")"});let h=this.serviceLists.filter(x=>x.workerId===this.serviceworkerId);this.showMySrvcNote=h&&h.length>0?h[0].showMyNotes:!0,this.serviceModal.show()}})}showProductModal(t){this.productWorkerId=t.workerId,this.productName=t.Name+"- "+t.Size__c+" "+t.Unit_of_Measure__c,this.productId=t.Id;let i=[{workerId:t.workerId,FullName:t.workerName}].concat(this.activeWorkerLists);this.productListsWorkers=this.commonService.removeDuplicates(i,"workerId"),this.productModal.show()}showOtherModal(t){this.otherWorkerId=t.Worker__c,t.Transaction_Type__c==="Package"?this.otherName=t.Transaction_Type__c+" "+t.packageName+" "+(t.Online__c===1?"(OL)":""):t.Transaction_Type__c==="Gift"&&(this.otherName=t.Gift_Number__c+" "+t.Gift_Number__c+" "+(t.Online__c===1?"(OL)":"")),this.otherId=t.Id,this.otherModal.show()}hidePopup(){this.recieptModal.hide(),this.smileModal.hide(),this.productModal.hide(),this.otherModal.hide(),this.serviceModal.hide(),this.tipModal.hide(),this.paymentModal.hide(),this.editTicketModal.hide(),this.editTipModal.hide(),this.clearErrorMsg(),this.tipAmountAdd=0,document.body.classList.remove("modal-open"),document.body.style.overflowY="auto"}closeEditTicketModal(){this.editTicketModal.hide()}otherSave(){let t={otherId:this.otherId,workerId:this.otherWorkerId};this.otherWorkerId.length>0&&this.commonService.commonPut("/api/checkout/otherUpdateWrk/"+this.otherId,t).subscribe(l=>{this.tipsArray=[],this.otherModal.hide(),this.closeEditTicketModal(),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.getOthersTicketDetails(),this.getApptDetails(this.apptId),this.getTicketPayment(this.apptId),this.toastr.success("Record Updated Successfully.","",{timeOut:1500})})},l=>{let i=l.status,m=l.error.status;switch(i){case 500:break;case 400:m==="2008"?(this.error="Record cannot be deleted due to dependency",window.scrollTo(0,0)):(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}})}productSave(){let t={productId:this.productId,workerId:this.productWorkerId};this.commonService.commonPut("/api/checkout/productUpdateWrk/"+this.productId,t).subscribe(l=>{this.productModal.hide(),this.closeEditTicketModal(),this.getApptDetails(this.apptId),this.getTicketProducts(this.apptId),this.getTicketPayment(this.apptId),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.toastr.success("Record Updated Successfully.","",{timeOut:1500})})},l=>{let i=l.status,m=l.error.status;switch(i){case 500:break;case 400:m==="2008"?(this.error="Record cannot be deleted due to dependency",window.scrollTo(0,0)):(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}})}serviceSave(){let t={serviceNote:this.serviceNotes,apptId:this.serviceId,serviceworkerId:this.serviceworkerId};this.commonService.commonPut("/api/checkout/serviceUpdateWrkNotes/"+this.serviceId,t).subscribe(l=>{this.serviceModal.hide(),this.closeEditTicketModal(),this.getTicketServices(this.apptId),this.getApptDetails(this.apptId),this.getTicketPayment(this.apptId),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.toastr.success("Record Updated Successfully.","",{timeOut:1500})})},l=>{let i=l.error.status;(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}saveAll(t){let l=[],i=0,m=[],h=[],x=[];if(this.tipsArray.filter(function(T){return!T.tipAmount}).length>0)this.toastr.warning("Amount cannot be empty","",{timeOut:3e3});else if(this.requireVisitType&&!this.visitType)this.toastr.error("A visit type is required to book.","",{timeOut:3e3});else{for(let T=0;T<this.tipsArray.length;T++)i+=Number(this.tipsArray[T].tipAmount);if(+this.tipTotal.toFixed(2)==+i.toFixed(2)){this.ticketPaymentList[0].Amount_Paid__c=parseFloat(this.ticketPaymentList[0].Amount_Paid__c),this.delTipAry.length>0&&(this.ticketPaymentList[0].Amount_Paid__c-=this.deletedAmount);for(let y=0;y<this.tipsArray.length;y++)i+=Number(this.tipsArray[y].tipAmount),this.tipsArray[y].id?m.push({update:"update",id:this.tipsArray[y].id,tip:this.tipsArray[y].tipAmount,tipName:this.tipsArray[y].tipOption?this.tipsArray[y].tipOption:this.tipName,Drawer_Number__c:this.tipsArray[y].Drawer_Number__c?this.tipsArray[y].Drawer_Number__c:this.cashDrawer,Shift__c:this.tipsArray[y].Shift__c?this.tipsArray[y].Shift__c:this.shift}):h.push({add:"add",apptId:this.apptId,workerId:this.tipsArray[y].workerId,tip:this.tipsArray[y].tipAmount,tipName:this.tipsArray[y].tipOption?this.tipsArray[y].tipOption:this.tipName,Drawer_Number__c:this.tipsArray[y].Drawer_Number__c?this.tipsArray[y].Drawer_Number__c:this.cashDrawer,Shift__c:this.tipsArray[y].Shift__c?this.tipsArray[y].Shift__c:this.shift}),this.tipsArray[y].oldTipAmount&&(this.ticketPaymentList[0].Amount_Paid__c-=parseFloat(this.tipsArray[y].oldTipAmount));for(let y=0;y<this.delTipAry.length;y++)m.filter($=>$.id===this.delTipAry[y]).length>0&&this.delTipAry.splice(y,1);this.tipsArray.forEach(y=>{this.ticketPaymentList[0].Amount_Paid__c+=parseFloat(y.tipAmount)}),x.push({Amount_Paid__c:this.ticketPaymentList[0].Amount_Paid__c,Id:this.ticketPaymentList[0].Id});let T={delete:this.delTipAry,addTipAry:h,updateTipId:m,apptId:this.apptId,visittype:this.apptData.visttype,ticketPaymentTipObj:x};this.commonService.commonPost("/api/checkout/tipAmountUpdate",T).subscribe(y=>{t==="saveRebook"?(this.router.navigate(["/findAppt/"+this.clientId+"/"+this.apptId],{queryParams:{bookingType:"rebook"}}),this.toastr.success("Record Saved Successfully.","",{timeOut:1500})):t==="saveNew"?this.router.navigate(["/checkout/newticket"]).then(()=>{this.toastr.success("Record Saved Successfully.","",{timeOut:1500})}):t==="save"&&(this.balanceDue=0,this.getTicketPayment(this.apptId),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{setTimeout(()=>{this.toastr.success("Record Saved Successfully.","",{timeOut:3e3})},1500)})),this.selWor="",this.delTipAry=[],this.getWorkerTips()},y=>{let P=y.error.status;(P==="2044"||P==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}else this.toastr.error("Allocated tips must add up to the Tips Ticket Total.","",{timeOut:3e3})}}addTicketRating(t){this.ticketRate=t,this.ticketRate==="Good"?(this.styleOnClickPoor="logo-inactive",this.styleOnClickFair="logo-inactive",this.styleOnClickGood="logo-active"):this.ticketRate==="Fair"?(this.styleOnClickPoor="logo-inactive",this.styleOnClickGood="logo-inactive",this.styleOnClickFair="logo-active"):this.ticketRate==="Poor"&&(this.styleOnClickGood="logo-inactive",this.styleOnClickFair="logo-inactive",this.styleOnClickPoor="logo-active")}ratingSend(){let t={rating:this.ticketRate,apptId:this.apptId};this.commonService.commonPost("/api/checkout/ratingUpdate",t).subscribe(l=>{this.smileModal.hide(),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.toastr.success("Record Updated Successfully.","",{timeOut:3e3})})},l=>{let i=l.error.status;(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}tipPopup(){this.listPayment(),this.tipAmountAdd=0,this.ticketProductsList.length>0?Math.abs(this.balanceDue)>0?(this.tipAmount=Math.abs(this.balanceDue),this.tipAmountAdd=Math.abs(this.balanceDue).toFixed(2),this.tipModal.show()):Math.abs(this.balanceDue)===0&&this.tipModal.show():this.TicketServiceData.length>0?Math.abs(this.balanceDue)>0?(this.tipAmount=Math.abs(this.balanceDue),this.tipAmountAdd=Math.abs(this.balanceDue).toFixed(2),this.tipModal.show()):Math.abs(this.balanceDue)===0&&this.tipModal.show():this.tipModal.show()}numbersOnly(t){let l=/[0-9]|\./,i=String.fromCharCode(t.charCode);l.test(i)||t.preventDefault()}saveAdditionalAmt(){if(Math.abs(this.tipAmountAdd)>0)if(this.showWorkerList=!1,Math.abs(this.balanceDue)===0){let t=0,l=[],i=[],m=[],h=[],x=[],_=[],T=0;for(let P=0;P<this.tipArrTicketServ.length;P++)i.push(this.tipArrTicketServ[P].workerId),t+=Number(this.tipArrTicketServ[P].Price__c),l.push(this.tipArrTicketServ[P].Price__c);for(let P=0;P<this.ticketProductsList.length;P++)h.push(this.ticketProductsList[P].workerId),T+=Number(this.ticketProductsList[P].Price__c),_.push(this.ticketProductsList[P].Price__c);if(this.ticketTipObj.length===0){let P=0;l.forEach(G=>{G||P++});let $=0;for(let G=0;G<l.length;G++)(!l[G]||l[G]==="0")&&P===l.length&&$===0?($++,m.push(i[G]+" "+Math.abs(this.tipAmountAdd))):l[G]>0&&m.push(i[G]+" "+(l[G]/t*Math.abs(this.tipAmountAdd)).toFixed(2));let X="";_.length===0&&l.length===0&&this.ticketOthersList.length>0&&(this.defaultUserId?X=this.defaultUserId:X=this.decodeUserToken.data.id,m.push(X+" "+Math.abs(this.tipAmountAdd).toFixed(2)))}else for(let P=0;P<this.ticketTipObj.length;P++){let $=0;this.tipTotal>0?$=+(this.ticketTipObj[P].Tip_Amount__c/this.tipTotal*this.tipAmountAdd).toFixed(2):$+=this.tipAmountAdd/this.ticketTipObj.length,this.ticketTipObj[P].Tip_Amount__c+=$,this.ticketTipObj[P].tipAmount=this.ticketTipObj[P].Tip_Amount__c,this.ticketTipObj[P].id=this.ticketTipObj[P].tipI
34d}for(let P=0;P<_.length;P++)T&&T>0?x.push(h[P]+" "+(_[P]/T*Math.abs(this.tipAmountAdd)).toFixed(2)):x.push(h[P]+" "+this.tipAmountAdd);let y={insert:m,incluTicket:x,total:this.tipAmountAdd,apptId:this.apptId,tipName:this.tipName,amountToPay:this.tipAmountAdd,Payment_Type__c:this.paymentType,Drawer_Number__c:this.cashDrawer?this.cashDrawer:"",Shift__c:this.shift,tipsArray:this.ticketTipObj};this.submitParam&&(this.submitParam=!1,this.commonService.commonPost("/api/checkout/addPaymentTipAmt",y).subscribe(P=>{this.tipModal.hide(),this.tipAmountAdd=0,this.balanceDue=0,this.tipsArray=[],this.delTipAry=[],this.ticketPaymentList=[],this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.tipModal.hide(),this.getWorkerTips(),this.getTicketServices(this.apptId),this.getIncludedTickets(this.apptId),this.getTicketPayment(this.apptId),this.submitParam=!0,this.toastr.success("Record Updated Successfully.","",{timeOut:3e3}),setTimeout(()=>{},2e3)})},P=>{this.submitParam=!0;let $=P.error.status;($==="2044"||$==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))}))}else{let t=[],l=0,i=[],m=[],h=[];if(this.tipsArray.length>0){if(this.tipArrTicketServ.length>0)for(let _=0;_<this.tipArrTicketServ.length;_++)m.push(this.tipArrTicketServ[_].workerId),l+=Number(this.tipArrTicketServ[_].Price__c),i.push(this.tipArrTicketServ[_].Price__c+" "+this.tipArrTicketServ[_].workerId);else for(let _=0;_<this.ticketProductsList.length;_++)m.push(this.ticketProductsList[_].workerId),l+=Number(this.ticketProductsList[_].Net_Price__c),i.push(this.ticketProductsList[_].Net_Price__c+" "+this.ticketProductsList[_].workerId);if(this.tipsArray.length===1){let _=0;for(let T=0;T<i.length;T++)_+=+(i[T].split(" ")[0]/l*Math.abs(this.tipAmountAdd)).toFixed(2);_+=+this.tipsArray[0].tipAmount,this.tipsRows?h.push(this.ticketTipObj[0].tipId+" "+_):h.push(this.tipsArray[0].id+" "+_)}else for(let _=0;_<this.tipsArray.length;_++)if(this.tipsArray[_].tipAmount=+this.tipsArray[_].tipAmount/this.tipTotal*Math.abs(this.tipAmountAdd)+ +this.tipsArray[_].tipAmount,this.tipsArray[_].tipAmount=this.tipsArray[_].tipAmount.toFixed(2),this.tipsArray[_].id)h.push(this.tipsArray[_].id+" "+this.tipsArray[_].tipAmount);else for(let T=0;T<this.ticketTipObj.length;T++)h.filter(P=>P.split(" ")[0]===this.ticketTipObj[T].tipId).length===0&&h.push(this.ticketTipObj[T].tipId+" "+this.tipsArray[_].tipAmount);let x={update:"update",tipPerson:h,type:"cash",tipOption:"Tip Left in Drawer",appId:this.apptId,Drawer_Number__c:this.cashDrawer?this.cashDrawer:"",Shift__c:this.shift};this.submitParam&&(this.submitParam=!1,this.commonService.commonPost("/api/checkout/extraTipAmt",x).subscribe(_=>{this.tipModal.hide(),this.balanceDue=0,this.tipsArray=[],this.delTipAry=[],this.ticketPaymentList=[],this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.getWorkerTips(),this.getTicketPayment(this.apptId),this.getTicketServices(this.apptId),this.getIncludedTickets(this.apptId),this.submitParam=!0,this.toastr.success("Record Updated Successfully.","",{timeOut:3e3}),setTimeout(()=>{},2e3)})},_=>{this.submitParam=!0;let T=_.error.status;(T==="2044"||T==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))}))}else{if(this.tipArrTicketServ.length>0)for(let _=0;_<this.tipArrTicketServ.length;_++)m.push(this.tipArrTicketServ[_].workerId),l+=Number(this.tipArrTicketServ[_].Price__c),i.push(this.tipArrTicketServ[_].Price__c+" "+this.tipArrTicketServ[_].workerId);else for(let _=0;_<this.ticketProductsList.length;_++)m.push(this.ticketProductsList[_].workerId),l+=Number(this.ticketProductsList[_].Net_Price__c),i.push(this.ticketProductsList[_].Net_Price__c+" "+this.ticketProductsList[_].workerId);for(let _=0;_<i.length;_++)h.push(m[_]+" "+(Number(i[_].split(" ")[0])/l*Number(this.tipAmountAdd)).toFixed(2));let x={tipPerson:h,type:"cash",tipOption:"Tip Left in Drawer",appId:this.apptId,Drawer_Number__c:this.cashDrawer?this.cashDrawer:"",Shift__c:this.shift};this.submitParam&&(this.submitParam=!1,this.commonService.commonPost("/api/checkout/extraTipAmt",x).subscribe(_=>{this.tipModal.hide(),this.balanceDue=0,this.tipsArray=[],this.ticketPaymentList=[],this.delTipAry=[],this.submitParam=!0,this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.getWorkerTips(),this.getTicketPayment(this.apptId),this.getTicketServices(this.apptId),this.getIncludedTickets(this.apptId),this.toastr.success("Record Updated Successfully.","",{timeOut:3e3}),setTimeout(()=>{},2e3)})},_=>{this.submitParam=!0;let T=_.error.status;(T==="2044"||T==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))}))}}else this.toastr.warning("Only positive number","",{timeOut:3e3})}clearErrorMsg(){this.errPaymnetType="",this.errTipAmount="",this.errTipName=""}editTicket(){this.getTicketPayment(this.apptId,"true"),this.editTicketModal.show()}listPayment(){this.commonService.commonGet("/api/checkout/getPaymentList").subscribe(t=>{let l=this.paymentList=t.result.filter(i=>i.Name.toLowerCase()!=="account charge"&&i.Name.toLowerCase()!=="gift redeem"&&i.Name.toLowerCase()!=="prepaid package"&&i.Name.toLowerCase()!=="token on file"&&i.Name.toLowerCase()!=="clover");this.paymentType=l[0].Payment_Type__c})}showPaymentModal(t){this.paymentId=t.Id,this.commonService.commonGet("/api/checkout/getPaymentList").subscribe(l=>{this.paymentList=l.result.filter(i=>i.Name!=="Account Charge"&&i.Name!=="Gift Redeem"&&i.Name!=="Prepaid Package"),t.paymentTypeName.toLowerCase()==="credit card"||t.paymentTypeName.toLowerCase()==="clover"||t.paymentTypeName.toLowerCase()==="token on file"||t.paymentTypeName.toLowerCase()==="account charge"||t.paymentTypeName.toLowerCase()==="gift redeem"||t.paymentTypeName.toLowerCase()==="prepaid package"||t.paymentTypeName.toLowerCase()==="m360 payments"||t.paymentTypeName.toLowerCase()==="inspire pay"||t.paymentTypeName.toLowerCase()==="inspire pay dejavoo"?(this.paymentModal.hide(),this.toastr.warning("User cannot edit the respective payment type","",{timeOut:3e3})):this.paymentModal.show(),this.paymentValue=t.Payment_Type__c})}addNewClient(){this.myModal.show()}
34closePopup(){this.myModal.hide(),this.cSearch="",this.autoList=[]}getClients(t){let l=t.target.value;this.commonService.commonGet("/api/appointment/getclientnames/"+l).subscribe(i=>{this.autoList=i.result.filter(m=>m.Active__c===1),this.cSearch&&this.cSearch.trim()?this.autoList.length===0&&this.toastr.warning("No record found. ","",{timeOut:3e3}):this.autoList=[]},i=>{let m=i.error.status;(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}clientChange(t){let l={appId:this.apptId,clientId:t.Id};this.myModal.hide(),this.commonService.commonPost("/api/checkout/clientshift",l).subscribe(i=>{this.getApptDetails(this.apptId),this.toastr.success("Record Updated Successfully.","",{timeOut:3e3})},i=>{let m=i.error.status;(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}paymentService(){let t={paymentId:this.paymentId,paymentType:this.paymentValue};this.commonService.commonPost("/api/checkout/updatePaymentList",t).subscribe(l=>{this.paymentModal.hide(),this.router.navigate(["/completedticket/"+this.apptId]).then(()=>{this.balanceDue=0,this.tipsArray=[],this.ticketPaymentList=[],this.getWorkerTips(),this.getTicketPayment(this.apptId),this.getApptDetails(this.apptId),this.getTicketServices(this.apptId),this.getIncludedTickets(this.apptId),this.toastr.success("Record Updated Successfully.","",{timeOut:3e3})})},l=>{let i=l.error.status;(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}tipPriceOnClick(t,l){if(t.toString().indexOf(".")>-1){let i=t.split(".");i[0]||(this.tipsArray[l].tipAmount="0"+this.tipsArray[l].tipAmount),i[1]||(this.tipsArray[l].tipAmount=this.tipsArray[l].tipAmount+"00"),i[1]&&i[1].length===1&&(this.tipsArray[l].tipAmount=this.tipsArray[l].tipAmount+"0")}else t&&(this.tipsArray[l].tipAmount=this.tipsArray[l].tipAmount+".00")}validateNum(t,l){if(t.keyCode!==46&&t.keyCode>31&&(t.keyCode<48||t.keyCode>57))return!1;{let i=this.tipsArray[l].tipAmount.toString().split(".")[1];return i&&i.length===2?!!(window.getSelection().toString()||t.target.selectionStart<=t.target.value.indexOf(".")):!0}}posDeviceList(){this.commonService.commonGet("/api/setup/ticketpreferences/posdevices").subscribe(t=>{this.posLists=t.result[0][1].JSON__c,this.drawerList=JSON.parse(t.result[0][0].JSON__c),t.result[2]&&t.result[2].JSON__c&&(this.tipName=JSON.parse(t.result[2].JSON__c).tipOption),t.result[3]&&t.result[3].JSON__c&&(this.showWorkerName=JSON.parse(t.result[3].JSON__c).showWorkerName?JSON.parse(t.result[3].JSON__c).showWorkerName:!1,this.hideTipOption=JSON.parse(t.result[3].JSON__c).hideTipOption?JSON.parse(t.result[3].JSON__c).hideTipOption:!1)}),this.commonService.commonGet("/api/checkout/ncp/setup/"+this.apptId).subscribe(t=>{this.creditCardFee=t.result})}showDataInView(){this.commonService.commonGet("/api/checkout/services/"+this.apptId).subscribe(t=>{this.TicketServiceData=t.result.ticetServices;let l=[];this.TicketServiceData.forEach((function(i){return function(m){i[m.workerId]||(i[m.workerId]={workerId:m.workerId,Price__c:0},l.push(i[m.workerId])),i[m.workerId].Price__c+=+m.Net_Price__c}})(Object.create(null))),this.tipArrTicketServ=l})}editTip(t){this.editTipAmnt=t.Tip_Amount__c,this.updateTipType=t.Tip_Option__c,this.updateTipType==="Tip Left In Drawer"&&(this.updateTipType="Tip Left in Drawer"),this.updateTipWorker=t.Worker__c,this.editTipId=t.tipId,this.oldTipAmount=t.Tip_Amount__c,this.editTipModal.show();for(let l=0;l<this.workerTipsList.length;l++)this.activeWorkerLists.filter(m=>m.workerId===this.workerTipsList[l].Worker__c).length===0&&this.activeWorkerLists.push({workerId:this.workerTipsList[l].Worker__c,workerName:"("+this.workerTipsList[l].workerName+")"})}hideTipPopup(){this.editTipModal.hide()}updateTipAmounts(){if(this.trigger){this.trigger=!1;let t=[];if(this.editTipAmnt<=this.tipTotal){this.ticketPaymentList[0].Amount_Paid__c-=this.oldTipAmount-this.editTipAmnt,t.push({Amount_Paid__c:this.ticketPaymentList[0].Amount_Paid__c,Id:this.ticketPaymentList[0].Id});let l={editAmount:this.editTipAmnt,apptId:this.apptId,ticketPaymentTipObj:t,updatedTipWorker:this.updateTipWorker,updateType:this.updateTipType,tipId:this.editTipId};this.commonService.commonPost("/api/checkout/updateTipAmount",l).subscribe(i=>{i.result&&(this.trigger=!0,this.hidePopup(),this.balanceDue=0,this.tipsArray=[],this.ticketPaymentList=[],this.getWorkerTips(),this.getApptDetails(this.apptId),this.getTicketPayment(this.apptId),this.getTicketServices(this.apptId),this.getIncludedTickets(this.apptId),this.toastr.success("Record Updated Successfully.","",{timeOut:2e3}))},i=>{this.trigger=!0;let m=i.error.status;(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}else this.toastr.info("Allocated tips must add up to the Tips Ticket Total.","",{timeOut:4e3})}}checkdate(t){let l=this.commonService.getDBDatStr(new Date).split(" ")[0],i=this.commonService.getDBDtStrFrmUsrDtStr(t[0]);i>l?this.setPermissin=0:i===l?this.setPermissin=1:i<l&&(this.setPermissin=0)}removeVoidTicket(){if(this.trigger){this.trigger=!1;let t=[],l=[],i=[],m=[];
34if(this.groupId)this.toastr.error("Group Tickets cannot be voided","",{timeOut:3e3}),this.voidTicketModal.hide();else{if(this.TicketServiceData&&this.TicketServiceData.length>0)for(let _=0;_<this.TicketServiceData.length;_++)t.push(this.TicketServiceData[_].Original_Ticket_Service__c);if(this.ticketProductsList&&this.ticketProductsList.length>0)for(let _=0;_<this.ticketProductsList.length;_++)l.push(this.ticketProductsList[_].Original_Ticket_Product__c);if(this.ticketOthersList&&this.ticketOthersList.length>0)for(let _=0;_<this.ticketOthersList.length;_++)i.push(this.ticketOthersList[_].Original_Ticket_Other__c);if(this.workerTipsList&&this.workerTipsList.length>0)for(let _=0;_<this.workerTipsList.length;_++)m.push(this.workerTipsList[_].Original_Ticket_Tip__c);let h={orgSrvcIds:t,orgPrdIds:l,ordOthrIds:i,orgTipIds:m},x=0;this.apptData&&this.apptData.isRefund__c&&(x=this.apptData.isRefund__c),this.commonService.commonDeleteHeader("/api/checkout/voidticket/complete/"+this.apptId,{orgtcktids:JSON.stringify(h),refund:x}).subscribe(_=>{let T=_.result;_.result.apptId?(this.trigger=!0,this.toastr.success("Ticket removed successfully","",{timeOut:1500}),this.router.navigate(["/reports/transaction/ticketlist"])):_.result.IsDeleted&&(this.trigger=!0,this.toastr.warning("Ticket has been already voided","",{timeOut:3e3}),this.router.navigate(["/reports/transaction/ticketlist"]))},_=>{this.trigger=!0;let T=_.status,y=_.error.status;switch(T){case 500:break;case 400:if(y==="2068"||y===2068)this.toastr.error("Ticket cannot be voided","",{timeOut:1500});else{(y==="2044"||y==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}}})}}}getGiftTemplate(){this.commonService.commonGet("/api/appointment/onlinegifts").subscribe(t=>{this.giftsEmailTemplate=t.result.emailTemplate},t=>{let l=t.error.status;(l==="2044"||l==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}changeVisitType(){this.apptData.visttype=this.visitType}listVisitTypes(){this.commonService.commonGet("/api/setup/clientpreferences/visittypes").subscribe(t=>{this.visitTypes=t.result.filter(l=>l.active)},t=>{let l=JSON.parse(t.status),i=t.error.status;switch(l){case 500:break;case 400:(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}})}storePage(){this.clientId?localStorage.setItem("rfndPage","rClient"):localStorage.setItem("rfndPage","rTciket")}printGift(){let t;this.http.get("/assets/print/giftPrintTemplate.html",{responseType:"text"}).subscribe(l=>{let i=l,m=document.getElementsByClassName("header-logo")[0];if(i=i.replace("{{CompanyLogo}}",m.src),i=i.replace("{{reportname}}","GIFT RECEIPT"),i=i.replace("{{CompanyName}}",this.tokenData.cname),this.ticketOthersList.length>0){let h=this.ticketOthersList.filter(_=>_.Transaction_Type__c==="Gift"),x="";for(let _=0;_<h.length;_++){let T=this.giftsEmailTemplate,y;h[_].Gift_Message?h[_].Gift_Message.length>100?y=`<p style="word-break: break-word;">${h[_].Gift_Message}</p>`:y=h[_].Gift_Message:y="",T=T.replace(/{{GiftNumber}}/g,h[_].Gift_Number__c),T=T.replace(/{{GiftIssued}}/g,this.commonService.getUsrDtStrFrmDBStr(h[_].Issued__c)[0]),T=T.replace(/{{GiftAmount}}/g,h[_].Amount__c),T=T.replace(/{{GiftRecipient}}/g,h[_].Recipient__c?h[_].Recipient__c:""),T=T.replace(/{{ClientFirstName}}/g,this.clientName?this.clientName.split(" ")[0]:""),T=T.replace(/{{ClientLastName}}/g,this.clientName?this.clientName.split(" ")[1]:""),T=T.replace(/{{GiftMessage}}/g,y),T=T.replace(/{{CompanyName}}/g,this.companyInfo.Name),T=T.replace(/{{CompanyEmail}}/g,this.companyInfo.Email__c),T=T.replace(/{{CompanyPrimaryPhone}}/g,this.companyInfo.Phone__c),x+=T}i=i.replace("{{reportsData}}",x)}t=window.open("","_blank","top=0,left=0,height=100%,width=auto"),t.document.write(i),t.document.close()})}sendEmailGift(){let t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!this.clientEmail)this.toastr.error("Client Email is required","",{timeOut:1500});else if(this.clientEmail&&!t.test(this.clientEmail))this.toastr.error("Client Email is invali
34d","",{timeOut:1500});else{let l={apptId:this.apptId,clientId:this.clientId,clientEmail:this.clientEmail};this.giftTrigger&&(this.giftTrigger=!1,this.commonService.commonPost("/api/emailgift",l).subscribe(i=>{i.result.apptId&&(this.emailGiftModal.hide(),this.toastr.success("Receipt sent successfully","",{timeOut:1500}),this.giftTrigger=!0)},i=>{this.giftTrigger=!0;let m=JSON.parse(i.status),h=i.error.status;switch(m){case 500:break;case 400:(h==="2044"||h==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}));break}}))}}getBookingData(){this.commonService.commonGet("/api/appointmentsandemails/booking").subscribe(t=>{this.requireVisitType=t.result.requireVisitType},t=>{let l=t.error.status;(l==="2044"||l==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}getClientPackages(t){let l=this.commonService.getDBDatStr(new Date).split(" ")[0];this.commonService.commonGet("/api/client/packages/"+t).subscribe(i=>{this.clientPackageData=i.result,this.clientPackageData.ClientPackageData=this.clientPackageData.ClientPackageData.filter(m=>!m.Expiration_Date__c||m.Expiration_Date__c&&l<m.Expiration_Date__c)},i=>{let m=i.error.status;(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}updatePaymentNotes(){let t=[];for(let l=0;l<this.ticketPaymentList.length;l++)this.ticketPaymentList[l].paymentNotesFeild&&this.ticketPaymentList[l].paymentNotesFeild.indexOf("-")===-1&&(this.ticketPaymentList[l].paymentNotesFeild=" - "+this.ticketPaymentList[l].paymentNotesFeild),this.ticketPaymentList[l].paymentNotesFeild&&this.ticketPaymentList[l].paymentNotesFeild.split("-")[1].trim()!==this.ticketPaymentList[l].Notes__c&&t.push({Id:this.ticketPaymentList[l].Id,paymentNotesFeild:this.ticketPaymentList[l].paymentNotesFeild.split("-")[1].trim()});t.length>0&&this.commonService.commonPut("/api/checkout/ticketpaymentsnotes/"+this.apptId,t).subscribe(l=>{this.clientPackageData=l.result},l=>{let i=l.error.status;(i==="2044"||i==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}changeApptDate(){let t=this.appointmentDate.getFullYear()+"-"+(this.appointmentDate.getMonth()+1)+"-"+this.appointmentDate.getDate(),l={apptId:this.apptId,tktDate:t};this.commonService.commonPut("/api/checkout/updateapptdate",l).subscribe(i=>{this.toastr.success("Appointment Date Updated Successfully","",{timeOut:1500}),this.getApptDetails(this.apptId)},i=>{let m=i.error.status;(m==="2044"||m==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}reopenTicket(){let t=!1;if(this.ticketOthersList.filter(i=>i.Online__c===1&&(i.Transaction_Type__c==="Deposit"||i.Transaction_Type__c==="Package"||i.Transaction_Type__c==="Gift"||i.Transaction_Type__c==="Membership")).length>0&&(t=!0),this.includeTcktmsg)this.toastr.error("Ticket cannot be reopened because it is added to another ticket.","",{timeOut:3e3});else if(t)this.toastr.error("Online transactions cannot be reopened.","",{timeOut:3e3});else if(this.trigger){this.trigger=!1;let i={apptData:this.apptData};this.TicketServiceData.length>0&&(i.ticketServiceData=this.TicketServiceData),this.ticketProductsList.length>0&&(i.ticketProductsList=this.ticketProductsList),this.ticketOthersList.length>0&&(i.ticketOthersList=this.ticketOthersList),this.ticketPaymentList.length>0&&(i.ticketPaymentList=this.ticketPaymentList),this.ticketotherStpncp.length>0&&(i.ticketotherStpncp=this.ticketotherStpncp),this.apptData.clientId&&this.clientPoints&&(i.Points_Balance__c=this.clientPoints),this.commonService.commonPut("/api/checkout/reopenticket/"+this.apptId,i).subscribe(m=>{this.creditCardFee&&this.toastr.error("Cash Payments have been automatically removed from the reopened ticket.","",{timeOut:5e3}),this.router.navigate(["/checkout/"+this.apptId]),this.trigger=!0},m=>{this.trigger=!0;let h=m.error.status;(h==="2044"||h==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}}workerOnChange(){let t=this.serviceLists.filter(l=>
34l.workerId===this.serviceworkerId);this.showMySrvcNote=t&&t.length>0?t[0].showMyNotes:!0}navigateTab(t,l){this.TabVal=t;for(let i=0;i<this.TabClass.length;i++)i===l?(this.TabsArray[i]=!0,this.TabClass[i]="active"):(this.TabsArray[i]=!1,this.TabClass[i]="")}formatPhoneNumber(t){let l=t.target.value.replace(/\D/g,"");l.length>10&&(l=l.slice(0,10));let i="";l.length>0&&(i+="("+l.substring(0,Math.min(3,l.length))),l.length>=4&&(i+=")"+l.substring(3,Math.min(6,l.length))),l.length>=7&&(i+="-"+l.substring(6,l.length)),this.clientPhone=i}sendstriketiplink(){if(!this.clientPhone&&this.TabVal==="sms")this.toastr.error("Please Enter Client Mobile Phone to Send "+this.TabVal,"",{timeOut:3e3});else if(!this.clientEmail&&this.TabVal==="email")this.toastr.error("Please Enter Client Email Address to Send "+this.TabVal,"",{timeOut:3e3});else{let t={apptId:this.apptId,clientId:this.clientId,ticketNo:this.ticketNumber,tabVal:this.TabVal,email:this.clientEmail,phone:this.clientPhone,amount:this.subTotal};this.commonService.commonPost("/api/send/striketiplink",t).subscribe(l=>{this.striketipModal.hide(),this.toastr.success("StikeTip Link sent successfully via "+this.TabVal,"",{timeOut:3e3})},l=>{let i=l.error.status;i==="2064"?this.toastr.error(l.error.message,"",{timeOut:2e3}):i==="2077"?this.toastr.error(l.error.message,"",{timeOut:2e3}):i==="2096"?this.toastr.error(l.error.message,"",{timeOut:2e3}):this.toastr.error(l.error.result,"",{timeOut:2e3}),this.striketipModal.hide()})}}openLink(t){let l=btoa(`{"db":"${this.decodeUserToken.data.db}","id":"${t}", "frompage":"${this.invoiceStatus}"}`),i=Bt+"/#/estimateinvoice?input="+l;window.open(i)}static{this.\u0275fac=function(l){return new(l||e)(q(Lt),q(Nt),q(At),q(Z),q(Tt),q(vt))}}static{this.\u0275cmp=dt({type:e,selectors:[["app-completedticket"]],viewQuery:function(l,i){if(l&1&&st(Ht,5)(Qt,5)(Yt,5)(Kt,5)(Zt,5)(Xt,5)(te,5)(ee,5)(ie,5)(ne,5)(oe,5)(ae,5)(le,5),l&2){let m;R(m=W())&&(i.recieptModal=m.first),R(m=W())&&(i.smileModal=m.first),R(m=W())&&(i.productModal=m.first),R(m=W())&&(i.serviceModal=m.first),R(m=W())&&(i.otherModal=m.first),R(m=W())&&(i.tipModal=m.first),R(m=W())&&(i.editTicketModal=m.first),R(m=W())&&(i.paymentModal=m.first),R(m=W())&&(i.myModal=m.first),R(m=W())&&(i.editTipModal=m.first),R(m=W())&&(i.voidTicketModal=m.first),R(m=W())&&(i.emailGiftModal=m.first),R(m=W())&&(i.striketipModal=m.first)}},standalone:!1,features:[mt([Z])],decls:582,vars:172,consts:[["smileModal","bs-modal"],["myModal","bs-modal"],["serviceModal","bs-modal"],["productModal","bs-modal"],["otherModal","bs-modal"],["recieptModal","bs-modal"],["tipModal","bs-modal"],["editTicketModal","bs-modal"],["paymentModal","bs-modal"],["editTipModal","bs-modal"],["voidTicketModal","bs-modal"],["emailGiftModal","bs-modal"],["striketipModal","bs-modal"],[3,"emitCompanyInfo","newMenu"],["id","wrapper_setup_new"],[1,"inner_cont"],[1,"row","text-center"],[1,"text-center"],[1,"row","mt-20"],[1,"col-md-12","col-sm-12"],[1,"row","mt-20","center-css"],[1,"head-bar","mt-5"],[1,"row","mt-30"],[1,"row","center-css"],[1,"mt-20"],[1,"profile-list-view-txt","wt-bg","blk-clr","head-bar",2,"border","1px solid !important",3,"ngClass"],[1,"row","mt-10","compy-info-main",3,"ngClass"],[1,"col-md-9","col-sm-10"],[1,"compy-info"],[2,"font-size","16px !important"],[1,"col-md-3","col-sm-2"],[1,"btns","btn-defaults","tbl-txt","mb-5",2,"background","rebeccapurple","padding","5px","color","white","font-weight","400 !important"],[1,"btns","btn-defaults","tbl-txt",2,"background","green","padding","5px","color","white","font-weight","400 !important"],[1,"row","mt-10",3,"ngClass"],[1,"col-md-12"],[1,"clint-name","tbl-txt","text-uppercase",3,"routerLink","queryParams"],[1,"point-number",2,"display","-webkit-inline-box"],[1,"check-profile-list-name","text-uppercase"],[1,"check-profile-details",3,"ngClass"],[1,"check-profile-details-in","clearfix","check-details"],[1,"sub-item-main",2,"padding-right","0px"],[1,"clearfix","wt-clr"],[1,"profile-list-view-txt","blk-clr"],[1,"check-profile-details"],[1,"sub-item-main"],[1,"sub-item-service"],[1,"sub-item1","text-uppercase","font-w-bold"],[1,"sub-item2"],[1,"sub-item3",2,"font-weight","bold"],[1,"total-charge","clearfix",2,"margin-top","0","padding-bottom","20px"],[1,"sub-item3"],["id","totalAmountId",1,"price-total",2,"font-weight","bold"],[1,"row","mt-20","receipt-info"],[1,"row","receipt-info"],[1,"row","mt-20",2,"color","#354452"],[1,"row","mt-50"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myLargeModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
34-sm"],[1,"modal-content"],[1,"modal-header"],[2,"font-weight","400"],[1,"modal-body",2,"background-color","#FFFFFF"],[1,"row"],[1,"red"],[1,"clearfix"],[1,"col-md-12","emotion-icons","text-center",2,"cursor","pointer"],["aria-hidden","true",1,"fa","fa-smile-o",2,"color","rebeccapurple",3,"click"],["aria-hidden","true",1,"fa","fa-meh-o",2,"color","rebeccapurple",3,"click"],["aria-hidden","true",1,"fa","fa-frown-o",2,"color","rebeccapurple",3,"click"],[1,"text-center","mt-40"],["type","button",1,"save-btn","font_weight_600",3,"click"],["type","button",1,"cancel-btn","font_weight_600",3,"click"],["bsModal","",1,"modal","expressBooking","bluemodal","small-modal"],["id","cancel1",1,"client-close","close-list",3,"click"],[1,"modal-dialog"],[1,"modal-body"],[1,"col-md-12","col-sm-12","mb-10"],[1,"staff-search",2,"width","90%"],[1,"input-group"],["type","text","placeholder","Name, Phone, Email","id","searchKeys",1,"form-control","searchfield",2,"border-top-left-radius","4px !important","border-bottom-left-radius","4px !important","border-top-right-radius","4px !important","border-bottom-right-radius","4px !important",3,"keyup","ngModelChange","ngModel"],[1,"pull-left",2,"font-size","12px"],[1,"staff-search-details","mt-20",3,"ngClass"],[1,"staff-search-details-in"],[1,"staff-search-list"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myLargeModalLabel","aria-hidden","true",1,"modal","fade",2,"z-index","10000"],[1,"modal-content",2,"width","400px","bottom","-72px"],[1,"text-center",2,"margin-bottom","-5px","color","#2d7aa8 !important","margin-top","15px"],[1,"row",2,"margin-left","-43px"],[1,"row","mt-10"],[1,"col-md-5","col-sm-4","text-right","res-tleft"],[1,"col-md-7","col-sm-8"],[2,"background-color","white",3,"ngModelChange","change","ngModel"],[3,"ngValue"],[1,"modal-content",2,"width","356px","bottom","-72px"],[1,"modal-header",2,"margin-bottom","-5px","color","#2d7aa8 !important","margin-top","15px","display","block !important"],[2,"font-weight","600"],[1,"row","mt-10",2,"margin-left","-43px"],[2,"background-color","white",3,"ngModelChange","ngModel"],[3,"value"],[1,"modal-header",2,"margin-bottom","-5px","color","#2d7aa8 !important","margin-top","15px"],[2,"margin-top","1px","padding-left","184px"],[1,"modal-dialog","modal
34-lg"],[1,"modal-content","email-reciept"],[2,"margin-left","40%"],["aria-hidden","true","aria-label","Close",1,"close","close-list",3,"click"],[1,"modal-body","mt-20",2,"background-color","#FFFFFF"],[1,"col-md-2"],[1,"col-md-4"],[1,"col-md-4","text-right"],["type","text",2,"width","100%","border-color","#000 !important",3,"ngModelChange","keypress","ngModel"],[1,"text-center",2,"margin-bottom","-5px","color","#2d7aa8 !important","margin-top","25px"],[1,"col-md-6","col-sm-4"],["type","number","id","tipAmountAdd","min","0","placeholder","Amount",2,"width","90%",3,"keypress","ngModelChange","ngModel"],[1,"red","text-center",2,"padding","10px","margin-left","-46px"],[1,"select-bg",2,"background-color","white","border-color","black",3,"ngModelChange","ngModel"],[1,"select-bg",2,"border-color","black",3,"ngModelChange","ngModel"],["value","Tip Left in Drawer"],["value","Tip Paid Out"],[1,"text-center","mt-20","mb-20"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myLargeModalLabel","aria-hidden","true","id","editTicketModal",1,"modal","fade"],[1,"header-txt","profile-list-view-txt","wt-bg","blk-clr","head-bar",2,"margin-left","85px"],[1,"row","mt-10","compy-info-main"],[1,"col-md-9","col-sm-10",2,"width","78%"],[1,"compy-info",2,"padding-left","25%"],[1,"textFont"],[1,"textFont",2,"color","red !important"],[2,"background","#354452","width","70%","height","1px"],[1,"mt-10",2,"padding-left","25%"],[2,"text-transform","none !important"],[2,"margin-left","20px"],["type","text","bsDatepicker","",1,"text-center","input-style",3,"ngModelChange","ngModel","maxDate","bsConfig"],[1,"compy-info","compy-info-main","mt-10",2,"padding-left","25%"],[1,"profile-list-view-txt","wt-bg","blk-clr"],[1,"sub-item-main","mt-30"],[1,"sub-item-main","mt-10"],[1,"sub-item-main",2,"margin-top","0","padding-bottom","20px"],[1,"sub-item1","text-uppercase"],[1,"col-md-6","col-sm-6",2,"margin-top","1px"],["type","hidden",3,"value"],[1,"modal-header","text-center",2,"margin-bottom","-5px","color","#2d7aa8 !important","margin-top","15px","display","block !important"],[1,"col-md-4","col-sm-4","text-right","res-tleft"],[1,"col-md-8","col-sm-8"],["type","number","min","1","value","editTipAmnt","disabled","",2,"width","80%",3,"keypress","ngModelChange","ngModel"],[2,"margin-top","8px"],[1,"select-bg",2,"border-color","black","width","80% !important",3,"ngModelChange","ngModel"],["value",""],["value","updateTipType",1,"select-bg",2,"border-color","black","width","80% !important",3,"ngModelChange","ngModel"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","mySmallModalLabel","aria-hidden","true",1,"modal","fade",3,"config"],[1,"modal-dialog","modal
34-sm",2,"width","300px"],[1,"modal-body","body-style"],[1,"para-align",2,"color","red","font-weight","bold","font-size","17px"],[1,"text-center","mt-30","mb-20"],["type","button save-btn-style font_weight_600",1,"btn","save-btn","voidbtn",3,"click"],[1,"btn-style"],["type","button",1,"btn","cancel-btn","font_weight_600",3,"click"],[1,"modal-header","email-gift"],["type","button","aria-label","Close",1,"close","modal-close",2,"margin-top","-35px",3,"click"],["aria-hidden","true"],["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["http-equiv","X-UA-Compatible","content","ie=edge"],["id","inner_cont",2,"display","none"],[1,"profile-list-view-txt","wt-bg","blk-clr","head-bar"],[1,"check-profile-list-name"],[1,"row","mt-10",2,"text-align","center","font-weight","bold","font-size","bold","color","#568e5a","font-family","'Inter'"],[2,"margin-right","15px","margin-left","15px","margin-top","20px"],[1,"check-profile-list"],[1,"row","mt-20",2,"color","#000"],["type","hidden","id","apptModal",3,"click"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myLargeModalLabel","aria-hidden","true",1,"modal","fade","client-modal","invoicestimateModal"],[1,"modal-dialog","modal
34-md"],[1,"mt-30"],[1,"nav","nav-tabs","service-menu"],[3,"click"],["type","text","maxlength","13",1,"mt-20","text-center",2,"width","30%",3,"ngModel"],["type","text",1,"mt-20","text-center",2,"width","70%",3,"ngModel"],[1,"save-btn","save-book",2,"width","40%","font-weight","bold","padding","5px 5px !important","margin-right","0",3,"click"],[1,"label-css"],[2,"text-decoration","underline","cursor","pointer",3,"routerLink"],["src","/assets/images/link.svg","alt","img",2,"cursor","pointer","width","20px",3,"click"],[1,"text-uppercase","label-css"],[1,"col-md-1","col-sm-1"],[1,"col-md-5","col-sm-5"],[1,"col-md-5","col-sm-5","table-responsive",2,"border-left","1px solid grey","width","45% !important"],[1,"text-center",2,"width","100%"],[1,"weight"],[1,"weight",2,"padding-top","10px"],[1,"weight",2,"padding-top","5px"],[1,"text-danger","mt-10"],[1,"mt-10","weight"],[1,"select-bg","mt-10","visitType-dropdown",2,"width","40%!important","height","35px!important","font-size","15px","line-height","20px",3,"ngModelChange","change","disabled","ngModel"],["value","",3,"selected"],[1,"col-md-6","col-sm-4","text-right","res-tleft"],[1,"col-md-6","col-sm-8","mt-10",2,"text-align","left"],[1,"btn","btn-defaults","mt-10","font_weight_600",2,"background","#006dd0","color","white"],[1,"text-right",2,"margin-right","65px","font-weight","bold !important","margin-bottom","3px"],[1,"text-right",2,"font-weight","bold !important","margin-bottom","3px"],[1,"text-right",2,"margin-right","60px","font-weight","bold !important","margin-bottom","3px"],[1,"text-right"],[2,"margin-top","-26px","margin-right","-16px"],["type","hidden","value","lists.workerName",3,"ngModelChange","ngModel"],[1,"col-md-6","col-sm-8",2,"height","40px","text-align","left"],[1,"col-md-1","col-sm-4","tippy-logo","d-flex-row",2,"height","40px","text-align","left"],[1,"col-md-2","col-sm-4","d-flex-row"],[1,"text-right",2,"font-weight","bold"],["type","text",2,"width","70px",3,"ngModelChange","keypress","blur","disabled","ngModel","value"],["src","/assets/images/[email protected]","width","60",2,"margin-top","-3px"],[1,"col-md-6","col-sm-8","text-right","mt-5"],[1,"col-md-6","col-sm-4","text-left"],[1,"select-bg",2,"max-width","200px",3,"ngModelChange","change","ngModel","disabled"],[1,"btn","btn-defaults","mt-10","font_weight_600",2,"background","#006dd0","color","white",3,"click"],[1,"select-bg","mt-10",2,"width","20%!important","height","35px!important","font-size","15px","line-height","20px",3,"ngModelChange","change","disabled","ngModel"],[1,"text-center","mt-20",2,"color","rgb(184, 32, 32)"],[1,"btn","btn-gradient-txt","btn-align","btn-margin","save-new","font_weight_600",2,"background","rgba(255, 255, 255, 1)","width","190px"],[1,"btn","btn-gradient-txt","btn-align","btn-margin","save-new","font_weight_600",2,"background","rgba(255, 255, 255, 1)","width","190px",3,"click"],[2,"font-size","15px"],[1,"btn","btn-gradient-txt","btn-align","btn-margin","font_weight_600",2,"background-color","#35c31b !important","width","190px",3,"click"],[1,"btn","btn-gradient-txt","btn-margin","btn-align","font_weight_600",2,"background","#545454 !important","width","190px",3,"routerLink"],[1,"col-sm-12","col-md-8","mb-10"],[1,"ml-15"],[1,"btns","btn-defaults","tbl-txt",2,"background","#ff991f","padding","8px","color","white","font-weight","600 !important","margin-left","0px !important"],[1,"btns","btn-defaults","tbl-txt",2,"background","red","padding","8px","color","white","font-weight","600 !important","margin-left","0px !important",3,"routerLink","queryParams"],[1,"btns","btn-defaults","tbl-txt",2,"background","#8b0000","padding","8px","color","white","font-weight","600 !important"],[1,"btns","btn-defaults","tbl-txt",2,"background","grey","padding","8px","color","white","font-weight","600 !important",3,"click"],[1,"btns","btn-defaults","tbl-txt",2,"background","#545454","padding","8px","color","white","font-weight","600 !important"],[1,"col-sm-12","col-md-4","text-right","pull-right","mb-10",2,"padding-right","35px"],[1,"btns","btn-defaults","tbl-txt",2,"background","#006dd0","padding","8px","color","white","font-weight","600 !important",3,"click"],[1,"btns","btn-defaults","tbl-txt",2,"background","#0059aa","padding","8px","color","white","font-weight","600 !important"],[1,"btns","btn-defaults","tbl-txt",2,"background","#ff991f","padding","8px","color","white","font-weight","600 !important","margin-left","0px !important",3,"click"],[1,"btns","btn-defaults","tbl-txt",2,"background","red","padding","8px","color","white","font-weight","600 !important","margin-left","0px !important",3,"click","routerLink","queryParams"],[1,"btns","btn-defaults","tbl-txt",2,"background","#8b0000","padding","8px","color","white","font-weight","600 !important",3,"click"],[1,"btns","btn-defaults","tbl-txt",2,"background","#545454","padding","8px","color","white","font-weight","600 !important",3,"click"],[1,"btns","btn-defaults","tbl-txt",2,"background","#0059aa","padding","8px","color","white","font-weight","600 !important",3,"click"],[1,"head-bar",2,"background","none"],[1,"text-center","void-style"],[1,"text-center","refund-style"],[1,"btns","btn-defaults","tbl-txt","mb-5",2,"background","rebeccapurple","padding","5px","color","white","font-weight","400 !important",3,"click"],["aria-hidden","true",1,"fa","fa-print"],[1,"btns","btn-defaults","tbl-txt",2,"background","green","padding","5px","color","white","font-weight","400 !important",3,"click"],["aria-hidden","true",1,"fa","fa-envelope"],["src","/assets/images/clientRewards.png","width","19","alt","Search"],[2,"padding-top","8px"],["type","submit",1,"search-image"],["type","submit",1,"search-image",3,"click"],["src","/assets/images/search.png","width","16","alt","Search"],[2,"font-weight","bold"],[1,"sub-item-sub",2,"position","relative","padding","0p
34x"],[1,"sub-item1",2,"text-align","left"],[1,"tbl-txt"],[1,"tbl-txt",2,"cursor","default","text-decoration","none"],[2,"line-height","25px","margin-top","-31px","padding-right","0px"],[1,"tbl-txt",3,"click"],[2,"margin-left","20px","font-size","14px"],[2,"padding-left","20px!important"],[1,"star-icon"],[1,"deduct"],[1,"deduct",2,"right","-14px"],[2,"line-height","30px","text-decoration","none","margin-top","-31px"],[1,"deduct",2,"margin-top","-31px"],[1,"deduct",2,"right","-25px","margin-top","-20px"],[1,"sub-item-sub",2,"position","relative","padding","0%"],[1,"sub-item-service","mr-b"],[2,"width","100%"],[2,"margin-top","-15px"],[2,"text-decoration","none","padding","0px"],[1,"deduct",2,"margin-left","5px"],[2,"text-decoration","none","margin-top","-15px"],[1,"deduct",2,"margin-left","10px","margin-top","-10px"],[1,"sub-item-sub",2,"padding","0px"],[1,"sub-item1"],[1,"deduct",2,"padding","0px"],[1,"deduct",2,"margin-left","5px","padding","0px"],[1,"staff-search-list-img"],[1,"staff-search-list-name",3,"click"],["id","firstLastClearData",1,"font_weight_600"],[1,"staff-search-list-mobile"],[1,"staff-search-list-email"],["width","61","height","61","alt","Profile",3,"error","src"],[1,"appnt-pro-letter",2,"width","61px","height","61px","line-height","57px"],[1,"form-control","mb-5",2,"width","auto","color","black","border-color","black",3,"ngModelChange","ngModel","value"],[1,"red","text-center",2,"padding","10px","margin-left","-46px",3,"keypress"],[1,"sub-item-sub"],[1,"sub-item1","tbl-txt"],[2,"line-height","30px","margin-top","-31px"],[1,"sub-item1","tbl-txt",3,"click"],[1,"deduct",2,"margin-left","4px"],[1,"deduct",2,"margin-left","4px","margin-top","-31px"],[1,"sub-item-sub",2,"padding-right","0px"],[2,"text-decoration","none","padding-right","0px"],[1,"deduct",2,"margin-left","5px","margin-top","20px"],[2,"text-decoration","none","margin-top","-31px","line-height","30px","padding-right","0px"],[1,"sub-item3","tbl-txt",3,"click"],[1,"sub-item-service","payment-note"],[1,"editText",3,"ngModelChange","ngModel","placeholder"],["src","assets/images/clientRewards.png","width","10","alt","Search"],[2,"line-height","30px"],[2,"padding-left","10px","position","absolute","text-decoration","none !important"],[1,"deduct",2,"margin-left","5px","color","red","font-size","15px","text-decoration","auto !important","font-weight","bold","position","absolute","margin-left","3px"],[2,"text-decoration","none","line-height","30px","padding-right","0px"],[2,"margin-top","-15px","line-height","30px"],[1,"deduct",2,"margin-left","10px","color","red","font-size","15px","text-decoration","auto !important","font-weight","bold","position","absolute","margin-left","3px"],[2,"text-decoration","none","margin-top","-15px","padding-right","0px","line-height","30px"],[1,"sub-item3",2,"width","100%"],["type","hidden",3,"ngModelChange","ngModel","value"],["type","text","maxlength","13",1,"mt-20","text-center",2,"width","30%",3,"ngModelChange","input","ngModel"],["type","text",1,"mt-20","text-center",2,"width","70%",3,"ngModelChange","ngModel"]],template:function(l,i){if(l&1){let m=w();a(0,"app-header",13),g("emitCompanyInfo",function(x){return i.loadCompanyInfo(x)}),o(),a(1,"div",14)(2,"div",15),s(3,_e,6,5,"div",16)(4,he,5,2,"div",17)(5,ue,3,1,"div",16),s(6,$e,5,2,"div",18),a(7,"div",18),s(8,Ke,36,19,"div",19),o(),s(9,Ze,3,1,"div",17),s(10,ti,12,3,"div",20),a(11,"div",21),r(12," Payment Completed "),o(),s(13,li,13,5,"div",22),s(14,di,4,2,"div",23),a(15,"div",24)(16,"div",25)(17,"div",26)(18,"div",27)(19,"div",28)(20,"p",29),r(21),o(),a(22,"p",29),r(23),o(),a(24,"p",29),r(25),o(),a(26,"p",29),r(27),o()()(),a(28,"div",30),s(29,si,3,0,"a",31),s(30,pi,3,0,"a",32),o()(),a(31,"div",33)(32,"div",34),s(33,mi,2,7,"div",35),s(34,_i,4,1,"div",36),s(35,ui,3,1,"div",37),o()(),f(36,"hr"),a(37,"div",38)(38,"div",39)(39,"div",40)(40,"div",34)(41,"div",41)(42,"div",42)(43,"div",43)(44,"div",39),s(45,Wi,12,4,"div",44),s(46,mn,12,4,"div",44),s(47,Tn,11,4,"div",44),s(48,yn,11,4,"div",44),a(49,"div",44)(50,"div",45)(51,"div",46),r(52," Subtotal"),o(),f(53,"div",47),a(54,"div",48),r(55),C(56,"number"),o()()(),s(57,Sn,8,4,"div",44),s(58,Pn,3,0,"div",44),o()(),a(59,"div",49)(60,"div",44)(61,"div",45)(62,"div",46),r(63," TOTAL"),o(),f(64,"div",47),a(65,"div",50),s(66,In,3,4,"h2",51),s(67,En,3,4,"h2",51),s(68,Mn,3,4,"h2",51),s(69,On,3,4,"h2",51),s(70,Dn,3,4,"h2",51),o()()()(),a(71,"div",43),M(72,Nn,12,12,"div",39,E),o(),a(74,"div",52)(75,"h4"),r(76),C(77,"date"),o(),a(78,"h4"),r(79),C(80,"date"),o()(),a(81,"div",53)(82,"h4"),r(83),o()(),a(84,"div",53)(85,"h4"),r(86),o()(),s(87,Fn,3,2,"div",53),s(88,Bn,3,1,"div",54),o()()()()()()()(),f(89,"div",55)(90,"app-rightbar"),o()(),a(91,"div",56,0)(93,"div",57)(94,"div",58)(95,"div",59)(96,"h4")(97,"b",60),r(98),o()()(),a(99,"div",61)(100,"div",62)(101,"p",63),r(102),o(),a(103,"div",64)(104,"div",65)(105,"ul")(106,"li")(107,"i",66),g("click",function(){return i.addTicketRating("Good")}),o()(),a(108,"li")(109,"i",67),g("click",function(){return i.addTicketRating("Fair")}),o()(),a(110,"li")(111,"i",68),g("click",function(){return i.addTicketRating("Poor")}),o()()()()()(),a(112,"div",62)(113,"div",69)(114,"button",70),g("click",function(){return i.ratingSend()}),r(115,"Update"),o(),a(116,"button",71),g("click",function(){return i.hidePopup()}),r(117,"Cancel "),o()()()()()()(),a(118,"div",72,1)(120,"div",58)(121,"span",73),g("click",function(){return i.closePopup()}),r(122,"\xD7"),o(),a(123,"div",74)(124,"div",75)(125,"div",18)(126,"div",76)(127,"div",77)(128,"div",78)(129,"input",79),g("keyup",function(x){return i.getClients(x)}),F("ngModelChange",function(x){return v(m),N(i.cSearch,x)||(i.cSearch=x),b(x)}),o()(),a(130,"span")(131,"label",80),r(132," Search by Name, Phone or Email "),o()()()()(),a(133,"div",81)(134,"div",82),M(135,Gn,10,6,"div",83,E),o()()()()()(),a(137,"div",84,2)(139,"div",57)(140,"div",85)(141,"div",86)(142,"h4")(143,"b"),r(144),o()()(),a(145,"div",61)(146,"div",87)(147,"p",63),r(148),o(),a(149,"div",88)(150,"div",89)(151,"label"),r(152,"Worker:"),o()(),a(153,"div",90)(154,"select",91),F("ngModelChange",function(x){return v(m),N(i.serviceworkerId,x)||(i.serviceworkerId=x),b(x)}),g("change",function(){return i.workerOnChange()}),M(155,zn,2,2,"option",92,E),o()()(),s(157,jn,7,3,"div",18),o(),a(158,"div",62)(159,"div",69)(160,"button",70),g("click",function(){return i.serviceSave()}),r(161,"Update"),o(),a(162,"button",71),g("click",function(){return i.hidePopup()}),r(163,"Cancel "),o()()()()()()(),a(164,"div",84,3)(166,"div",57)(167,"div",93)(168,"div",94)(169,"h4",95),r(170),o()(),a(171,"div",61)(172,"p",63),r(173),o(),a(174,"div",96)(175,"div",89)(176,"label"),r(177,"Worker:"),o()(),a(178,"div",90)(179,"select",97),F("ngModelChange",function(x){return v(m),N(i.productWorkerId,x)||(i.productWorkerId=x),b(x)}),M(180,qn,2,3,"option",98,E),o()()(),a(182,"div",62)(183,"div",69)(184,"button",70),g("click",function(){return i.productSave()}),r(185,"UPDATE"),o(),a(186,"button",71),g("click",function(){return i.hidePopup()}),r(187,"Cancel "),o()()()()()()(),a(188,"div",84,4)(190,"div",57)(191,"div",93)(192,"div",99)(193,"h4")(194,"b"),r(195),o()()(),a(196,"div",61)(197,"div",87)(198,"p",63),r(199),o(),a(200,"div",64)(201,"div",88)(202,"div",89)(203,"label"),r(204,"Worker:"),o()(),s(205,Jn,4,1,"div",100),o()()(),a(206,"div",62)(207,"div",69)(208,"button",70),g("click",function(){return i.otherSave()}),r(209,"UPDATE"),o(),a(210,"button",71),g("click",function(){return i.hidePopup()}),r(211,"Cancel "),o()()()()()()(),a(212,"div",56,5)(214,"div",101)(215,"div",102)(216,"div",59)(217,"h4",103)(218,"b"),r(219,"Email Receipt"),o()()(),a(220,"span",104),g("click",function(){return i.commonCancelModal()}),r(221,"\xD7"),o(),a(222,"div",105)(223,"div",62)(224,"div",106)(225,"label")(226,"b"),r(227,"Client Name:"),o()()(),a(228,"div",107),r(229),o(),a(230,"div",106)(231,"label")(232,"b"),r(233,"Client Email:"),o()()(),a(234,"div",108)(235,"input",109),F("ngModelChange",function(x){return v(m),N(i.clientEmail,x)||(i.clientEmail=x),b(x)}),g("keypress",function(){return i.clearErrMsg()}),o()()(),a(236,"div",62)(237,"div",69)(238,"button",70),g("click",function(){return i.sendEmailReciept()}),r(239,"Send"),o(),a(240,"button",71),g("click",function(){return i.commonCancelModal()}),r(241,"Cancel"),o()()()()()()(),a(242,"div",84,6)(244,"div",57)(245,"div",85)(246,"div",110)(247,"h4")(248,"b"),r(249,"Add Tip Payment"),o()()(),a(250,"div",61)(251,"div",88)(252,"div",89)(253,"label"),r(254,"Amount"),o()(),a(255,"div",111)(256,"input",112),g("keypress",function(x){return i.numbersOnly(x)}),F("ngModelChange",function(x){return v(m),N(i.tipAmountAdd,x)||(i.tipAmountAdd=x),b(x)}),o(),s(257,Hn,3,1,"div",113),o()(),a(258,"div",18)(259,"div",89)(260,"label"),r(261,"Payment Type"),o()(),a(262,"div",111)(263,"select",114),F("ngModelChange",function(x){return v(m),N(i.paymentType,x)||(i.paymentType=x),b(x)}),M(264,Qn,2,3,"option",98,E),o()()(),a(266,"div",18)(267,"div",89)(268,"label"),r(269,"Type"),o()(),a(270,"div",111)(271,"select",115),F("ngModelChange",function(x){return v(m),N(i.tipName,x)||(i.tipName=x),b(x)}),a(272,"option",116),r(273,"Tip Left in Drawer"),o(),a(274,"option",117),r(275,"Tip Paid Out"),o()()(),s(276,Yn,3,1,"div",113),o()(),a(277,"div",62)(278,"div",118)(279,"button",70),g("click",function(){return i.saveAdditionalAmt()}),r(280,"Save"),o(),a(281,"button",71),g("click",function(){return i.hidePopup()}),r(282,"Cancel"),o()()()()()(),a(283,"div",119,7)(285,"div",101)(286,"div",58)(287,"span",73),g("click",function(){return i.closeEditTicketModal()}),r(288,"\xD7"),o(),a(289,"div",120)(290,"div",121)(291,"div",122)(292,"div",123)(293,"label",124),r(294,"Click on the Date, line item or "),f(295,"br"),r(296," payment to make changes."),o(),a(297,"label",125),r(298,"warning: editing tickets will effect"),f(299,"br"),r(300," reporting and payroll results."),o(),f(301,"hr",126),o()()(),a(302,"div",88)(303,"div",122)(304,"div",127)(305,"label",128),r(306,"Ticket Date"),o(),a(307,"span",129)(308,"
34input",130),F("ngModelChange",function(x){return v(m),N(i.appointmentDate,x)||(i.appointmentDate=x),b(x)}),g("ngModelChange",function(){return i.changeApptDate()}),o()()(),a(309,"div",131)(310,"p",29),r(311),o(),a(312,"p",29),r(313),o(),a(314,"p",29),r(315),o(),a(316,"p",29),r(317),o()()()(),a(318,"div",88)(319,"div",37),r(320),o()(),f(321,"hr"),a(322,"div",43)(323,"div",39)(324,"div",44)(325,"div",34)(326,"div",41)(327,"div",132)(328,"div",43)(329,"div",39),s(330,uo,12,4,"div",44),s(331,Vo,12,4,"div",133),s(332,Uo,11,4,"div",134),s(333,Yo,11,4,"div",44),a(334,"div",44)(335,"div",45)(336,"div",46),r(337,"Subtotal"),o(),f(338,"div",47),a(339,"div",48),r(340),C(341,"number"),o()()(),s(342,Ko,8,4,"div",44),s(343,Xo,3,0,"div",44),o()(),a(344,"div",135)(345,"div",45)(346,"div",46),r(347,"TOTAL"),o(),f(348,"div",47),a(349,"div",50),s(350,ta,3,4,"h2",51),s(351,ea,3,4,"h2",51),s(352,ia,3,4,"h2",51),s(353,na,3,4,"h2",51),s(354,oa,3,4,"h2",51),o()()(),a(355,"div",43),M(356,la,18,11,"div",39,E),a(358,"div",44)(359,"div",45)(360,"div",136),r(361," change back"),o(),f(362,"div",47),a(363,"div",50),r(364),C(365,"number"),o()()()(),a(366,"div",43),M(367,ra,5,3,"div",39,E),o()()()()()()()()()()(),a(369,"div",84,8)(371,"div",57)(372,"div",85)(373,"div",99)(374,"h4")(375,"b"),r(376),o()()(),a(377,"div",61)(378,"div",87)(379,"div",88)(380,"div",89)(381,"label"),r(382,"Payment:"),o()(),a(383,"div",137)(384,"select",97),F("ngModelChange",function(x){return v(m),N(i.paymentValue,x)||(i.paymentValue=x),b(x)}),M(385,ca,2,3,"option",98,E),o(),f(387,"input",138),o()()(),a(388,"div",62)(389,"div",69)(390,"button",70),g("click",function(){return i.paymentService()}),r(391,"Update"),o(),a(392,"button",71),g("click",function(){return i.hidePopup()}),r(393,"Cancel "),o()()()()()()(),a(394,"div",84,9)(396,"div",57)(397,"div",93)(398,"div",139)(399,"h4")(400,"b"),r(401,"Update Tip Details"),o()()(),a(402,"div",61)(403,"div",88)(404,"div",140)(405,"label"),r(406,"Amount"),o()(),a(407,"div",141)(408,"input",142),g("keypress",function(x){return i.numbersOnly(x)}),F("ngModelChange",function(x){return v(m),N(i.editTipAmnt,x)||(i.editTipAmnt=x),b(x)}),o()()(),a(409,"div",88)(410,"div",140)(411,"label",143),r(412,"Worker"),o()(),a(413,"div",141)(414,"select",144),F("ngModelChange",function(x){return v(m),N(i.updateTipWorker,x)||(i.updateTipWorker=x),b(x)}),a(415,"option",145),r(416,"Select Worker"),o(),M(417,da,2,2,"option",92,E),o()()(),a(419,"div",88)(420,"div",140)(421,"label",143),r(422,"Type"),o()(),a(423,"div",141)(424,"select",146),F("ngModelChange",function(x){return v(m),N(i.updateTipType,x)||(i.updateTipType=x),b(x)}),a(425,"option",116),r(426,"Tip Left in Drawer"),o(),a(427,"option",117),r(428,"Tip Paid Out"),o()()()(),a(429,"div",62)(430,"div",69)(431,"button",70),g("click",function(){return i.updateTipAmounts()}),r(432,"Update"),o(),a(433,"button",71),g("click",function(){return i.hideTipPopup()}),r(434,"Cancel "),o()()()()()()(),a(435,"div",147,10)(437,"div",148)(438,"div",58)(439,"div",149)(440,"p",150),r(441,"Are you sure you want "),f(442,"br"),r(443,"to void this ticket?"),o()(),a(444,"div",151)(445,"button",152),g("click",function(){return i.removeVoidTicket()}),a(446,"span",153),r(447,"Yes"),o()(),a(448,"button",154),g("click",function(){v(m);let x=pt(436);return b(x.hide())}),a(449,"span",153),r(450,"Cancel"),o()()()()()(),a(451,"div",56,11)(453,"div",101)(454,"div",58)(455,"div",155)(456,"h4")(457,"b",60),r(458,"Email Gift"),o()(),a(459,"button",156),g("click",function(){return i.emailGiftModal.hide()}),a(460,"span",157),r(461,"\xD7"),o()()(),a(462,"div",61)(463,"div",62)(464,"div",106)(465,"label")(466,"b",95),r(467,"Client Name:"),o()()(),a(468,"div",107),r(469),o(),a(470,"div",106)(471,"label")(472,"b",95),r(473,"Client Email:"),o()()(),a(474,"div",108)(475,"input",109),F("ngModelChange",function(x){return v(m),N(i.clientEmail,x)||(i.clientEmail=x),b(x)}),g("keypress",function(){return i.clearErrMsg()}),o()()(),a(476,"div",62)(477,"div",69)(478,"button",70),g("click",function(){return i.sendEmailGift()}),r(479,"Send"),o(),a(480,"button",71),g("click",function(){return i.emailGiftModal.hide()}),r(481,"Cancel"),o()()()()()()(),a(482,"html",158)(483,"head"),f(484,"meta",159)(485,"meta",160)(486,"meta",161),a(487,"title"),r(488,"Document"),o()(),a(489,"body",162)(490,"div",163)(491,"div",88)(492,"div",164)(493,"h4"),r(494),o(),a(495,"h4"),r(496),o(),a(497,"h4"),r(498),o(),a(499,"h4"),r(500),o()()(),a(501,"div",62)(502,"div",37),r(503),o()(),s(504,sa,3,1,"div",165),f(505,"hr",166),a(506,"div",43)(507,"div",39)(508,"div",44)(509,"div",34)(510,"div",41)(511,"div",132),f(512,"div",167),a(513,"div",43)(514,"div",39),s(515,Pa,12,4,"div",44),s(516,Ya,12,4,"div",44),s(517,nl,11,4,"div",44),s(518,al,12,7,"div",44),a(519,"div",44)(520,"div",45)(52
341,"div",46),r(522," Subtotal"),o(),f(523,"div",47),a(524,"div",48),r(525),C(526,"number"),o()()(),s(527,ll,8,4,"div",44),s(528,cl,3,0,"div",44),o()(),a(529,"div",135)(530,"div",45)(531,"div",46),r(532," TOTAL"),o(),f(533,"div",47),a(534,"div",50),s(535,dl,3,4,"h2",51),s(536,sl,3,4,"h2",51),s(537,pl,3,4,"h2",51),s(538,ml,3,4,"h2",51),s(539,_l,3,4,"h2",51),o()()(),a(540,"div",43),M(541,Cl,11,7,"div",39,E),o(),a(543,"div",18)(544,"h4"),r(545),o(),a(546,"h4"),r(547),o()(),a(548,"div",62)(549,"h4"),r(550),o()(),a(551,"div",18)(552,"h4"),r(553),o()(),s(554,xl,3,2,"div",18),s(555,kl,3,1,"div",168),o()()()()()()()()(),a(556,"input",169),g("click",function(){return i.updatePaymentNotes()}),o(),a(557,"div",170,12)(559,"div",171)(560,"div",58)(561,"div",61)(562,"div",62)(563,"div",17)(564,"strong"),r(565,"Send StrikeTip Link"),o(),a(566,"div",172)(567,"ul",173)(568,"li",174),g("click",function(){return i.navigateTab("sms",0)}),a(569,"a")(570,"b"),r(571,"Send Sms"),o()()(),a(572,"li",174),g("click",function(){return i.navigateTab("email",1)}),a(573,"a")(574,"b"),r(575,"Send Email"),o()()()(),f(576,"br"),s(577,fl,1,1,"input",175),s(578,gl,1,1,"input",176),a(579,"div",24)(580,"button",177),g("click",function(){return i.sendstriketiplink()}),r(581,"Send"),o()()()()()()()()()}l&2&&(D("newMenu","noNav"),n(3),p(i.groupId?3:i.invoiceStatus?4:5),n(3),p(!i.hideTipOption&&i.decodedToken.Tickets&&i.decodedToken.Tickets["Tips - Completed Ticket"]?6:-1),n(2),p(i.includeTcktmsg||i.hideTipOption||!(i.decodedToken.Tickets&&i.decodedToken.Tickets["Tips - Completed Ticket"])?8:-1),n(),p(i.apptData.nextAppt?9:-1),n(),p(i.voidTckt?-1:10),n(3),p(i.voidTckt?-1:13),n(),p(i.voidTckt?14:-1),n(2),D("ngClass",_t(160,re,i.voidTckt&&i.originalTicketSrvc===1,i.voidTckt&&i.originalTicketSrvc===0)),n(),D("ngClass",j(163,at,i.voidTckt)),n(4),S(i.companyInfo==null?null:i.companyInfo.Name),n(2),S(i.companyInfo==null?null:i.companyInfo.Street_Address__c),n(2),A("",i.companyInfo==null?null:i.companyInfo.City__c,", ",i.companyInfo==null?null:i.companyInfo.State_Code__c," ",i.companyInfo==null?null:i.companyInfo.Postal_Code__c),n(2),I("",i.companyInfo==null?null:i.companyInfo.Phone__c," | ",i.companyInfo==null?null:i.companyInfo.Email__c," "),n(2),p(i.giftBtns&&i.apptData.isRefund__c===0?29:-1),n(),p(i.giftBtns&&i.apptData.isRefund__c===0?30:-1),n(),D("ngClass",j(165,at,i.voidTckt)),n(2),p(i.clientName?33:-1),n(),p(i.showstar?34:-1),n(),p(i.clientName?-1:35),n(2),D("ngClass",j(167,at,i.voidTckt)),n(8),p(i.TicketServiceData&&i.TicketServiceData.length>0?45:-1),n(),p(i.ticketProductsList&&i.ticketProductsList.length>0?46:-1),n(),p(i.ticketOthersList&&i.ticketOthersList.length>0?47:-1),n(),p(i.tipTotal?48:-1),n(7),S(k(56,142,i.subTotal,"2.2-2")),n(2),p(i.prepaidTax?57:-1),n(),p(i.includedTicketsList&&i.includedTicketsList.length>0?58:-1),n(8),p(i.subTotal&&!i.includedTicketsTotal?66:-1),n(),p(i.subTotal&&i.includedTicketsTotal?67:-1),n(),p(!i.subTotal&&i.includedTicketsTotal?68:-1),n(),p(!i.subTotal&&i.prepaidTax?69:-1),n(),p(!i.subTotal&&!i.prepaidTax&&!i.includedTicketsTotal?70:-1),n(2),O(i.ticketPaymentList),n(4),I("Ticket Date: ",i.ticketDate[0]?i.ticketDate[0]:k(77,145,i.lastmofdate,"MM/dd/yyyy HH:mm")," ",i.ticketDate[1]),n(3),I("Last Modified Date: ",i.LastModifiedDate[0]?i.LastModifiedDate[0]:k(80,148,i.lastmofdate,"MM/dd/yyyy HH:mm")," ",i.LastModifiedDate[1]," "),n(4),u("Worker: ",i.modifiedUser),n(3),u("Ticket # ",i.ticketNumber),n(),p(i.dispCashDrawer?87:-1),n(),p(i.posLists?88:-1),n(10),S(i.clientName),n(4),S(i.error),n(4),U(i.styleOnClickGood),n(2),U(i.styleOnClickFair),n(2),U(i.styleOnClickPoor),n(19),L("ngModel",i.cSearch),n(4),D("ngClass",j(169,lt,i.autoList.length>3?"heightAdj":"")),n(2),O(i.autoList),n(9),S(i.serviceName),n(4),S(i.error),n(6),L("ngModel",i.serviceworkerId),n(),O(i.serviceLists),n(2),p(i.showMySrvcNote?157:-1),n(13),S(i.productName),n(3),S(i.error),n(6),L("ngModel",i.productWorkerId),n(),O(i.productListsWorkers),n(15),S(i.otherName),n(4),S(i.error),n(6),p(i.activeWorkerLists?205:-1),n(24),u(" ",i.clientName?i.clientName:i.noclientLabel," "),n(6),L("ngModel",i.clientEmail),n(21),L("ngModel",i.tipAmountAdd),n(),p(i.errTipAmount?257:-1),n(6),L("ngModel",i.paymentType),n(),O(i.paymentList),n(7),L("ngModel",i.tipName),n(5),p(i.errTipName?276:-1),n(32),L("ngModel",i.appointmentDate),D("maxDate",i.maxDate)("bsConfig",i.datePickerConfig),n(3),S(i.companyInfo==null?null:i.companyInfo.Name),n(2),S(i.companyInfo==null?null:i.companyInfo.Street_Address__c),n(2),A("",i.companyInfo==null?null:i.companyInfo.City__c,", ",i.companyInfo==null?null:i.companyInfo.State_Code__c," ",i.companyInfo==null?null:i.companyInfo.Postal_Code__c),n(2),I("",i.companyInfo==null?null:i.companyInfo.Phone__c," | ",i.companyInfo==null?null:i.companyInfo.Email__c," "),n(3),u("",i.clientName?i.clientName:i.noclientLabel," "),n(10),p(i.TicketServiceData&&i.TicketServiceData.length>0?330:-1),n(),p(i.ticketProductsList&&i.ticketProductsList.length>0?331:-1),n(),p(i.ticketOthersList&&i.ticketOthersList.length>0?332:-1),n(),p(i.tipTotal?333:-1),n(7),S(k(341,151,i.subTotal,"2.2-2")),n(2),p(i.prepaidTax?342:-1),n(),p(i.includedTicketsList&&i.includedTicketsList.length>0?343:-1),n(7),p(i.subTotal&&!i.includedTicketsTotal?350:-1),n(),p(i.subTotal&&i.includedTicketsTotal?351:-1),n(),p(!i.subTotal&&i.includedTicketsTotal?352:-1),n(),p(!i.subTotal&&i.prepaidTax?353:-1),n(),p(!i.subTotal&&!i.prepaidTax&&!i.includedTicketsTotal?354:-1),n(2),O(i.ticketPaymentList),n(8),u(" ",k(365,154,i.changeBack,"2.2-2")," "),n(3),O(i.ticketPaymentList),n(9),S(i.serviceName),n(8),L("ngModel",i.paymentValue),n(),O(i.paymentList),n(2),D("value",z(i.paymentId)),n(21),L("ngModel",i.editTipAmnt),n(6),L("ngModel",i.updateTipWorker),n(3),O(i.activeWorkerLists),n(7),L("ngModel",i.updateTipType),n(11),D("c
34onfig",K(171,ce)),n(34),u(" ",i.clientName?i.clientName:i.noclientLabel," "),n(6),L("ngModel",i.clientEmail),n(19),u(" ",i.companyInfo==null?null:i.companyInfo.Name),n(2),u(" ",i.companyInfo==null?null:i.companyInfo.Street_Address__c),n(2),A(" ",i.companyInfo==null?null:i.companyInfo.City__c,", ",i.companyInfo==null?null:i.companyInfo.State_Code__c," ",i.companyInfo==null?null:i.companyInfo.Postal_Code__c),n(2),I(" ",i.cmpPhone," | ",i.companyInfo==null?null:i.companyInfo.Email__c),n(3),S(i.clientName?i.clientName:i.noclientLabel),n(),p(i.showstar?504:-1),n(11),p(i.TicketServiceData&&i.TicketServiceData.length>0?515:-1),n(),p(i.ticketProductsList&&i.ticketProductsList.length>0?516:-1),n(),p(i.ticketOthersList&&i.ticketOthersList.length>0?517:-1),n(),p(i.tipTotal?518:-1),n(7),S(k(526,157,i.subTotal,"2.2-2")),n(2),p(i.prepaidTax?527:-1),n(),p(i.includedTicketsList?528:-1),n(7),p(i.subTotal&&!i.includedTicketsTotal?535:-1),n(),p(i.subTotal&&i.includedTicketsTotal?536:-1),n(),p(!i.subTotal&&i.includedTicketsTotal?537:-1),n(),p(!i.subTotal&&i.prepaidTax?538:-1),n(),p(!i.subTotal&&!i.prepaidTax&&!i.includedTicketsTotal?539:-1),n(2),O(i.ticketPaymentList),n(4),I("Ticket Date: ",i.ticketDate[0]," ",i.ticketDate[1]),n(2),I("Last Modified Date: ",i.LastModifiedDate[0]," ",i.LastModifiedDate[1]),n(3),u("Worker: ",i.modifiedUser),n(3),u("Ticket # ",i.ticketNumber),n(),p(i.dispCashDrawer?554:-1),n(),p(i.posLists?555:-1),n(13),U(tt("tablinks ",i.TabClass[0])),n(4),U(tt("tablinks ",i.TabClass[1])),n(5),p(i.TabVal==="sms"?577:-1),n(),p(i.TabVal==="email"?578:-1))},dependencies:[ut,It,Et,bt,wt,Pt,yt,Ot,Mt,St,Ft,zt,jt,Wt,$t,V,ft,xt,kt,Ct],styles:['.label[_ngcontent-%COMP%]{font-weight:none}label[_ngcontent-%COMP%]{display:inline-block;max-width:100%;margin-bottom:none!important;font-weight:400!important}.label-css[_ngcontent-%COMP%]{font-family:Inter;font-size:18px;font-weight:700!important;color:#354452}.voidbtn[_ngcontent-%COMP%]:hover{background-color:#35c31b}.header-txt[_ngcontent-%COMP%], .textFont[_ngcontent-%COMP%]{font-size:15Px!important;font-weight:400!important;color:#0059aa!important}.input-style[_ngcontent-%COMP%]{width:25%;color:#354452}p[_ngcontent-%COMP%]{margin-bottom:-12px}.search-image[_ngcontent-%COMP%]{position:relative;left:67px;top:-21px}.client-close[_ngcontent-%COMP%]{width:30px;height:30px;background:#545454!important;border-radius:50%;color:#fff!important;font-size:20px!important;line-height:30px!important;opacity:1!important;text-align:center;text-shadow:none!important;font-weight:400!important;position:absolute;z-index:99;float:right;right:-10px;top:-10px}.client-close[_ngcontent-%COMP%]:hover, .client-close[_ngcontent-%COMP%]:focus{cursor:pointer}.bluemodal.small-modal[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%]{max-width:400px!important;position:relative;left:520px;top:91px}.bluemodal.small-modal[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0!important}.bluemodal[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{color:#354452!important}.bluemodal[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#354452!important}.bluemodal[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::-moz-placeholder{color:#354452!important}.bluemodal[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:-ms-input-placeholder{color:#354452!important}.bluemodal[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:-moz-placeholder{color:#354452!important}.mymodal[_ngcontent-%COMP%]{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:#0006}.head-bar[_ngcontent-%COMP%]{background:#338ad9;border:0!important;color:#fff;font-size:24px;line-height:28px;padding:6px 15px;text-align:center;font-family:Inter!important;font-weight:700;margin:9px 25px 13px 15px;text-transform:uppercase}.visitType-dropdown[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{background:#2d7aa8!important;color:#fff!important;padding:5px!important}.btns[_ngcontent-%COMP%]{background:#fff;border:0!important;border-radius:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px}.btn-defaults[_ngcontent-%COMP%], .btn-gradient-txt[_ngcontent-%COMP%]{border-radius:3px!important}.btn-defaults[_ngcontent-%COMP%]{color:#333}.btns[_ngcontent-%COMP%]{outline:none!important}.center-css[_ngcontent-%COMP%]{text-align:center}.btn-margin[_ngcontent-%COMP%]{margin:5px 10px}.profile-list-view-txt[_ngcontent-%COMP%]{padding:20px 30px;min-height:541px}.profile-list-view-txt-Isdeleted[_ngcontent-%COMP%]{padding:20px 30px;min-height:180px}.bg-before[_ngcontent-%COMP%], .bg-before1[_ngcontent-%COMP%]{position:relative}.bg-before[_ngcontent-%COMP%]:before{content:"";background-image:url(/assets/images/voided-bg.png);width:100%;height:300px;position:absolute;display:block;top:30%;left:15%;opacity:.5;background-repeat:no-repeat}.bg-before1[_ngcontent-%COMP%]:before{content:"";background-image:url(/assets/images/refund-bg.png);width:100%;height:300px;position:absolute;display:block;top:30%;left:10%;opacity:.5;background-repeat:no-repeat}.void-style[_ngcontent-%COMP%]{font-size:200px;font-weight:800;color:#f30000;opacity:.5;letter-spacing:5px}.refund-style[_ngcontent-%COMP%]{font-size:170px;font-weight:800;color:#f30000;opacity:.5;letter-spacing:5px}.check-profile-list[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:400px;width:100%;margin:0 auto 7px;cursor:pointer}
34.check-profile-list-name[_ngcontent-%COMP%]{width:calc(100% - 80px);float:right;font-size:22px;line-height:25px;text-transform:uppercase;font-weight:400;color:#354452;font-family:Inter!important;margin-left:10px}.check-details[_ngcontent-%COMP%]{max-width:470px;width:100%;margin:0 auto}.sub-item-service[_ngcontent-%COMP%]{display:table;font-size:18px;line-height:20px;width:100%;margin-bottom:15px;color:#062675}.merchantDropDown[_ngcontent-%COMP%]{padding:0 15px;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.sub-item-service.desc[_ngcontent-%COMP%]{margin-bottom:5px}.sub-item-service[_ngcontent-%COMP%], .sub-item-sub[_ngcontent-%COMP%]   .sub-item-service[_ngcontent-%COMP%]{font-weight:400}.price-total[_ngcontent-%COMP%]{font-size:22px;line-height:70px;text-transform:uppercase;font-weight:400;color:#354452;margin-left:-20px}.total[_ngcontent-%COMP%]{font-size:20px;margin-top:15px;color:#354452}.listcharge[_ngcontent-%COMP%]{margin-top:-8px}.check-profile-list-name[_ngcontent-%COMP%]{width:calc(100% - 80px);font-size:22px;line-height:25px;text-transform:uppercase;font-weight:400;color:#01091d;font-family:Inter!important;margin-left:10px}.logo-inactive[_ngcontent-%COMP%]{cursor:pointer;opacity:.3!important}.form_cont[_ngcontent-%COMP%]{border-radius:5px!important;overflow:hidden!important;padding-bottom:33px!important;font-size:15px!important;letter-spacing:0px!important}.profile-list-view-txt[_ngcontent-%COMP%]{padding:20px 0;font-size:18px}h4[_ngcontent-%COMP%]{text-align:center;display:block;font-size:18px;line-height:1.1;font-weight:400;margin:0;padding:0 0 10px}.check-profile-list-img[_ngcontent-%COMP%], .check-profile-list-name[_ng
34content-%COMP%]{font-family:Inter,sans-serif!important;font-weight:400;text-align:center;float:none;width:100%;margin:0;padding:0}.checkoutlist[_ngcontent-%COMP%], .drawer-button[_ngcontent-%COMP%], .merchantDropDown[_ngcontent-%COMP%]{padding:0 15px}.check-profile-list-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:61px;height:61px;border-radius:100%;object-fit:cover;border:1px solid #fff}.check-profile-list-name[_ngcontent-%COMP%]{width:100%;font-size:18px;line-height:1.1;text-transform:uppercase;font-weight:400;color:#354452;padding:20px 0}.check-profile-list-name.text-uppercase[_ngcontent-%COMP%]{padding-top:0}.check-profile-list-name[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:18px;line-height:1;margin:0;padding:0}.sub-item-service[_ngcontent-%COMP%]{display:table;font-size:18px;line-height:23px;width:100%;margin-bottom:15px;color:#354452;font-weight:400}.sub-item-service[_ngcontent-%COMP%]   .sub-item1[_ngcontent-%COMP%], .sub-item2[_ngcontent-%COMP%], .sub-item3[_ngcontent-%COMP%]{display:table-cell;width:auto}.listcharge[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;margin-top:15px}.price-total[_ngcontent-%COMP%]{font-size:18px;line-height:1;text-transform:uppercase;font-weight:400;color:#354452;margin:3px 0 0}hr[_ngcontent-%COMP%]{border:0px;max-width:500px;margin:0 auto;width:100%;display:block;height:3px;background:#eee}.horizontaline[_ngcontent-%COMP%]{margin:30px 0 1rem 1rem;width:100%;border-top:1px solid #24282f!important;max-width:97%}.total[_ngcontent-%COMP%]{width:136px;display:inline-block;vertical-align:top;text-align:right;font-size:20px;margin-top:15px;color:#354452}.merchantDropDown[_ngcontent-%COMP%]{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.merchantDropDown[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{padding:0 15px;height:27px;font-size:12px;line-height:12px;width:52%!important}.checkoutlist[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline!important}.charge-btn[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:4px;margin-top:12px}.sub-item-service[_ngcontent-%COMP%]   .sub-item1[_ngcontent-%COMP%]   span.disc[_ngcontent-%COMP%]{margin-right:10px;text-transform:uppercase;padding:2px 5px 2px 10px}.sub-item1[_ngcontent-%COMP%]{width:5%!important}.sub-item-service[_ngcontent-%COMP%]   .sub-item3[_ngcontent-%COMP%]{text-align:right}.sub-item3[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-decoration:line-through}.sub-item-service[_ngcontent-%COMP%]   .sub-item1[_ngcontent-%COMP%], .sub-item3[_ngcontent-%COMP%]{white-space:nowrap}.sub-item3[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{padding:0;text-align:right}.sub-item-service[_ngcontent-%COMP%]   .sub-item2[_ngcontent-%COMP%]{border-bottom:1px solid rgba(231,234,242,1)}.sub-item-sub[_ngcontent-%COMP%]   .sub-item-service[_ngcontent-%COMP%]{font-weight:400}h4.text-right[_ngcontent-%COMP%]{text-align:right!important}.btns.btn-defaults[_ngcontent-%COMP%]{display:inline-block;margin-right:5px;margin-left:5px}.m-left[_ngcontent-%COMP%]{margin-right:10px}.compy-info[_ngcontent-%COMP%]{padding-left:35%}.compy-info-main[_ngcontent-%COMP%]   .btns.btn-defaults[_ngcontent-%COMP%]{float:right}.compy-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:400;color:#354452;margin:0}.compy-info-main[_ngcontent-%COMP%]   .btns.btn-defaults[_ngcontent-%COMP%]{font-size:15px;padding:3px;text-transform:capitalize;display:block;width:100%;max-width:135px}
34.clint-name[_ngcontent-%COMP%]{color:#354452;font-weight:500}.email-gift[_ngcontent-%COMP%]{text-align:center;display:block}.modal-close[_ngcontent-%COMP%]{opacity:1;float:right;font-size:21px;font-weight:700;line-height:1;color:#000;background-color:transparent!important;border:none!important;position:absolute;top:50px;right:30px}.email-reciept[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{margin-top:-35px;margin-left:96%;cursor:pointer;font-weight:700}.deduct[_ngcontent-%COMP%]{color:red;font-size:15px;text-decoration:auto!important;font-weight:700;position:absolute;margin-left:10px}.receipt-info[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#354452!important}.payment-note[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::placeholder{color:gray;font-style:italic;padding-top:3px}.editText[_ngcontent-%COMP%]{background-color:#fff0;width:347px;resize:none;font-size:16px;font-weight:400;font-style:italic}.payment-note[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{max-width:500px;display:inline-block;font-size:15px;line-height:25px;color:#354452!important;background:none!important;min-height:80px;padding:10px 15px;width:100%;border-color:#24282f!important;resize:none}.service-menu[_ngcontent-%COMP%]{border-radius:15px!important;background:#e5e5e5!important}.service-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:0!important;display:inline-block!important;cursor:pointer!important;padding:0;margin:0}.service-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%], .service-menu[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background:#338ad9!important;color:#fff!important;border-radius:15px!important}.service-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border:6px!important;margin:0!important;background:#e5e5e5!important;color:#354452!important;padding:10px 20px!important;display:block!important;line-height:18px!important;font-size:15px!important;text-transform:titlecase;border-radius:15px!important}.payment-note[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#354452!important;font-style:italic}.payment-note[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-moz-placeholder{color:#354452!important;font-style:italic}.payment-note[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:-ms-input-placeholder{color:#354452!important;font-style:italic}.payment-note[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:-moz-placeholder{color:#354452!important;font-style:italic}.heightAdj[_ngcontent-%COMP%]{height:200px;overflow:auto;margin-top:20px;margin-left:10px}.mr-b[_ngcontent-%COMP%]{margin-bottom:20px}span.star-icon[_ngcontent-%COMP%]{padding-left:10px;position:absolute;text-decoration:none!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:5px;position:relative;transform:translate(10px)}[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:none;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;background-color:#f0f1f4}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b7bcc6;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}@media only screen and (min-width:1024px)and (max-width:1300px){.bg-before[_ngcontent-%COMP%]:before{left:8%}.refund-style[_ngcontent-%COMP%]{font-size:100px}.bg-before1[_ngcontent-%COMP%]:before{left:15%;background-image:url(/assets/images/refund-bg-pro.png)}}@media only screen and (min-width:1300px){.bg-before[_ngcontent-%COMP%]:before{left:20%}}@media only screen and (max-width:991px){.compy-info[_ngcontent-%COMP%]{padding-left:15%}.compy-info-main[_ngcontent-%COMP%]   .btns.btn-defaults[_ngcontent-%COMP%]{font-size:12px;padding:2px}.void-style[_ngcontent-%COMP%]{font-size:150px}.refund-style[_ngcontent-%COMP%]{font-size:85px}}@media only screen and (max-width:768px){.bg-before[_ngcontent-%COMP%]:before{background-image:url(/assets/images/voided-bg-ipad.png);left:5%}.bg-before1[_ngcontent-%COMP%]:before{left:8%;background-image:url(/assets/images/refund-bg-ipad.png)}}.d-flex-row[_ngcontent-%COMP%]{width:12%}@media only screen and (min-device-width:768px)and (max-device-width:1024px){.tippy-logo[_ngcontent-%COMP%]{width:16%}}@media only screen and (min-device-width:1024px)and (max-device-width:1366px
34){.tippy-logo[_ngcontent-%COMP%]{width:16%}}@media only screen and (max-width:700px){.void-style[_ngcontent-%COMP%], .refund-style[_ngcontent-%COMP%]{font-size:45px}.bg-before[_ngcontent-%COMP%]:before{background-image:none}.bg-before1[_ngcontent-%COMP%]:before{background-image:none}}']})}}return e})();var Jt=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=H({type:e})}static{this.\u0275inj=J({imports:[nt.forChild([{path:"",component:rt,children:[{path:"",component:rt}]}]),nt]})}}return e})();var Jl=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=H({type:e})}static{this.\u0275inj=J({imports:[gt,Dt,Jt,qt,Gt,Rt]})}}return e})();export{Jl as CompletedTicketModule};

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.