1import{b as W}from"./chunk-LWUUEIQO.js";import"./chunk-ZFUIHNPN.js";import"./chunk-KJIUKXJ4.js";import{V as J,Xb as $,Z as V}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{I as F,J as N}from"./chunk-UBDARBLF.js";import{Pa as D,Qa as H,fa as T,l as x,vd as M,wd as O}from"./chunk-DM3NC7AB.js";import{$b as B,Cc as n,Dc as r,Ea as I,Ec as l,Fa as b,Fb as U,Hb as j,Hd as f,Ia as c,Id as h,Jb as s,Mc as R,Oe as K,Pc as d,Qa as C,Ra as k,Rc as L,Vb as A,Wb as a,X as g,a as S,ac as y,ed as u,fd as _,gd as E,uc as P,wc as w}from"./chunk-WVBH4ZDA.js";import"./chunk-YDOXD4O3.js";var p=class i{constructor(t,e){this._http=t;this.occEndpointsService=e}getUKBooking(){let t=this.occEndpointsService.getBaseUrl()+"/book-appointment";return this._http.get(t)}static{this.\u0275fac=function(e){return new(e||i)(c(x),c(H))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}};function Y(i,t){if(i&1){let e=R();n(0,"div")(1,"div",5)(2,"div",6)(3,"a",7),d("click",function(){C(e);let v=L();return k(v.loadInstoreData())}),n(4,"div",8),u(5),f(6,"cxTranslate"),r()()()()()}i&2&&(s(5),E(" ",h(6,1,"bookAppointmentforUK.bookApptInStore")," "))}var m=class i{constructor(t,e,o){this._bookAppointmentUKService=t;this.siteService=e;this.renderer=o;this.siteName="";this.showAppointmentContainer=!0;this.subscriptions$=new S;this.SITEID=$;this.serviceParam=null}ngOnInit(){let t=this.siteService.getActive().subscribe(e=>{this.siteName=e});this.subscriptions$.add(t),this.getdata(),this.continueBtn=document.getElementById("continue-shopping"),this.JrniIframeParent=document.getElementById("jrniIframeContainerId"),this.jrniIframe=document.getElementById("jrniIframeId"),this.loadInstoreData()}onPopState(t){this.toggleClass()}toggleClass(){window.location.hash==="#inStore"?(this.renderer.removeClass(this.JrniIframeParent,"hide"),this.showAppointmentContainer=!1):(this.renderer.addClass(this.JrniIframeParent,"hide"),this.showAppointmentContainer=!0,this.renderer.addClass(this.continueBtn,"hide"))}getdata(){this.jrniURLs=this._bookAppointmentUKService.getUKBooking().pipe(g(1)).subscribe(t=>{this.jrniInStoreURLSrc=t.jrniIFrameUrlUK,this.jrniVirtualURLSrc=t.jrniPortalUrl,this.urlParams=new URLSearchParams(window.location.search),this.serviceParam=this.urlParams?.get(J),this.urlParams.toString()&&this.serviceParam!==null&&this.serviceParam!==void 0&&(this.jrniInStoreURLSrc=this.jrniInStoreURLSrc.replace(V,""),this.jrniInStoreURLSrc=this.jrniInStoreURLSrc+"&"+this.urlParams.toString())})}loadInstoreData(){this.showAppointmentContainer=!1,this.renderer.removeClass(this.JrniIframeParent,"hide"),this.renderer.setProperty(this.jrniIframe,"src",""),setTimeout(()=>{this.renderer.setProperty(this.jrniIframe,"src",this.jrniInStoreURLSrc),this.renderer.removeClass(this.continueBtn,"hide")},2e3)}ngOnDestroy(){this.jrniURLs&&this.jrniURLs.unsubscribe(),this.subscriptions$.unsubscribe()}static{this.\u0275fac=function(e){return new(e||i)(a(p),a(D),a(A))}}static{this.\u0275cmp=B({type:i,selectors:[["appointment-booking-uk"]],hostAttrs:["ngSkipHydration","true"],hostBindings:function(e,o){e&1&&d("popstate",function(G){return o.onPopState(G)},j)},standalone:!1,decls:9,vars:4,consts:[[1,"jrniContainer"],["id","jrniIframeContainerId",1,"hide"],["id","jrniIframeId","src",U`about:blank`,"frameborder","0","allow","geolocation","title","jrni Iframe","height","671px","width","100%"],["id","continue-shopping",1,"continue-shopping","hide"],["href","/",1,"button","CTA-primary","continue-shopping-btn"],["id","bookAppointmentContainerId",1,"book-Appointment-main-div"],[1,"book-app-row-align"],["href","bookAppointment#inStore","id","inStoreAppointmentId",3,"click"],["role","button",1,"book-Appointment-btn"]],template:function(e,o){e&1&&(n(0,"div",0),P(1,Y,7,3,"div"),n(2,"div",1),l(3,"iframe",2),r(),n(4,"div",3)(5,"a",4),u(6),f(7,"cxTranslate"),r(),l(8,"div"),r()()),e&2&&(s(),w(o.showAppointmentContainer?1:-1),s(5),_(h(7,2,"bookAppointmentforUK.continueShopping")))},dependencies:[M],encapsulation:2})}};var z=class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=b({providers:[T({cmsComponents:{bookAppointmentFlexComponent:{component:m}}})],imports:[K,O,W,N,F]})}};export{z as AppointmentBookingUKModule};
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.