1import{Am as S,Cb as Z,Db as J,Dq as et,Fa as z,L as G,La as $,Ma as V,Mz as nt,Na as Y,Nm as C,Om as ot,R as d,V as L,W as p,Wm as it,Xb as K,am as v,cm as h,dn as l,fc as X,ga as P,n as A,na as T,qa as W,ra as c,sc as D,vm as tt}from"./chunk-B5AFIBST.js";var f=(()=>{let i=class i{constructor(e,t){this.store=e,this.zone=t,this.queueSrc="",this.destroyed$=new A,this.commonData$=e.select("webstoreCommonState"),this.commonData$.pipe(G(this.destroyed$)).subscribe(r=>{this.commonData=r})}ngOnInit(){l("queue-init",{}),this.queueSrc=tt("/book/index.html",!0),window.trackQueueBookingEvent=this.trackQueueBookingEvent.bind(this),window.isQueueLoadedInWebstore=this.isQueueLoadedInWebstore.bind(this)}ngOnDestroy(){this.destroyed$.next(!0)}getIFrameHeight(){let e=window.innerHeight,t=h("#header"),r=h(".language-select-container");var m=e-t-r-50;return m<500&&(m=500),document.getElementById("queue-component").style.height=m.toString()+"px",{height:m+"px"}}isQueueLoadedInWebstore(){this.zone.run(()=>{var e,t;(t=(e=this.commonData)==null?void 0:e.guest)!=null&&t.isGuestLoggedIn?v():window.webStoreLogOutCallBack()})}trackQueueBookingEvent(e){this.zone.run(()=>{var m,y,b,w,I,k,x,F,_,E,N,q,B,O,H,M,R,Q,U;let t=JSON.parse(e),r=new D().getConstants();if(t!=null&&t.ConfirmationId){let g=(b=(y=(m=t==null?void 0:t.ConfirmedBookings[0])==null?void 0:m.Price)==null?void 0:y.Final)==null?void 0:b.toFixed(2);l("queue-confirm-booking-success",{},g);let st=(I=(w=t==null?void 0:t.ConfirmedBookings[0])==null?void 0:w.Services)==null?void 0:I.map(o=>{var a,s,u;return{id:(a=o==null?void 0:o.Service)==null?void 0:a.Id,name:(s=o==null?void 0:o.Service)==null?void 0:s.Name,category:o==null?void 0:o.Category,list_position:1,quantity:o==null?void 0:o.Quantity,price:(u=o==null?void 0:o.Price)==null?void 0:u.Final}}),j=(x=(k=t==null?void 0:t.ConfirmedBookings[0])==null?void 0:k.Services)==null?void 0:x.map(o=>{var a,s,u;return{item_id:(a=o==null?void 0:o.Service)==null?void 0:a.Id,item_name:(s=o==null?void 0:o.Service)==null?void 0:s.Name,item_category:o==null?void 0:o.Category,item_index:1,item_quantity:o==null?void 0:o.Quantity,item_price:(u=o==null?void 0:o.Price)==null?void 0:u.Final}});(E=(_=(F=this.commonData)==null?void 0:F.templateSettings)==null?void 0:_.features)!=null&&E.enable_zenoti_google_analytics&&!S()&>ag("event","purchase",{transaction_id:t==null?void 0:t.ConfirmationId,affiliation:"Webstore Store - Online",value:g,currency:r.CURRENCY_CODE,tax:(B=(q=(N=t==null?void 0:t.ConfirmedBookings[0])==null?void 0:N.Price)==null?void 0:q.Tax)==null?void 0:B.toFixed(2),shipping:0,items:j,send_to:it.GA4_Measurement_Id}),(M=(H=(O=this.commonData)==null?void 0:O.templateSettings)==null?void 0:H.features)!=null&&M.enable_google_analytics&&!S()&>ag("event","purchase",{transaction_id:t==null?void 0:t.ConfirmationId,affiliation:"Webstore Store - Online",value:g,currency:r.CURRENCY_CODE,tax:(U=(Q=(R=t==null?void 0:t.ConfirmedBookings[0])==null?void 0:R.Price)==null?void 0:Q.Tax)==null?void 0:U.toFixed(2),shipping:0,items:j,send_to:""})}else l("queue-confirm-booking-fail",{})})}};i.\u0275fac=function(t){return new(t||i)(c(ot),c(P))},i.\u0275cmp=L({type:i,selectors:[["ng-component"]],decls:3,vars:4,consts:[["id","queue-component"],["id","queue-frame","scrolling","auto","frameborder","0",2,"width","100%",3,"ngStyle","src"]],template:function(t,r){t&1&&($(0,"div",0),Y(1,"iframe",1),Z(2,"commonSafeUrl"),V()),t&2&&(W(),z("ngStyle",r.getIFrameHeight())("src",J(2,2,r.queueSrc),T))},dependencies:[K,et],encapsulation:2});let n=i;return n})();var at=[{path:"",pathMatch:"full",component:f}],mt=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=p({type:i}),i.\u0275inj=d({imports:[C.forChild(at),C]});let n=i;return n})();var _t=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=p({type:i,bootstrap:[f]}),i.\u0275inj=d({imports:[X,nt,mt]});let n=i;return n})();export{_t as WebstoreQueueModule};
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.