PageSourceSearch

https://my.wpa.org.uk/_nuxt/M__Apuom.js

js wpa.org.uk collected 2026-09-24 10:05:21 UTC 79,329 bytes, 1 lines download raw bytes

1import{d as V,j as R,c as m,o as i,b as r,q as y,g as v,K as F,L as G,t as C,J as _e,M as te,u as pe,r as z,l as X,k as E,a as J,D as se,w as c,h as e,m as re,F as ae,N as We,_ as me,f as N,e as u,O as de,i as ee,A as ge,T as Fe,p as Oe,H as Re,P as Se,Q as Ee,C as qe,R as Ue}from"./BIRXwELB.js";import{_ as Ye,a as je}from"./Ce_hbmU7.js";import{_ as Z}from"./0zEYwRwf.js";import{_ as we}from"./7xPqRplN.js";import{_ as ze}from"./Ds5NTwN-.js";import{w as Ae,_ as Ke,t as Pe}from"./B5s6iVmH.js";import{_ as xe}from"./DNf-ZttQ.js";import{_ as ce}from"./CBRR8dOI.js";import{_ as Qe}from"./B3uKrBbN.js";import{_ as be}from"./Bdw1gIFc.js";import{_ as ke}from"./CZ0QBkKU.js";import{i as Je,c as Xe}from"./B5SWb8vR.js";import{d as Ze}from"./Bwd6wfWq.js";import{v as et}from"./D8aEg3BZ.js";import{_ as $e,a as Be,b as Me}from"./Cx58ruW3.js";import{_ as Te}from"./CMkv7Olh.js";import{r as tt}from"./BW3Z-90I.js";import{c as st}from"./LiDySFGh.js";import"./ZyYNL5Jg.js";const ot={class:"modal-container"},nt={key:0,class:"modal-info-title-contents"},at={class:"modal-data"},it={class:"modal-footer"},lt=["disabled"],rt=V({__name:"Info",props:{isButtonDisabled:{type:Boolean,default:!1},hasCloseButton:{type:Boolean,default:!1},hasHeader:{type:Boolean,default:!0},hasAcceptButton:{type:Boolean,default:!1},acceptButtonLabel:{type:String,default:"I Accept"},hasDenyButton:{type:Boolean,default:!1},denyButtonLabel:{type:String,default:"I do not Accept"},isError:{type:Boolean,default:!1},hasScrollBar:{type:Boolean,default:!0}},setup(w){const{$bus:l}=R(),n=w,p=()=>{l.$emit("info-closed")},d=()=>{l.$emit("info-accepted")},_=()=>{l.$emit("info-denied")};return(s,a)=>{const t=_e;return i(),m("div",null,[r("form",ot,[r("div",{class:F(["modal-info-contents",w.hasScrollBar?"modal-scroll":""])},[n.hasHeader?(i(),m("header",nt,[G(s.$slots,"header",{},void 0,!0),r("button",{class:"btn-info-close",type:"button",onClick:p})])):v("",!0),r("div",at,[G(s.$slots,"content",{},void 0,!0)]),r("footer",it,[n.hasCloseButton?(i(),m("button",{key:0,class:"btn-solid btn-cancel",type:"button",tabindex:"-1",onClick:p}," Close ")):v("",!0),n.hasAcceptButton?(i(),m("button",{key:1,class:"btn-solid btn-submit",type:"button",tabindex:"-1",onClick:d},C(w.acceptButtonLabel),1)):v("",!0),n.hasDenyButton?(i(),m("button",{key:2,class:"btn-solid btn-submit",type:"button",tabindex:"-1",disabled:n.isButtonDisabled,onClick:_},C(w.denyButtonLabel),9,lt)):v("",!0)]),G(s.$slots,"extra",{},void 0,!0)],2)]),n.isError?(i(),y(t,{key:0,"redirect-to-login":!0,title:"Error",description:"Something went wrong. You’ll be redirected to login."})):v("",!0)])}}}),Ce=te(rt,[["__scopeId","data-v-0a08a6ac"]]),ct={class:"mt-small-1"},ut=["innerHTML"],dt=["href"],pt=["innerHTML"],mt=["innerHTML"],bt=V({__name:"InfoProtocolExpressConsent",props:{consentWording:{type:Object,default:null}},setup(w){const l=J(),n=pe(),{$api:p,$bus:d,$loading:_}=R(),s=p(),{$cookies:a}=R(),t=w,f=z({isError:!1,deniedDataProcessing:!1,isNoButtonDisabled:!1}),$={infoClosed:"info-closed",infoAccepted:"info-accepted",infoDenied:"info-denied"};X(()=>{d.$on($.infoClosed,()=>{b()}),d.$on($.infoAccepted,()=>{o()}),d.$on($.infoDenied,()=>{f.deniedDataProcessing=!0,f.isNoButtonDisabled=!0})});const g=E(()=>l.getters["session/getContract"]),T=E(()=>l.getters["session/getCustomerAccount"]),o=async()=>{_.$start();try{await s.policy.saveDataProcessingConsent(T==null?void 0:T.value.CustomerId,g==null?void 0:g.value.id),d.$emit("protocol-express-consent-submitted")}catch{f.isError=!0,_.$finish()}_.$finish()},b=()=>{l.commit("UPDATE_REFRESH_TOKEN",null),l.commit("UPDATE_REFRESH_TOKEN_EXPIRATION_TIME",null),l.commit("UPDATE_ACCESS_TOKEN",null),l.commit("UPDATE_ACCESS_TOKEN_TIMESTAMP",null),l.commit("IS_SESSION_SET",!1),a.remove("Session"),n.go("/login")};return se(()=>{d.$off($.infoClosed),d.$off($.infoAccepted),d.$off($.infoDenied)}),(P,A)=>{const S=Ce;return t.consentWording?(i(),y(S,{key:0,"has-accept-button":!0,"accept-button-label":"I Agree","has-deny-button":!0,"deny-button-label":"No",isExtraButtonDisabled:e(f).isNoButtonDisabled,"is-error":e(f).isError},{content:c(()=>{var D,H;return[r("div",ct,[r("div",{class:"div-display-inline",innerHTML:(D=t.consentWording)==null?void 0:D.contentWording[0]},null,8,ut),r("a",{href:e(l).state.config.PRIVACY_STATEMENT},"here",8,dt),A[1]||(A[1]=r("div",{class:"div-display-inline"},".",-1)),A[2]||(A[2]=r("br",null,null,-1)),(i(!0),m(ae,null,re((H=t.consentWording)==null?void 0:H.contentWording,(O,j)=>(i(),m("div",null,[j>0?(i(),m("div",{key:0,innerHTML:O},null,8,pt)):v("",!0),A[0]||(A[0]=r("br",null,null,-1))]))),256))])]}),extra:c(()=>{var D;return[A[3]||(A[3]=r("br",null,null,-1)),e(f).deniedDataProcessing?(i(),m("div",{key:0,class:"label-like-element-error",innerHTML:(D=t.consentWording)==null?void 0:D.warningMessage},null,8,mt)):v("",!0)]}),_:1},8,["isExtraButtonDisabled","is-error"])):v("",!0)}}}),vt=["innerHTML"],ht=V({__name:"InfoFpn",props:{fairProcessingNoticeId:{type:Number,default:null},text:{type:String,default:""}},setup(w){const l=J(),{$api:n,$bus:p,$loading:d}=R(),_=n(),s=w,a=z({isError:!1}),t=E(()=>l.getters["session/getCustomerAccount"]),f={infoAccepted:"info-accepted"};X(()=>{p.$on(f.infoAccepted,()=>{$()})});const $=async()=>{d.$start();try{await _.policy.saveFairProcessingNoticeCustomer(s.fairProcessingNoticeId,t==null?void 0:t.value.CustomerId,t==null?void 0:t.value.BuyCustomerId,t==null?void 0:t.value.LeadId),p.$emit("hide-fpn")}catch{a.isError=!0,d.$finish()}d.$finish()};return se(()=>{p.$off(f.infoAccepted)}),(g,T)=>{const o=Ce;return i(),y(o,{"has-header":!1,"has-accept-button":!0,"accept-button-label":"I Accept","is-error":e(a).isError},{content:c(()=>[r("div",{innerHTML:s.text},null,8,vt)]),_:1},8,["is-error"])}}}),ft=We("/images/digi-health/wpa-app-qrcode.svg"),yt={};function _t(w,l){const n=Ce;return i(),y(n,{"has-close-button":!0,"has-scroll-bar":!1},{header:c(()=>l[0]||(l[0]=[r("h1",{class:"info-title-digi-health"}," Digital Health ",-1)])),content:c(()=>l[1]||(l[1]=[r("div",{class:"info-content-digi-health"},[r("div",null,"To access all features and services of your Digital Health policy, please download the MyWPA mobile app."),r("div",null,"Scan the QR code below to get started."),r("div",{class:"info-content-qr-code"},[r("img",{src:ft,alt:"QR Code"})])],-1)])),_:1})}const gt=te(yt,[["render",_t]]),wt=["href","target"],De=V({__name:"ButtonPrimary",props:{isLink:{type:Boolean,default:!1},isLinkStatic:{type:Boolean,default:!1},path:{type:String,default:""},eventName:{type:String,default:"on-click"},buttonLabel:{type:String,default:""},buttonStyle:{type:String,default:"bg-primary-color white-color"},newTab:{type:Boolean,default:!1}},setup(w){const{$bus:l}=R(),n=w,p=()=>{l.$emit(n.eventName)};return(d,_)=>{const s=me;return n.isLink?(i(),y(s,{key:0,to:n.path,class:F(["button-primary","generic-button",n.buttonStyle])},{default:c(()=>[N(C(n.buttonLabel),1)]),_:1},8,["to","class"])):n.isLinkStatic?(i(),m("a",{key:1,class:F(["button-primary","generic-button",n.buttonStyle]),href:n.path,target:n.newTab?"_blank":""},C(n.buttonLabel),11,wt)):(i(),m("button",{key:2,class:F(["button-primary","generic-button",n.buttonStyle]),type:"button",onClick:p},C(n.buttonLabel),3))}}}),kt={class:"card-tertiary-container"},$t={class:"card-tertiary-description"},Ct={key:0,class:"card-tertiary-buttons-container"},St={key:0,class:"mr-medium-2 mr-0-smtab"},Et=V({__name:"CardTertiary",props:{title:{type:String,default:""},description:{type:String,default:""},hasButtons:{type:Boolean,default:!0},hasOptionalButton:{type:Boolean,default:!1},hasMobileTitle:{type:Boolean,default:!1}},setup(w){const l=w;return(n,p)=>(i(),m("div",kt,[r("h2",{class:F(["card-tertiary-title",l.hasMobileTitle?"card-tertiary-title-mobile":""])},C(l.title),3),r("p",$t,C(l.description),1),l.hasButtons?(i(),m("div",Ct,[G(n.$slots,"button"),l.hasOptionalButton?(i(),m("div",St)):v("",!0),l.hasOptionalButton?G(n.$slots,"optional-button",{key:1}):v("",!0)])):v("",!0)]))}}),Pt={key:0,class:"announcement-container"},At={class:"announcement-message"},xt=V({__name:"Announcement",props:{message:{type:String,default:null}},setup(w){const l=w,n=z({isClosed:!1}
1),p=()=>{n.isClosed=!0};return(d,_)=>{const s=Z,a=ze;return l.message&&e(n).isClosed==!1?(i(),m("div",Pt,[r("div",null,[r("p",At,C(l.message),1)]),u(a,{class:"close-announcement-button","aria-label":"Close",onClick:p},{icon:c(()=>[u(s,{name:"close-button",color:"secondary-color"})]),_:1})])):v("",!0)}}}),Bt={class:"page-container-full-width bg-hero bg-hero-homepage"},Mt={class:"page-container-full-width-inner"},Tt={class:"page-container-full-width info-light"},Dt={class:"page-container-full-width"},It=V({__name:"Hero",props:{hasGpServices:{type:Boolean,default:!1},hasOpenClaim:{type:Boolean,default:!1},hasClosedClaim:{type:Boolean,default:!1},conditionDescription:{type:String,default:""},hasMakeANewClaimOption:{type:Boolean,default:!1},quotesAndApplicationsData:{type:Object,default:null},announcementMessage:{type:String,default:null}},setup(w){const l=pe(),n=J(),{$api:p,$bus:d,$loading:_}=R(),s=p(),a=w,t=z({treatmentAndGpServicesInfoEvent:"treatment-and-gp-services-info-event",bookAppointmentEvent:"book-appointment-event",messageGpEvent:"message-gp-event",heroViewActiveClaimEvent:"hero-view-active-claim-event",viewQuotesAndApplicationsEvent:"view-quotes-and-applications-event"}),f=E(()=>a.quotesAndApplicationsData&&a.quotesAndApplicationsData.title);return X(()=>{d.$on(t.viewQuotesAndApplicationsEvent,()=>{_.$start(),Ae.redirectToWebBuy(n,s,l)}),_.$finish()}),se(()=>{d.$off(t.viewQuotesAndApplicationsEvent)}),($,g)=>{const T=De,o=je,b=Z,P=we,A=Et,S=Ye,D=xt;return i(),m(ae,null,[r("div",Bt,[r("div",Mt,[u(S,{"has-extra-panel":!0,"desktop-display":!0},{left:c(()=>[u(o,{title:"Welcome to My WPA",subtitle:a.hasGpServices?"Treatment and GP Services":"",description:a.hasGpServices?"You can access treatment pathways and other benefits - including booking a GP appointment.":"Available to you 24/7.","has-optional-button":!0},de({_:2},[a.hasGpServices?{name:"button",fn:c(()=>[u(T,{"button-label":"Next","icon-position":"left","button-style":"bg-primary-color blue-color","event-name":e(t).treatmentAndGpServicesInfoEvent},{default:c(()=>g[0]||(g[0]=[N("Next ")])),_:1},8,["event-name"])]),key:"0"}:void 0]),1032,["subtitle","description"])]),right:c(()=>[a.hasMakeANewClaimOption&&!e(f)?(i(),y(A,{key:0,title:a.hasOpenClaim?`Your ${a.conditionDescription} claim`:"Ready to make a claim?",description:a.hasOpenClaim?"You have an active claim. Please click below for more details.":"Making a claim is easy. You just need to make sure you have all the right information to hand.","has-optional-button":a.hasOpenClaim||a.hasClosedClaim},{button:c(()=>[u(T,{"button-label":a.hasOpenClaim?"View claim":"Make a claim","button-style":"bg-accent-color white-color","event-name":a.hasOpenClaim?e(t).heroViewActiveClaimEvent:"","is-link":!a.hasOpenClaim,path:`${e(n).state.config.PERSON_RELATIVE_PATH}/make-a-claim`},null,8,["button-label","event-name","is-link","path"])]),"optional-button":c(()=>[u(P,{"button-label":a.hasOpenClaim?"Make a claim":"View claims","icon-position":"left","icon-custom-spacing":"svg-view-add-claim-spacing-left","is-link":!0,path:a.hasOpenClaim?`${e(n).state.config.PERSON_RELATIVE_PATH}/make-a-claim`:`${e(n).state.config.PERSON_RELATIVE_PATH}/claims`},{"button-icon":c(()=>[a.hasOpenClaim||a.hasClosedClaim?(i(),y(b,{key:0,name:a.hasClosedClaim?"view-claim":"add-claim",color:"primary-color"},null,8,["name"])):v("",!0)]),_:1},8,["button-label","path"])]),_:1},8,["title","description","has-optional-button"])):e(f)?(i(),y(A,{key:1,title:a.quotesAndApplicationsData.title,description:a.quotesAndApplicationsData.description},{button:c(()=>[u(T,{"button-label":"Review, update or track your progress","button-style":"bg-accent-color white-color","event-name":e(t).viewQuotesAndApplicationsEvent},null,8,["event-name"])]),_:1},8,["title","description"])):v("",!0)]),_:1})]),u(S,{"has-extra-panel":!0,"mobile-display":!0},{left:c(()=>[a.hasMakeANewClaimOption&&!e(f)?(i(),y(o,{key:0,title:a.hasOpenClaim?`Your ${a.conditionDescription} claim`:"Ready to make a claim?",description:a.hasOpenClaim?"You have an active claim. Please click below for more details.":"Making a claim is easy. You just need to make sure you have all the right information to hand.","has-optional-button":a.hasOpenClaim||a.hasClosedClaim},{button:c(()=>[u(T,{"button-label":a.hasOpenClaim?"View claim":"Make a claim","button-style":"bg-primary-color white-color","event-name":a.hasOpenClaim?e(t).heroViewActiveClaimEvent:"","is-link":!a.hasOpenClaim,path:`${e(n).state.config.PERSON_RELATIVE_PATH}/make-a-claim`},null,8,["button-label","event-name","is-link","path"])]),"optional-button":c(()=>[u(P,{"button-label":a.hasOpenClaim?"Make a claim":"View claims","icon-position":"left","is-link":!0,path:a.hasOpenClaim?`${e(n).state.config.PERSON_RELATIVE_PATH}/make-a-claim`:`${e(n).state.config.PERSON_RELATIVE_PATH}/claims`,"icon-custom-spacing":"svg-view-add-claim-spacing-left","button-style":"white-color no-color-change"},{"button-icon":c(()=>[a.hasOpenClaim||a.hasClosedClaim?(i(),y(b,{key:0,name:a.hasClosedClaim?"view-claim":"add-claim",color:"white-color"},null,8,["name"])):v("",!0)]),_:1},8,["button-label","path"])]),_:1},8,["title","description","has-optional-button"])):e(f)?(i(),y(o,{key:1,title:a.quotesAndApplicationsData.title,de
1scription:a.quotesAndApplicationsData.description},{button:c(()=>[u(T,{"button-label":"Review, update or track your progress","button-style":"bg-primary-color white-color","event-name":e(t).viewQuotesAndApplicationsEvent},null,8,["event-name"])]),_:1},8,["title","description"])):v("",!0)]),right:c(()=>[u(A,{title:"Welcome to My WPA",subtitle:a.hasGpServices?"Treatment and GP Services":"",description:a.hasGpServices?"You can access treatment pathways and other benefits - including booking a GP appointment or message one for advice.":"Available to you 24/7.","has-buttons":a.hasGpServices,"has-optional-button":!0,"has-mobile-title":!0},de({_:2},[a.hasGpServices?{name:"button",fn:c(()=>[u(T,{"button-label":"Next","icon-position":"left","button-style":"bg-primary-color blue-color","event-name":e(t).treatmentAndGpServicesInfoEvent},{default:c(()=>g[1]||(g[1]=[N("Next ")])),_:1},8,["event-name"])]),key:"0"}:void 0]),1032,["subtitle","description","has-buttons"])]),_:1})]),r("div",Tt,[r("div",Dt,[u(D,{message:a.announcementMessage},null,8,["message"])])])],64)}}}),Lt={},Nt={class:"page-container-full-width info-light"};function Gt(w,l){return i(),m("div",Nt,l[0]||(l[0]=[r("div",{class:"page-container-fixed-width text-center",style:{padding:"1rem 0"}},[r("p",null,[r("b",null,"Need a physiotherapist?"),N(" Call us and we can help you by booking an in-person, phone or video appointment with access to over 300 locations. ")])],-1)]))}const Vt=te(Lt,[["render",Gt]]),Ht={class:"button-ctx-label"},Wt=["href"],Ft={class:"button-ctx-label"},Ot={class:"button-ctx-label"},Rt=V({__name:"ButtonCtx",props:{isLink:{type:Boolean,default:!1},isLinkStatic:{type:Boolean,default:!1},path:{type:String,default:""},eventEnabled:{type:Boolean,default:!0},hasIcon:{type:Boolean,default:!0},eventName:{type:String,default:"on-click"},buttonLabel:{type:String,default:""},isActive:{type:Boolean,default:!1}},setup(w){const{$bus:l}=R(),n=w,p=()=>{n.eventEnabled&&l.$emit("on-button-ctx-click",n.eventName)};return(d,_)=>{const s=Z,a=me;return n.isLink?(i(),y(a,{key:0,to:n.path,class:F(["button-ctx","generic-button",n.isActive?"button-ctx-active":""])},{default:c(()=>[r("span",Ht,C(n.buttonLabel),1),n.hasIcon?(i(),y(s,{key:0,name:"arrow2-right",color:"primary-color"})):v("",!0)]),_:1},8,["to","class"])):n.isLinkStatic?(i(),m("a",{key:1,href:n.path,class:F(["button-ctx","generic-button",n.isActive?"button-ctx-active":""])},[r("span",Ft,C(n.buttonLabel),1),n.hasIcon?(i(),y(s,{key:0,name:"arrow2-right",color:"primary-color"})):v("",!0)],10,Wt)):(i(),m("button",{key:2,class:F(["button-ctx","generic-button",n.isActive?"button-ctx-active":""]),type:"button",onClick:p},[r("span",Ot,C(n.buttonLabel),1),n.hasIcon?(i(),y(s,{key:0,name:"arrow2-right",color:"text-color"})):v("",!0)],2))}}}),qt={class:"tabs-vertical-menu-container"},Ut={class:"tabs-vertical-buttons-container"},Yt={key:0,class:"tabs-vertical-content-header"},jt={class:"tabs-vertical-content-title"},zt=V({__name:"TabVerticalMenu",props:{hasHeader:{type:Boolean,default:!1},tabTitle:{type:String,default:""},hasListWithHeaderWithTitles:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1}},setup(w){const l=J(),n=w;return E(()=>l.getters["session/getContract"]),(p,d)=>{const _=Z,s=Qe;return i(),m("div",qt,[r("div",Ut,[G(p.$slots,"tabs-buttons")]),n.isVisible?(i(),m("div",{key:0,class:F(["tabs-vertical-content",n.hasListWithHeaderWithTitles?"tabs-vertical-content-with-list-with-header-with-titles":""])},[n.hasHeader?(i(),m("div",Yt,[r("h3",jt,C(n.tabTitle),1)])):v("",!0),G(p.$slots,"tabs-content")],2)):(i(),y(s,{key:1,"info-box-type":"info-light","info-box-message":"This area of My WPA will become available as soon as your application is processed.","has-icon":!0},{"status-icon":c(()=>[u(_,{name:"tooltip-big",color:"primary-color"})]),_:1}))])}}}),Kt={class:"display-flex align-items-center align-center-mob"},Qt=V({__name:"Policy",props:{policyBenefitsCardData:{type:Array,default:null},linksVisibility:{type:Object,default:null},hasAddFamilyMemberButton:{type:Boolean,default:!1}},setup(w){const l=J(),n=pe(),{$api:p,$bus:d,$loading:_}=R(),s=p(),a=w,t=z({viewBenefitsEvent:"view-benefits-event",viewProductLiteratureEvent:"view-product-literature-event",addFamilyMemberEvent:"add-family-member-event"}),f=E(()=>l.getters["session/getPolicy"]),$=E(()=>l.getters["session/getProduct"]),g=E(()=>l.getters["session/getCustomerAccount"]),T=E(()=>l.getters["session/getContract"]),o=E(()=>{var S;return(S=$.value)==null?void 0:S.policyWord}),b=E(()=>a.policyBenefitsCardData.find(S=>S.isSelected)),P=E(()=>b.value.benefits.length>0);X(()=>{d.$on(t.addFamilyMemberEvent,async()=>{_.$start(),await A()})});const A=async()=>{var D,H,O;
1const S=await s.policy.createFamilyMemberApplicationWithoutInvite((D=g.value)==null?void 0:D.CustomerId,(H=T.value)==null?void 0:H.id,(O=f.value)==null?void 0:O.id);Ae.redirectToWebBuyInvite(l,s,n,S)};return(S,D)=>{const H=Z,O=xe,j=Rt,Q=ce,B=Ke,k=zt,M=be;return i(),y(M,{title:`Your ${e(o)}`,"has-title-extra":a.hasAddFamilyMemberButton},de({content:c(()=>[a.linksVisibility?(i(),y(k,{key:0,"tab-title":e($)!==null?e($).description:"","has-header":!0,"has-extra-buttons":!0,"has-list-with-header-with-titles":!0,"is-visible":a.linksVisibility&&a.linksVisibility.isPolicyCardDetailsVisible},de({"tabs-buttons":c(()=>[(i(!0),m(ae,null,re(a.policyBenefitsCardData,x=>(i(),y(j,{key:`button-${x.key}`,"button-label":x.product!==null?x.product.description:"","is-active":x.isSelected,"event-name":x.customEvent,"event-enabled":a.policyBenefitsCardData.length>1,"has-icon":a.policyBenefitsCardData.length>1},null,8,["button-label","is-active","event-name","event-enabled","has-icon"]))),128))]),_:2},[e(b)&&e(b).benefits?{name:"tabs-content",fn:c(()=>[u(B,{"has-buttons":!0,"list-data":e(b).benefits,"has-header-titles":!0,"is-visible":e(P)},{"list-chart1-buttons":c(()=>[a.linksVisibility.isPolicyDetailsLinkVisible?(i(),y(Q,{key:0,"button-label":`${e(o)} details`,"is-link":!0,path:`${e(l).state.config.PERSON_RELATIVE_PATH}/policy-details`},null,8,["button-label","path"])):v("",!0),e(P)?(i(),y(Q,{key:1,"button-label":"All benefits","event-name":e(t).viewBenefitsEvent},null,8,["event-name"])):v("",!0),u(Q,{"button-label":`${e(o)} documents`,"event-name":e(t).viewProductLiteratureEvent},null,8,["button-label","event-name"])]),_:1},8,["list-data","is-visible"])]),key:"0"}:void 0]),1032,["tab-title","is-visible"])):v("",!0)]),_:2},[a.hasAddFamilyMemberButton?{name:"title-extra",fn:c(()=>[r("div",Kt,[u(O,{"button-label":"Add family member","button-style":"bg-transparent primary-color","event-name":e(t).addFamilyMemberEvent,title:"Click here to add a new family member"},{"button-icon":c(()=>[u(H,{name:"add-member",color:"primary-color"})]),_:1},8,["event-name"])])]),key:"0"}:void 0]),1032,["title","has-title-extra"])}}}),Jt={key:0,class:"list-basic-item-container"},Xt={class:"list-basic-item-label"},Zt={class:"list-basic-item-label"},es={class:"list-basic-item-value"},ts=V({__name:"ListBasicItem",props:{hasTwoColumns:{type:Boolean,default:!1},isLastCol:{type:Boolean,default:!1},valueStyle:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!0}},setup(w){const l=w;return(n,p)=>!l.hasTwoColumns&&l.isVisible?(i(),m("li",Jt,[r("span",Xt,[G(n.$slots,"label")]),p[0]||(p[0]=r("span",{class:"list-basic-item-grid-gap-1"},null,-1)),p[1]||(p[1]=r("span",{class:"list-basic-item-grid-gap-2"},null,-1)),r("span",{class:F(["list-basic-item-value",l.valueStyle?"primary-color":"text-color"])},[G(n.$slots,"value")],2)])):l.isVisible?(i(),m("li",{key:1,class:F(["list-basic-item-container-two-cols",l.isLastCol?"list-basic-item-container-last-col":""])},[r("span",Zt,[G(n.$slots,"label")]),p[2]||(p[2]=r("span",{class:"list-basic-item-grid-gap-1"},null,-1)),p[3]||(p[3]=r("span",{class:"list-basic-item-grid-gap-2"},null,-1)),r("span",es,[G(n.$slots,"value")])],2)):v("",!0)}}),ss={key:0},os={key:1,class:"list-basic-item-invoice-value"},Ie=V({__name:"ListBasic",props:{listData:{type:Array,default:null},label:{type:String,default:""},value:{type:String,default:""},hasMaxHeight:{type:Boolean,default:!1},listItemValuesStyle:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!0},isMixedList:{type:Boolean,default:!1}},setup(w){const l=w;return(n,p)=>{const d=ts;return i(),m("ul",{class:F(["list-basic-container",l.hasMaxHeight?"list-basic-container-max-height":"",l.isMixedList?"list-basic-container-mixed-list":""])},[(i(!0),m(ae,null,re(l.listData,_=>(i(),y(d,{key:_.itemKey,"has-two-columns":_.twoColsItem,"is-last-col":_.isLastCol,"is-visible":_.isVisible,"value-style":l.listItemValuesStyle},{label:c(()=>[N(C(_.label),1)]),value:c(()=>[_.hasInvoiceIcon?(i(),m("span",os,C(_.value),1)):(i(),m("span",ss,C(_.value),1))]),_:2},1032,["has-two-columns","is-last-col","is-visible","value-style"]))),128))],2)}}}),ns={key:0,class:"address-line address-line-1"},as={key:1,class:"address-line address-line-2"},is={key:2,class:"address-line address-line-3"},ls={key:3,class:"address-line address-line-4"},rs={key:4,class:"address-line postcode"},cs=V({__name:"UserAddress",props:{addressData:{type:Object,default:()=>({addressLine1:"",addressLine2:"",addressLine3:"",addressLine4:"",postcode:""})},addressLinesOrder:{type:String,default:""}},setup(w){const l=w;z({address:l.addressData});const n=E(()=>l.addressData.addressLine1),p=E(()=>l.addressData.addressLine2),d=E(()=>l.addressData.addressLine3),_=E(()=>l.addressData.addressLine4),s=E(()=>l.addressData.postcode);return(a,t)=>(i(),m("div",{class:F(["address-container",e(n)||e(p)||e(d)||e(_)||e(s)?"mt-small-1":"",w.addressLinesOrder])},[e(n)?(i(),m("div",ns,C(e(n)),1)):v("",!0),e(p)?(i(),m("div",as,C(e(p)),1)):v("",!0),e(d)?(i(),m("div",is,C(e(d)),1)):v("",!0),e(_)?(i(),m("div",ls,C(e(_)),1)):v("",!0),e(s)?(i(),m("div",rs,C(e(s)),1)):v("",!0)],2))}}),us={class:"text-right"},ds=V({__name:"AboutYou",props:{policyMembers:{type:Array,default:null},address:{type:Object,default:null}},setup(w){const l=w,n=z({updateDetailsEvent:"update-details-event"});return(p,d)=>{const _=Ie,s=cs,a=ce,t=be;return i(),y(t,{title:"About you"},{content:c(()=>[d[0]||(d[0]=r("div",{class:"card-subtitle-1"},"Customer number",-1)),u(_,{"list-data":l.policyMembers,"has-max-height":!0,"list-item-values-style":!0},null,8,["list-data"]),l.address?(i(),y(s,{key:0,"address-data":l.address},null,8,["address-data"])):v("",!0),r("div",us,[u(a,{class:"mt-medium-3 text-right","button-label":"Update details","event-name":e(n).updateDetailsEvent},null,8,["event-name"])])]),_:1})}}}),ps={class:"card-secondary-container"},ms={class:"card-secondary-title"},bs={class:"card-secondary-description"},vs=V({__name:"CardSecondary",props:{title:{type:String,default:""},description:{type:String,default:""}},setup(w){const l=w;return(n,p)=>
1(i(),m("div",ps,[r("h3",ms,C(l.title),1),r("p",bs,C(l.description),1),G(n.$slots,"button")]))}}),hs={class:"display-flex flex-wrap gap-3"},fs={class:"grid-container grid-container-5 info-light p-o-medium-3"},ys=V({__name:"HealthAndWellbeing",props:{showHealthAndWellbeingInfo:{type:Boolean,default:!1},validiumUrl:{type:String,default:null},validiumMessage:{type:String,default:null},isDoctifyEnabled:{type:Boolean,default:!1},doctifyUrl:{type:String,default:null}},setup(w){const l=J(),{$bus:n,$loading:p,$api:d}=R(),_=d(),s=w,a=E(()=>l.getters["session/getProduct"]),t=E(()=>{var T;const g=(T=a.value)==null?void 0:T.id;return g===ee.product.MAndGPlcEmployeePlan||g===ee.product.MAndGPlcRetireePlan}),f=z({redirectUrl:"",isValidiumError:!1,showThirdPartyDisclaimerModal:!1,eventsBus:{healthAndWellbeingFindOutMoreEvent:"health-and-wellbeing-find-out-more-event",closeThirdPartyModalEvent:"close-third-party-confirmation-modal-event",continueToExternalWebsiteEvent:"continue-to-external-website-event",refreshValidiumUrlEvent:"refresh-validium-url-event",closeErrorPopup:"close-error-popup"}});X(()=>{ge(()=>{n.$on(f.eventsBus.healthAndWellbeingFindOutMoreEvent,async()=>{s.validiumMessage?f.isValidiumError=!0:s.validiumUrl&&(await $(),f.showThirdPartyDisclaimerModal=!0)}),n.$on(f.eventsBus.closeThirdPartyModalEvent,()=>{f.showThirdPartyDisclaimerModal&&(f.showThirdPartyDisclaimerModal=!1)}),n.$on(f.eventsBus.continueToExternalWebsiteEvent,async()=>{f.showThirdPartyDisclaimerModal&&(p.$start(),await window.open(f.redirectUrl,"_blank"),f.showThirdPartyDisclaimerModal=!1,p.$finish())}),n.$on(f.eventsBus.closeErrorPopup,()=>{f.isValidiumError=!1})})});const $=async()=>{try{p.$start();const g=await _.security.getValidiumUrl(a.value.id);g&&g.success===ee.validiumStatus.Success?f.redirectUrl=g.url:(f.isValidiumError=!0,f.validiumMessage=g.message)}catch{}finally{p.$finish()}};return se(()=>{n.$off(f.eventsBus.closeThirdPartyModalEvent),n.$off(f.eventsBus.healthAndWellbeingFindOutMoreEvent),n.$off(f.eventsBus.continueToExternalWebsiteEvent),n.$off(f.eventsBus.refreshValidiumUrlEvent),n.$off(f.eventsBus.closeErrorPopup)}),(g,T)=>{const o=Z,b=xe,P=we,A=vs,S=be,D=ke,H=_e;return i(),m("div",null,[u(S,{title:"Support for you","card-class":"health-advice-card",description:"We can help you find a Specialist, Scanning Centre or Hospital using our WPA Healthcare Finder. Alternatively, you can also search for a therapist in your area:","has-inline-buttons":!0},{extra:c(()=>[r("div",hs,[u(b,{"button-label":"Find a healthcare provider","button-style":"bg-transparent primary-color","is-link-static":!0,"new-tab":!0,path:w.isDoctifyEnabled?w.doctifyUrl:e(l).state.config.WPA_PUBLIC_WEBSITE_FIND_PROVIDER},{"button-icon":c(()=>[u(o,{name:"provider",color:"primary-color"})]),_:1},8,["path"]),u(b,{"button-label":"Find a therapist","button-style":"bg-transparent primary-color","is-link":!0,path:`${e(l).state.config.PERSON_RELATIVE_PATH}/therapist-search`},{"button-icon":c(()=>[u(o,{name:"provider",color:"primary-color"})]),_:1},8,["path"])])]),content:c(()=>[r("div",fs,[u(A,{title:"News",description:"Find the latest news articles and other useful information."},{button:c(()=>[u(P,{"button-style":e(t)?"text-color":"primary-color","is-link-static":!0,path:e(l).state.config.WPA_PUBLIC_WEBSITE_NEWS,"button-label":"Find out more","icon-position":"right","new-tab":!0},{"button-icon":c(()=>[u(o,{name:"arrow-circle-right",color:e(t)?"text-color":"primary-color"},null,8,["color"])]),_:1},8,["button-style","path"])]),_:1}),u(A,{title:"Health & Wellbeing",description:s.showHealthAndWellbeingInfo?"Wellbeing and Health information, Telephone counselling, Computerised Cognitive Behaviour Therapy (CBT), Life skills course, Debt and money information and support, Legal information.":"Find our latest articles, videos and other useful support information on a range of health & wellbeing topics. "},{button:c(()=>[u(P,{"button-style":e(t)?"text-color":"primary-color","is-link-static":!s.validiumUrl&&!s.validiumMessage,path:e(l).state.config.WPA_PUBLIC_WEBSITE_HEALTH_WELLBEING,"event-name":e(f).eventsBus.healthAndWellbeingFindOutMoreEvent,"button-label":"Find out more","icon-position":"right","new-tab":!0},{"button-icon":c(()=>[u(o,{name:"arrow-circle-right",color:e(t)?"text-color":"primary-color"},null,8,["color"])]),_:1}
1,8,["button-style","is-link-static","path","event-name"])]),_:1},8,["description"]),u(A,{title:"Medical fees",description:"Find out how much procedures typically cost."},{button:c(()=>[u(P,{"button-style":e(t)?"text-color":"primary-color","is-link-static":!0,"button-label":"Find out more","icon-position":"right","new-tab":!0,path:e(l).state.config.WPA_PUBLIC_WEBSITE_MEDICAL_FEES},{"button-icon":c(()=>[u(o,{name:"arrow-circle-right",color:e(t)?"text-color":"primary-color"},null,8,["color"])]),_:1},8,["button-style","path"])]),_:1})])]),_:1}),e(f).showThirdPartyDisclaimerModal?(i(),y(D,{key:0})):v("",!0),e(f).isValidiumError?(i(),y(H,{key:1,"redirect-to-login":!1,title:"Health & Wellbeing error",description:s.validiumMessage,"close-without-submit":!0},null,8,["description"])):v("",!0)])}}}),_s={class:"button-card-tiny-left"},gs={class:"button-card-tiny-left-label"},ws={class:"button-card-tiny-icon-right"},ks=["href"],$s={class:"button-card-tiny-left"},Cs={class:"button-card-tiny-left-label"},Ss={class:"button-card-tiny-icon-right"},Es={class:"button-card-tiny-left"},Ps={class:"button-card-tiny-left-label"},As={class:"button-card-tiny-right"},xs=V({__name:"ButtonCardTiny",props:{isLink:{type:Boolean,default:!1},isLinkStatic:{type:Boolean,default:!1},path:{type:String,default:""},eventName:{type:String,default:"on-click"},buttonLabel:{type:String,default:"My button"},buttonStyle:{type:String,default:"primary-color"}},setup(w){const{$bus:l}=R(),n=w,p=()=>{l.$emit(n.eventName)};return(d,_)=>{const s=Z,a=me;return n.isLink?(i(),y(a,{key:0,to:n.path,class:F(["button-card-tiny","generic-button",n.buttonStyle])},{default:c(()=>[r("div",_s,[G(d.$slots,"button-icon"),r("span",gs,C(n.buttonLabel),1)]),r("div",ws,[u(s,{name:"arrow2-right",color:"text-color"})])]),_:3},8,["to","class"])):n.isLinkStatic?(i(),m("a",{key:1,href:n.path,class:F(["button-card-tiny","generic-button",n.buttonStyle])},[r("div",$s,[G(d.$slots,"button-icon"),r("span",Cs,C(n.buttonLabel),1)]),r("div",Ss,[u(s,{name:"arrow2-right",color:"text-color"})])],10,ks)):(i(),m("button",{key:2,class:F(["button-card-tiny","generic-button",n.buttonStyle]),type:"button",onClick:p},[r("div",Es,[G(d.$slots,"button-icon"),r("span",Ps,C(n.buttonLabel),1)]),r("div",As,[u(s,{name:"arrow2-right",color:"text-color"})])],2))}}}),Bs={},Ms={class:"card-claim-entry-container"};function Ts(w,l){return i(),m("div",Ms,[G(w.$slots,"button",{},()=>[l[0]||(l[0]=N("My Button"))]),G(w.$slots,"content",{},()=>[l[1]||(l[1]=N("My Content"))])])}const Ds=te(Bs,[["render",Ts]]),Is={class:"card-claim-overview-container"},Ls={key:0,class:"card-claim-overview-extra-top"},Ns={class:"card-claim-overview-extra-top-left"},Gs={key:1,class:"card-claim-overview-warning-container"},Vs={class:"card-claim-overview-warning-icon"},Hs={class:"card-claim-overview-warning-message"},Ws=V({__name:"CardClaimOverview",props:{hasExtraTop:{type:Boolean,default:!0},hasExtraInfo:{type:Boolean,default:!1},claimStatus:{type:String,default:"inactive-color"}},setup(w){const l=w;return(n,p)=>{const d=Z;return i(),m("div",Is,[l.hasExtraTop?(i(),m("div",Ls,[r("div",Ns,[G(n.$slots,"extra-top-left")]),r("div",{class:F(["card-claim-overview-extra-top-right",l.claimStatus])},[G(n.$slots,"extra-top-right")],2)])):v("",!0),l.hasExtraInfo?(i(),m("div",Gs,[r("div",Vs,[u(d,{name:"danger",color:"danger-color"})]),r("div",Hs,[G(n.$slots,"extra-info")])])):v("",!0),G(n.$slots,"card-claim-overview-content")])}}}),Fs=["href"],Os=V({__name:"ButtonDotted",props:{isLink:{type:Boolean,default:!1},isLinkStatic:{type:Boolean,default:!1},path:{type:String,default:""},buttonLabel:{type:String,default:""},eventName:{type:String,default:"on-click"},buttonStyle:{type:String,default:"bg-transparent primary-color"}},setup(w){const{$bus:l}=R(),n=w,p=()=>{l.$emit(n.eventName)};return(d,_)=>{const s=me;return n.isLink?(i(),y(s,{key:0,class:"button-dotted",to:n.path},{default:c(()=>[N(C(n.buttonLabel),1)]),_:1},8,["to"])):n.isLinkStatic?(i(),m("a",{key:1,class:"button-dotted",href:n.path},C(n.buttonLabel),9,Fs)):(i(),m("button",{key:2,class:"button-dotted",onClick:p}
1,[N(C(n.buttonLabel),1),G(d.$slots,"button-icon")]))}}}),Rs={key:0,class:"white-color"},qs={key:1},Us={key:2},Ys=V({__name:"Claim",props:{claim:{type:Object,default:null},description:{type:String,default:""},hasMakeANewClaimOption:{type:Boolean,default:!1}},setup(w){const l=J(),{$bus:n,$loading:p,$api:d}=R(),_=d(),s=w,a=z({eventsBus:{viewLatestClaimEvent:"view-latest-claim-event",claimsViewAllClaimsEvent:"claims-view-all-claims-event",bookAppointmentLatestClaimEvent:"book-appointment-latest-claim-event",closeThirdPartyModalEvent:"close-third-party-confirmation-modal-event",continueToExternalWebsiteEvent:"continue-to-external-website-event",closeErrorPopup:"close-error-popup"},productPhone:null,claimType:ee.claimType,guid:et,dateHelper:Ze,claimStatusHelper:Xe,invoiceStatusHelper:Je,showThirdPartyDisclaimerModal:!1,showThirdPartyErrorModal:!1,thirdPartyErrorTitle:"",thirdPartyErrorMessage:""}),t=E(()=>l.getters["session/getContract"]),f=E(()=>a.productPhone?`To make a claim please call us ${a.productPhone}`:""),$=o=>o.invoiceStatus===ee.invoiceStatus.PA?"Authorised":o.decisionType,g=o=>o.invoiceStatus===ee.invoiceStatus.AFH?"We are reviewing your claim documents.":o.invoiceStatusDescription??"";X(async()=>{if(t!=null&&t.value.id){const o=await _.product.getCallUs(t==null?void 0:t.value.id);a.productPhone=o[0].phone}ge(()=>{n.$on(a.eventsBus.bookAppointmentLatestClaimEvent,()=>{a.showThirdPartyDisclaimerModal=!0}),n.$on(a.eventsBus.closeThirdPartyModalEvent,()=>{a.showThirdPartyDisclaimerModal&&(a.showThirdPartyDisclaimerModal=!1)}),n.$on(a.eventsBus.continueToExternalWebsiteEvent,async()=>{a.showThirdPartyDisclaimerModal&&(p.$start(),a.showThirdPartyDisclaimerModal=!1,await T(),p.$finish())}),n.$on(a.eventsBus.closeErrorPopup,()=>{a.showThirdPartyErrorModal=!1})})});const T=async()=>{if(a.showThirdPartyErrorModal=!1,a.thirdPartyErrorTitle="",a.thirdPartyErrorMessage="",s.claim.claimId>0){const o=await _.policy.bookClaimAppointment(s.claim.claimId);o.success?window.open(o.successData.url,"_blank"):(a.thirdPartyErrorTitle=o.failureData.title,a.thirdPartyErrorMessage=o.failureData.messages.join("<br><br>"),a.showThirdPartyErrorModal=!0)}};return(o,b)=>{const P=Z,A=xs,S=Ie,D=Ds,H=Ws,O=Os,j=ce,Q=be,B=ke,k=_e;return i(),m("div",null,[u(Q,{title:"Your claims","card-class":"your-claims-card",description:s.hasMakeANewClaimOption?s.description:e(f),"has-max-height":!0},{content:c(()=>[s.claim!==null&&s.claim.claimType===e(a).claimType.PMI?(i(),y(H,{key:0,"claim-status":e(a).claimStatusHelper.getStatusColor(s.claim.status,s.claim.hasBookAppointment)},{"extra-top-left":c(()=>[N("ID : "+C(s.claim.claimReference),1)]),"extra-top-right":c(()=>[s.claim.hasBookAppointment?(i(),m("span",Rs,C(s.claim.bookAppointmentButtonText),1)):(i(),m("span",qs,C(s.claim.statusDescription),1))]),"card-claim-overview-content":c(()=>[u(D,null,{button:c(()=>[u(A,{"button-label":s.claim.conditionDescription,"event-name":s.claim.hasBookAppointment?e(a).eventsBus.bookAppointmentLatestClaimEvent:e(a).eventsBus.viewLatestClaimEvent,"button-style":"bg-white-color"},{"button-icon":c(()=>[u(P,{name:"claim",color:"text-color"})]),_:1},8,["button-label","event-name"])]),content:c(()=>[u(S,{"list-data":[{label:"Specialist",value:s.claim.providerName,itemkey:e(a).guid(),hasInvoiceIcon:!1,twoColsItem:!1},{label:"Date Created",value:e(a).dateHelper.getFormatedDateLongMonth(s.claim.startDate),itemkey:e(a).guid(),hasInvoiceIcon:!1,twoColsItem:!1},{label:"Invoices",value:s.claim.invoices.length,itemkey:e(a).guid(),hasInvoiceIcon:!0,twoColsItem:!1}]},null,8,["list-data"])]),_:1})]),_:1},8,["claim-status"])):s.claim!==null&&s.claim.claimType===e(a).claimType.CASHPLAN?(i(!0),m(ae,{key:1},re(s.claim.invoices,(M,x)=>(i(),y(H,{key:`${x} - ${e(a).guid()}`,"claim-status":e(a).invoiceStatusHelper.getStatusColor(M.invoiceStatus),"has-extra-info":g(M)!==""},{"extra-top-left":c(()=>[N("ID : "+C(s.claim.claimReference),1)]),"extra-top-right":c(()=>[N(C($(M)),1)]),"extra-info":c(()=>[N(C(g(M)),1)]),"card-claim-overview-content":c(()=>[(i(!0),m(ae,null,re(M.benefits,(W,q)=>(i(),y(D,{key:`${q} - ${e(a).guid()}`},{button:c(()=>[u(A,{"button-label":W.benefitDescription,"event-name":e(a).eventsBus.viewLatestClaimEvent,"button-style":"info-light"},{"button-icon":c(()=>[u(P,{name:"medical-service",color:"primary-color"})]),_:2}
1,1032,["button-label","event-name"])]),content:c(()=>[u(S,{"is-mixed-list":!0,"list-data":[{label:"Claimed",value:`£${W.benefitAmount.toFixed(2)}`,itemkey:e(a).guid(),hasInvoiceIcon:!1,twoColsItem:!0,isLastCol:!1},{label:"Paid",value:`£${W.benefitPaidAmount.toFixed(2)}`,itemkey:e(a).guid(),hasInvoiceIcon:!1,twoColsItem:!0,isLastCol:!0},{label:"Date processed",value:e(a).dateHelper.getFormatedDateLongMonth(M.datePaid),itemkey:e(a).guid(),isVisible:q===M.benefits.length-1,hasInvoiceIcon:!1,twoColsItem:!1},{label:"Date Created",value:e(a).dateHelper.getFormatedDateLongMonth(s.claim.startDate),itemkey:e(a).guid(),hasInvoiceIcon:!1,isVisible:q===M.benefits.length-1,twoColsItem:!1}],"has-two-cols-items":!0},null,8,["list-data"])]),_:2},1024))),128))]),_:2},1032,["claim-status","has-extra-info"]))),128)):v("",!0),s.hasMakeANewClaimOption?(i(),m("div",Us,[s.claim?(i(),y(j,{key:1,"button-label":"See all claims","event-name":e(a).eventsBus.claimsViewAllClaimsEvent},null,8,["event-name"])):(i(),y(O,{key:0,"is-link":!0,path:`${e(l).state.config.PERSON_RELATIVE_PATH}/make-a-claim`,"button-label":"Make a claim"},null,8,["path"]))])):v("",!0)]),_:1},8,["description"]),e(a).showThirdPartyDisclaimerModal?(i(),y(B,{key:0})):v("",!0),e(a).showThirdPartyErrorModal?(i(),y(k,{key:1,"redirect-to-login":!1,title:e(a).thirdPartyErrorTitle,description:e(a
1).thirdPartyErrorMessage,"close-without-submit":!0},null,8,["title","description"])):v("",!0)])}}}),js={key:0},zs={class:"modal-mask"},Ks={class:"modal-wrapper"},Qs={style:{display:"flex",gap:"5px"}},Js={class:"modal-header1-text"},Xs={class:"modal-header2-text"},Zs={class:"modal-body"},eo={key:0},to={class:"m-small-1"},so={key:1},oo={key:2},no={class:"m-small-1"},ao=V({__name:"TreatmentAndGpServicesInfo",setup(w){const l=J(),{$api:n,$bus:p,$loading:d}=R(),_=n(),s=z({isDataLoaded:!1,productPhone:"",hasPhysiotherapyPathway:!1,hasFtssPathway:{hasFastTrackSkinSupportPathway:!1,Url:""}}),a={treatmentAndGpServicesInfoCloseEvent:"treatment-and-gp-services-info-close-event",messageGpEvent:"message-gp-event",bookAppointmentEvent:"book-appointment-event",redirectToPrecisionClaimEvent:"redirect-to-precision-claim-event",ftssClickEvent:"ftss-click-event"};E(()=>l.getters["session/getPolicy"]),E(()=>l.getters["session/getCustomerAccount"]);const t=E(()=>l.getters["session/getContract"]),f=E(()=>s.hasPhysiotherapyPathway&&s.hasFtssPathway.hasFastTrackSkinSupportPathway?"modal-container modal-container-height-3":s.hasPhysiotherapyPathway||s.hasFtssPathway.hasFastTrackSkinSupportPathway?"modal-container modal-container-height-2":"modal-container modal-container-height-1");X(async()=>{await $()});const $=async()=>{var T,o,b,P,A;if(d.$start(),(T=t.value)!=null&&T.id){const S=await _.product.getCallUs((o=t.value)==null?void 0:o.id);s.productPhone=(b=S[0])==null?void 0:b.phone,s.hasPhysiotherapyPathway=await _.policy.hasPhysiotherapyPathway((P=t.value)==null?void 0:P.id),s.hasFtssPathway=await _.policy.hasFastTrackSkinSupport((A=t.value)==null?void 0:A.id)}s.isDataLoaded=!0,d.$finish()},g=()=>p.$emit(a.treatmentAndGpServicesInfoCloseEvent);return(T,o)=>{const b=De,P=Z,A=we,S=$e;return e(s).isDataLoaded?(i(),m("div",js,[u(Fe,{name:"modal"},{default:c(()=>[r("div",zs,[r("div",Ks,[r("div",{class:F(e(f))},[r("div",Qs,[r("div",Js,[G(T.$slots,"header",{},()=>[o[1]||(o[1]=N(" To help you direct your query please review the following options. Please check your Certificate of Insurance for your chosen benefits, as all of the below may not be applicable. If you’re unsure please contact us. "))],!0)]),r("button",{class:"modal-button-close",type:"button",onClick:g})]),o[8]||(o[8]=r("br",null,null,-1)),r("div",Xs,[G(T.$slots,"header1",{},()=>[o[2]||(o[2]=N(" Are you wanting to make an appointment for: "))],!0)]),o[9]||(o[9]=r("hr",{class:"solid"},null,-1)),r("div",Zs,[G(T.$slots,"body",{},()=>[r("ul",null,[e(s).hasPhysiotherapyPathway?(i(),m("li",eo,[o[3]||(o[3]=N(" Physiotherapy for a joint or muscle problem? ")),r("div",to,[u(b,{"button-label":"Fast Track Physiotherapy","button-style":"bg-primary-color white-color","event-name":a.redirectToPrecisionClaimEvent},null,8,["event-name"])])])):(i(),m("li",so," Physiotherapy for a joint or muscle problem - please call us on "+C(e(s).productPhone),1)),e(s).hasFtssPathway.hasFastTrackSkinSupportPathway?(i(),m("li",oo,[o[4]||(o[4]=N(" Skin concern (e.g rash, mole change, acne)? ")),r("div",no,[u(b,{"button-label":"Fast Track Skin Support","button-style":"bg-primary-color white-color",onClick:o[0]||(o[0]=D=>e(p).$emit(a.ftssClickEvent,{hasFtssPathway:e(s).hasFtssPathway}))})])])):v("",!0),r("li",null," Mental Health suppport? Please call us on "+C(e(s).productPhone),1),r("li",null," A referral for a private health insurance claim? Please call us on "+C(e(s).productPhone),1),o[5]||(o[5]=r("li",null," A short-term illness that is not resolving (GP Services) ",-1))]),u(A,{class:"svg-buttons-text","button-label":"Book appointment","icon-position":"left","button-style":"blue-color","event-name":a.bookAppointmentEvent},{"button-icon":c(()=>[u(P,{name:"calendar",color:"blue-color"})]),_:1},8,["event-name"]),o[6]||(o[6]=r("ul",null,[r("li",null,"Medical emergency")],-1)),o[7]||(o[7]=r("p",null," The NHS is best suited to dealing with emergencies please call them on NHS 111 - or if life threatening call 999 or visit your Accident or Emergency Department. ",-1))],!0)]),r("div",null,[G(T.$slots,"footer",{},()=>[u(S,{class:"modal-footer","is-cancel-button":!0,"button-label":"Close","cancel-modal-event":a.treatmentAndGpServicesInfoCloseEvent},null,8,["cancel-modal-event"])],!0)])],2)])])]),_:3})])):v("",!0)}}}),io=te(ao,[["__scopeId","data-v-b16ee5e3"]]),lo={key:0},ro={class:"display-flex gap-1"},co={key:0,class:"pb-small-1"},uo={key:1,class:"pb-small-1 text-bold-weight"},po={key:2,class:"pb-small-1"},mo={class:"display-flex gap-1"},bo={key:1},vo={key:2,class:"pt-small-1"},ho={class:"display-flex gap-1"},fo={class:"display-flex gap-1"},yo=V({__name:"MessageAGP",setup(w){const l=J(),{$api:n,$bus:p,$loading:d}=R(),_=n(),s=z({isDataLoaded:!1,isSelectMemberStep:!0,isShowDetail
1sStep:!1,isTypeMessageStep:!1,isCloseButton:!1,isBackButton:!0,disableNextSelectMember:!0,disableNextMessageStep:!0,disableNextShowDetails:!1,showConfirmationModal:!1,details:"",message:"",errorMessage:"",membersList:[],totalStepsLabel:3,messageAGPContractId:0,eventsBus:{messageAGPCloseEvent:"message-a-gp-close-event",selectedMemberEvent:"selected-member-event",selectMemberNextEvent:"select-member-next-event",showDetailsBackEvent:"show-details-back-event",showDetailsNextEvent:"show-details-next-event",typeMessageBackEvent:"type-message-back-event",sendRemoteGpMessageEvent:"send-remote-gp-message-event",closeConfirmationModal:"close-confirmation-model"}}),a=E(()=>l.getters.getModalKey),t=E(()=>l.getters["session/getPolicy"]),f=E(()=>l.getters["session/getCustomerAccount"]),$=E(()=>l.getters["sessions/getContract"]),g=E(()=>l.getters["person/getPolicyHolderEmail"]);X(async()=>{await T(),g.value||(s.disableNextShowDetails=!0),p.$on(s.eventsBus.selectMemberNextEvent,()=>{s.isSelectMemberStep=!1,s.isShowDetailsStep=!0}),p.$on(s.eventsBus.selectedMemberEvent,b=>{var A;const P=s.membersList.filter(S=>S.inputValue===b);s.messageAGPContractId=(A=P[0])==null?void 0:A.inputValue,s.disableNextSelectMember=!1}),p.$on(s.eventsBus.showDetailsBackEvent,()=>{s.isShowDetailsStep=!1,s.isSelectMemberStep=!0,s.disableNextSelectMember=!0}),p.$on(s.eventsBus.showDetailsNextEvent,()=>{s.isShowDetailsStep=!1,s.isTypeMessageStep=!0}),p.$on(s.eventsBus.typeMessageBackEvent,()=>{s.isTypeMessageStep=!1,s.isShowDetailsStep=!0,s.disableNextMessageStep=!0}),p.$on(s.eventsBus.sendRemoteGpMessageEvent,async()=>{d.$start();try{s.messageAGPContractId===0&&(s.messageAGPContractId=$.value.id),await _.policy.sendRemoteGpMessage(s.messageAGPContractId,g.value,s.message)}catch{s.errorMessage="Something went wrong, please try again."}finally{s.isTypeMessageStep=!1,s.showConfirmationModal=!0,d.$finish()}}),p.$on(s.eventsBus.closeConfirmationModal,()=>{p.$emit(s.eventsBus.messageAGPCloseEvent)})}),se(()=>{p.$off(s.eventsBus.selectedMemberEvent),p.$off(s.eventsBus.selectMemberNextEvent),p.$off(s.eventsBus.showDetailsBackEvent),p.$off(s.eventsBus.showDetailsNextEvent),p.$off(s.eventsBus.typeMessageBackEvent),p.$off(s.eventsBus.sendRemoteGpMessageEvent),p.$off(s.eventsBus.closeConfirmationModal),s.isSelectMemberStep=!0,s.isShowDetailsStep=!1,s.isTypeMessageStep=!1,s.isCloseButton=!1,s.isBackButton=!0});const T=async()=>{var P,A;d.$start();const b=await _.policy.getPolicyMembers((P=f.value)==null?void 0:P.CustomerId,(A=t.value)==null?void 0:A.id);b.forEach(S=>{var D,H;return s.membersList.push({inputId:S.customerId,inputValue:S.contractId,inputLabel:`${(H=S.name)==null?void 0:H.substr(((D=S.name)==null?void 0:D.indexOf(" "))+1)}`})}),b.length===1&&(s.isSelectMemberStep=!1,s.isShowDetailsStep=!0,s.totalStepsLabel=2,s.isCloseButton=!0,s.isBackButton=!1),l.commit("SET_MODAL_CURRENT_STEP",1),s.isDataLoaded=!0,d.$finish()},o=b=>{s.message=b,s.message!==""?s.disableNextMessageStep=!1:s.disableNextMessageStep=!0};return(b,P)=>{const A=Me,S=$e,D=Be,H=ce,O=Te;return e(s).isDataLoaded?(i(),m("div",lo,[e(s).isSelectMemberStep?(i(),y(D,{key:e(a),title:"Message a GP",size:"narrow","has-stepper-label":!0,"total-steps-label":3,"close-modal-event":e(s).eventsBus.messageAGPCloseEvent},{"modal-contents":c(()=>[u(A,{label:"Which member does this relate to?",radios:e(s).membersList,"event-name":e(s).eventsBus.selectedMemberEvent},null,8,["radios","event-name"])]),"modal-actions":c(()=>[r("div",ro,[u(S,{"is-cancel-button":!0,"button-label":"Close","cancel-modal-event":e(s).eventsBus.messageAGPCloseEvent},null,8,["cancel-modal-event"]),u(S,{"is-next-button":!0,"button-label":"Next","next-modal-event":e(s).eventsBus.selectMemberNextEvent,"disable-next":e(s).disableNextSelectMember},null,8,["next-modal-event","disable-next"])])]),_:1},8,["close-modal-event"])):v("",!0),e(s).isShowDetailsStep?(i(),y(D,{key:e(a),title:"Message a GP",size:"narrow","has-stepper-label":!0,"total-steps-label":e(s).totalStepsLabel,"close-modal-event":e(s).eventsBus.messageAGPCloseEvent},{"modal-contents":c(()=>
1[e(g)?(i(),m("p",co," A GP will contact you using the following email address which we hold for you: ")):v("",!0),e(g)?(i(),m("p",uo,C(e(g)),1)):(i(),m("p",po," We don't appear to hold an email address for you. ")),r("p",null,[P[1]||(P[1]=N(" If you wish to amend your email address please visit ")),P[2]||(P[2]=r("br",null,null,-1)),u(H,{"is-link":!0,path:"/person/account","button-label":"Account - Your details"}),P[3]||(P[3]=N(" to update this. "))])]),"modal-actions":c(()=>[r("div",mo,[u(S,{"is-cancel-button":e(s).isCloseButton,"is-back-button":e(s).isBackButton,"button-label":e(s).isCloseButton?"Close":"Back","cancel-modal-event":e(s).eventsBus.messageAGPCloseEvent,"back-modal-event":e(s).eventsBus.showDetailsBackEvent},null,8,["is-cancel-button","is-back-button","button-label","cancel-modal-event","back-modal-event"]),u(S,{"is-next-button":!0,"button-label":"Next","next-modal-event":e(s).eventsBus.showDetailsNextEvent,"disable-next":e(s).disableNextShowDetails},null,8,["next-modal-event","disable-next"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(s).isTypeMessageStep?(i(),y(D,{key:e(a),title:"Message a GP",size:"narrow","has-stepper-label":!0,"total-steps-label":e(s).totalStepsLabel,"close-modal-event":e(s).eventsBus.messageAGPCloseEvent},{"modal-contents":c(()=>[e(s).errorMessage?v("",!0):(i(),y(O,{key:0,label:"Type your message here:"},{"form-input":c(()=>[r("div",{id:"textbox",ref:"textarea",class:"textbox-scroll",style:{"background-color":"rgba(0, 0, 0, 0.05)"},spellcheck:"false",contenteditable:"true",onInput:P[0]||(P[0]=j=>o(j.target.innerHTML))},null,544)]),_:1})),e(s).errorMessage?(i(),m("p",vo,C(e(s).errorMessage),1)):(i(),m("p",bo," GP services are provided to you by a third-party subject to their terms and conditions. Your message and any other personal data you share will be held by them under their privacy arrangements. "))]),"modal-actions":c(()=>[r("div",ho,[u(S,{"is-back-button":!0,"button-label":"Back","back-modal-event":e(s).eventsBus.typeMessageBackEvent},null,8,["back-modal-event"]),u(S,{"is-save-button":!0,"button-label":"Send message","save-modal-event":e(s).eventsBus.sendRemoteGpMessageEvent,"disable-save":e(s).disableNextMessageStep},null,8,["save-modal-event","disable-save"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(s).showConfirmationModal?(i(),y(D,{key:3,title:"Message a GP",size:"narrow","has-stepper-label":!1,"close-modal-event":e(s).eventsBus.closeConfirmationModal},{"modal-contents":c(()=>P[4]||(P[4]=[r("p",{class:"pb-small-1"},"Your message has been sent.",-1),r("p",{class:"pb-small-1"}," A doctor will respond to your email the next working day. ",-1),r("p",{class:"pb-small-1"},[N(" Please note this service is available Monday to Sunday "),r("br"),N("8AM-10PM. Excluding UK Bank Holidays. ")],-1)])),"modal-actions":c(()=>[r("div",fo,[u(S,{"is-cancel-button":!0,"button-label":"Close","cancel-modal-event":e(s).eventsBus.closeConfirmationModal},null,8,["cancel-modal-event"])])]),_:1},8,["close-modal-event"])):v("",!0)])):v("",!0)}}}),_o=te(yo,[["__scopeId","data-v-10b99635"]]),go={key:0},wo={class:"display-flex gap-1"},ko={key:0,class:"pb-small-1"},$o={key:1,class:"pb-small-1 text-bold-weight"},Co={key:2,class:"pb-small-1"},So={class:"display-flex gap-1"},Eo={class:"display-flex gap-1"},Po={key:0,class:"pb-small-1"},Ao={class:"pt-small-1"},xo={class:"display-flex gap-1"},Bo={class:"display-flex gap-1"},Mo={class:"text-small",style:{"justify-self":"right"}},To={key:1},Do={key:2,class:"pt-small-1"},Io={class:"display-flex gap-1"},Lo={class:"display-flex gap-1"},No=V({__name:"BookAnAppointment",setup(w){const l=J(),{$bus:n,$loading:p,$api:d,$dompurify:_}=R(),s=d(),a=Oe(null),t=z({isDataLoaded:!1,isSelectMemberStep:!0,isShowDetailsStep:!1,isSelectAppointmentTypeStep:!1,isConfirmNumberStep:!1,isGPPracticeStep:!1,isTypeMessageStep:!1,isCloseButton:!1,isBackButton:!0,disableNextSelectMember:!0,disableNextAppointmentType:!0,disableNextMessageStep:!0,showNoTelephoneMessage:!1,disableNextConfirmNumber:!0,hasDefaultSelectedValue:!1,disableNextShowDetail
1s:!1,showConfirmationModal:!1,details:"",message:"",gpPracticeName:"",gpPracticePostcode:"",gpPracticeAddress:"",errorMessage:"",appointmentTypes:[{inputId:1,inputValue:"Telephone",inputLabel:"Telephone"},{inputId:2,inputValue:"Video",inputLabel:"Video"}],telephonesList:[],membersList:[],totalStepsLabel:6,bookAnAppointmentContractId:0,chosenTelephone:"",selectedAppointmentType:"",messageLength:0,maxLength:1e3,eventsBus:{requestAnAppointmentCloseEvent:"request-an-appointment-close-event",selectedMemberEvent:"selected-member-event",selectMemberNextEvent:"select-member-next-event",showDetailsBackEvent:"show-details-back-event",showDetailsNextEvent:"show-details-next-event",selectAppointmentTypeEvent:"select-appointment-type-event",selectAppointmentTypeBackEvent:"select-appointment-type-back-event",selectAppointmentTypeNextEvent:"select-appointment-type-next-event",confirmNumberEvent:"confirm-number-event",confirmNumberBackEvent:"confirm-number-back-event",confirmNumberNextEvent:"confirm-number-next-event",gpPracticeBackEvent:"gp-practice-back-event",gpPracticeNextEvent:"gp-practice-next-event",typeMessageBackEvent:"type-message-back-event",closeConfirmationModal:"close-confirmation-model",sendRemoteGpAppointmentRequestEvent:"send-remote-gp-appointment-request-event"}}),f=E(()=>l.getters.getModalKey),$=E(()=>l.getters["session/getPolicy"]),g=E(()=>l.getters["session/getCustomerAccount"]),T=E(()=>l.getters["session/getContract"]),o=E(()=>l.getters["person/getPolicyHolderEmail"]),b=E(()=>l.getters["person/getCustomerContactDetails"]);X(async()=>
1{await P(),Q(),o.value||(t.disableNextShowDetails=!0),n.$on(t.eventsBus.selectMemberNextEvent,()=>{t.isSelectMemberStep=!1,t.isShowDetailsStep=!0}),n.$on(t.eventsBus.selectedMemberEvent,B=>{var M;const k=t.membersList.filter(x=>x.inputValue===B);t.bookAnAppointmentContractId=(M=k[0])==null?void 0:M.inputValue,t.disableNextSelectMember=!1}),n.$on(t.eventsBus.showDetailsBackEvent,()=>{t.isShowDetailsStep=!1,t.isSelectMemberStep=!0,t.disableNextSelectMember=!0}),n.$on(t.eventsBus.showDetailsNextEvent,()=>{t.isShowDetailsStep=!1,t.isSelectAppointmentTypeStep=!0,t.disableNextSelectMember=!0}),n.$on(t.eventsBus.selectAppointmentTypeEvent,B=>{var M;const k=t.appointmentTypes.filter(x=>x.inputValue===B);t.selectedAppointmentType=(M=k[0])==null?void 0:M.inputValue,t.disableNextAppointmentType=!1}),n.$on(t.eventsBus.selectAppointmentTypeBackEvent,()=>{t.isSelectAppointmentTypeStep=!1,t.isShowDetailsStep=!0,t.disableNextAppointmentType=!0}),n.$on(t.eventsBus.selectAppointmentTypeNextEvent,()=>{t.isSelectAppointmentTypeStep=!1,t.isConfirmNumberStep=!0,t.disableNextAppointmentType=!0}),n.$on(t.eventsBus.confirmNumberEvent,B=>{var M;const k=t.telephonesList.filter(x=>x.inputValue===B);t.chosenTelephone=(M=k[0])==null?void 0:M.inputValue,t.disableNextConfirmNumber=!1}),n.$on(t.eventsBus.confirmNumberBackEvent,()=>{t.isConfirmNumberStep=!1,t.isSelectAppointmentTypeStep=!0,t.disableNextConfirmNumber=!0}),n.$on(t.eventsBus.confirmNumberNextEvent,()=>{t.isConfirmNumberStep=!1,t.isGPPracticeStep=!0,t.disableNextConfirmNumber=!1}),n.$on(t.eventsBus.gpPracticeBackEvent,()=>{t.isGPPracticeStep=!1,t.isConfirmNumberStep=!0,t.disableNextConfirmNumber=!0}),n.$on(t.eventsBus.gpPracticeNextEvent,()=>{t.isGPPracticeStep=!1,t.isTypeMessageStep=!0,t.disableNextMessageStep=!0}),n.$on(t.eventsBus.typeMessageBackEvent,()=>{t.isTypeMessageStep=!1,t.isGPPracticeStep=!0,t.disableNextMessageStep=!0}),n.$on(t.eventsBus.sendRemoteGpAppointmentRequestEvent,async()=>{p.$start();try{t.bookAnAppointmentContractId===0&&(t.bookAnAppointmentContractId=T.value.id),await s.policy.sendRemoteGpAppointmentRequest(t.bookAnAppointmentContractId,o.value,t.chosenTelephone,t.selectedAppointmentType,t.message,t.gpPracticeName,t.gpPracticePostcode,t.gpPracticeAddress)}catch{t.errorMessage="Something went wrong, please try again."}finally{t.isTypeMessageStep=!1,t.showConfirmationModal=!0,p.$finish()}}),n.$on(t.eventsBus.closeConfirmationModal,()=>{n.$emit(t.eventsBus.requestAnAppointmentCloseEvent)})});const P=async()=>{var k,M;p.$start();const B=await s.policy.getPolicyMembers((k=g.value)==null?void 0:k.CustomerId,(M=$.value)==null?void 0:M.id);B.forEach(x=>{var W,q;return t.membersList.push({inputId:x.customerId,inputValue:x.contractId,inputLabel:`${(q=x.name)==null?void 0:q.substr(((W=x.name)==null?void 0:W.indexOf(" "))+1)}`})}),B.length===1&&(t.isSelectMemberStep=!1,t.isShowDetailsStep=!0,t.totalStepsLabel=5,t.isCloseButton=!0,t.isBackButton=!1),l.commit("SET_MODAL_CURRENT_STEP",1),t.isDataLoaded=!0,p.$finish()},A=B=>{t.message=B,t.message===""||t.message.length>t.maxLength?t.disableNextMessageStep=!0:t.disableNextMessageStep=!1;const k=_.sanitize(B,{ALLOWED_TAGS:[]});t.messageLength=k.replace(/&nbsp;/g," ").length},S=B=>{t.messageLength===t.maxLength&&![8,46].includes(B.keyCode)&&!(B.ctrlKey&&B.keyCode===65)&&B.preventDefault()},D=B=>{const k=(B.clipboardData||window.clipboardData).getData("text");t.messageLength+k.length>t.maxLength&&B.preventDefault()},H=B=>{t.gpPracticePostcode=B},O=B=>{t.gpPracticeName=B},j=B=>{t.gpPracticeAddress=B},Q=()=>{var B,k,M,x,W,q;(B=b.value)!=null&&B.telephoneHome&&t.telephonesList.push({inputId:b.value.telephoneHome,inputValue:b.value.telephoneHome,inputLabel:`Home: ${b.value.telephoneHome}`,isSelected:!1}),(k=b.value)!=null&&k.telephoneMobile&&t.telephonesList.push({inputId:b.value.telephoneMobile,inputValue:b.value.telephoneMobile,inputLabel:`Mobile: ${b.value.telephoneMobile}`,isSelected:!1}),(M=b.value)!=null&&M.telephoneWork&&t.telephonesList.push({inputId:b.value.telephoneWork,inputValue:b.value.telephoneWork,inputLabel:`Work: ${b.value.telephoneWork}`,isSelected:!1}),t.telephonesList.length===1&&(t.hasDefaultSelectedValue=t.telephonesList[0].isSelected=!0),!((x=b.value)!=null&&x.telep
1honeHome)&&!((W=b.value)!=null&&W.telephoneWork)&&!((q=b.value)!=null&&q.telephoneMobile)&&(t.showNoTelephoneMessage=!0)};return se(()=>{n.$off(t.eventsBus.selectedMemberEvent),n.$off(t.eventsBus.selectMemberNextEvent),n.$off(t.eventsBus.showDetailsBackEvent),n.$off(t.eventsBus.showDetailsNextEvent),n.$off(t.eventsBus.typeMessageBackEvent),n.$off(t.eventsBus.closeConfirmationModal),t.isSelectMemberStep=!0,t.isShowDetailsStep=!1,t.isTypeMessageStep=!1,t.isCloseButton=!1,t.isBackButton=!0}),(B,k)=>{const M=Me,x=$e,W=Be,q=ce,oe=Te;return e(t).isDataLoaded?(i(),m("div",go,[e(t).isSelectMemberStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":6,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[u(M,{label:"Which member is this appointment for?",radios:e(t).membersList,"event-name":e(t).eventsBus.selectedMemberEvent},null,8,["radios","event-name"])]),"modal-actions":c(()=>[r("div",wo,[u(x,{"total-steps":6,"is-cancel-button":!0,"button-label":"Close","cancel-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},null,8,["cancel-modal-event"]),u(x,{"total-steps":6,"is-next-button":!0,"button-label":"Next","next-modal-event":e(t).eventsBus.selectMemberNextEvent,"disable-next":e(t).disableNextSelectMember},null,8,["next-modal-event","disable-next"])])]),_:1},8,["close-modal-event"])):v("",!0),e(t).isShowDetailsStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":e(t).totalStepsLabel,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[e(o)?(i(),m("p",ko," You will receive an email to confirm the time of your appointment. This will be sent to the following email address which we hold for you: ")):v("",!0),e(o)?(i(),m("p",$o,C(e(o)),1)):(i(),m("p",Co," We don't appear to hold an email address for you. ")),r("p",null,[k[6]||(k[6]=N(" If you wish to amend your email address please visit ")),k[7]||(k[7]=r("br",null,null,-1)),u(q,{"is-link":!0,path:"/person/account","button-label":"Account - Your details"}),k[8]||(k[8]=N(" to update this. "))])]),"modal-actions":c(()=>[r("div",So,[u(x,{"total-steps":6,"is-cancel-button":e(t).isCloseButton,"is-back-button":e(t).isBackButton,"button-label":e(t).isCloseButton?"Close":"Back","cancel-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent,"back-modal-event":e(t).eventsBus.showDetailsBackEvent},null,8,["is-cancel-button","is-back-button","button-label","cancel-modal-event","back-modal-event"]),u(x,{"total-steps":6,"is-next-button":!0,"button-label":"Next","next-modal-event":e(t).eventsBus.showDetailsNextEvent,"disable-next":e(t).disableNextShowDetail
1s},null,8,["next-modal-event","disable-next"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(t).isSelectAppointmentTypeStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":e(t).totalStepsLabel,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[u(M,{label:"Please select the type of appointment you would like:",radios:e(t).appointmentTypes,"event-name":e(t).eventsBus.selectAppointmentTypeEvent},null,8,["radios","event-name"])]),"modal-actions":c(()=>[r("div",Eo,[u(x,{"total-steps":6,"is-back-button":!0,"button-label":"Back","back-modal-event":e(t).eventsBus.selectAppointmentTypeBackEvent},null,8,["back-modal-event"]),u(x,{"total-steps":6,"is-next-button":!0,"button-label":"Next","next-modal-event":e(t).eventsBus.selectAppointmentTypeNextEvent,"disable-next":e(t).disableNextAppointmentType},null,8,["next-modal-event","disable-next"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(t).isConfirmNumberStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":e(t).totalStepsLabel,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[e(t).showNoTelephoneMessage?(i(),m("p",Po," We don't appear to hold any contact details for you. ")):(i(),y(M,{key:1,label:"Please confirm your number:","has-default-selected-value":e(t).hasDefaultSelectedValue,radios:e(t).telephonesList,"event-name":e(t).eventsBus.confirmNumberEvent},null,8,["has-default-selected-value","radios","event-name"])),r("p",Ao,[k[9]||(k[9]=N(" If you wish to amend the contact numbers we hold please visit ")),u(q,{"is-link":!0,path:"/person/account","button-label":"Account - Your details"}),k[10]||(k[10]=N(" to update this. "))])]),"modal-actions":c(()=>[r("div",xo,[u(x,{"total-steps":6,"is-back-button":!0,"button-label":"Back","back-modal-event":e(t).eventsBus.confirmNumberBackEvent},null,8,["back-modal-event"]),u(x,{"total-steps":6,"is-next-button":!0,"button-label":"Next","next-modal-event":e(t).eventsBus.confirmNumberNextEvent,"disable-next":e(t).disableNextConfirmNumber},null,8,["next-modal-event","disable-next"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(t).isGPPracticeStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":e(t).totalStepsLabel,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[k[11]||(k[11]=r("p",{class:"pb-small-1"}," It is a requirement of the GP Services provider to collect details of your GP so they can give them information about your appointment or to seek information from them. Please provide your current GP details as requested below: ",-1)),u(oe,{id:"formGpName",label:"GP Practice name"},{"form-input":c(()=>[r("div",{id:"textboxGpName",class:"textbox-scroll-min-height",style:{"background-color":"rgba(0, 0, 0, 0.05)"},spellcheck:"false",contenteditable:"true",onInput:k[0]||(k[0]=U=>O(U.target.innerText))},null,32)]),_:1}),u(oe,{id:"formGpPostcode",label:"GP Practice postcode"},{"form-input":c(()=>[r("div",{id:"textboxGpPostcode",class:"textbox-scroll-min-height",style:{"background-color":"rgba(0, 0, 0, 0.05)"},spellcheck:"false",contenteditable:"true",onInput:k[1]||(k[1]=U=>H(U.target.innerText))},null,32)]),_:1}),u(oe,{id:"formGpAddress",label:"GP Practice address (full address)"},{"form-input":c(()=>[r("div",{id:"textboxGpAddress",class:"textbox-scroll-medium-height",style:{"background-color":"rgba(0, 0, 0, 0.05)"},spellcheck:"false",contenteditable:"true",onInput:k[2]||(k[2]=U=>j(U.target.innerText))},null,32)]),_:1})]),"modal-actions":c(()=>[r("div",Bo,[u(x,{"total-steps":6,"is-back-button":!0,"button-label":"Back","back-modal-event":e(t).eventsBus.gpPracticeBackEvent},null,8,["back-modal-event"]),u(x,{"total-steps":6,"is-next-button":!0,"button-label":"Next","next-modal-event":e(t).eventsBus.gpPracticeNextEvent,"disable-next":!1},null,8,["next-modal-event"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(t).isTypeMessageStep?(i(),y(W,{key:e(f),title:"Request an appointment",size:"narrow","has-stepper-label":!0,"total-steps-label":e(t).totalStepsLabel,"close-modal-event":e(t).eventsBus.requestAnAppointmentCloseEvent},{"modal-contents":c(()=>[e(t).errorMessage?v("",!0):(i(),y(oe,{key:0,label:"Please write a short description about the reason for your appointment and any relevant medication you may be taking:"}
1,{"form-input":c(()=>[r("div",{id:"textbox",ref_key:"textareaRef",ref:a,class:"textbox-scroll",style:{"background-color":"rgba(0, 0, 0, 0.05)"},spellcheck:"false",contenteditable:"true",onInput:k[3]||(k[3]=U=>A(U.target.textContent)),onKeydown:k[4]||(k[4]=U=>S(U)),onPaste:k[5]||(k[5]=U=>D(U))},null,544),r("span",Mo,C(e(t).messageLength>0?e(t).messageLength:0)+"/"+C(e(t).maxLength),1)]),_:1})),e(t).errorMessage?(i(),m("p",Do,C(e(t).errorMessage),1)):(i(),m("p",To," GP services are provided to you by a third-party subject to their terms and conditions. Any personal data you share will be held by them under their privacy arrangements. "))]),"modal-actions":c(()=>[r("div",Io,[u(x,{"total-steps":6,"is-back-button":!0,"button-label":"Back","back-modal-event":e(t).eventsBus.typeMessageBackEvent},null,8,["back-modal-event"]),u(x,{"total-steps":6,"is-save-button":!0,"button-label":"Request appointment","save-modal-event":e(t).eventsBus.sendRemoteGpAppointmentRequestEvent,"disable-save":e(t).disableNextMessageStep},null,8,["save-modal-event","disable-save"])])]),_:1},8,["total-steps-label","close-modal-event"])):v("",!0),e(t).showConfirmationModal?(i(),y(W,{key:6,title:"Request an appointment",size:"narrow","has-stepper-label":!1,"close-modal-event":e(t).eventsBus.closeConfirmationModal},{"modal-contents":c(()=>k[12]||(k[12]=[r("p",{class:"pb-small-1"}," We've received your request for an appointment. ",-1),r("p",{class:"pb-small-1"}," We will send you an email with the next available appointment, within 4 hours of your request. ",-1),r("p",{class:"pb-small-1"},[N(" Please note this service is available Monday to Sunday "),r("br"),N("8AM-10PM. Excluding UK Bank Holidays. ")],-1)])),"modal-actions":c(()=>[r("div",Lo,[u(x,{"is-cancel-button":!0,"button-label":"Close","cancel-modal-event":e(t).eventsBus.closeConfirmationModal},null,8,["cancel-modal-event"])])]),_:1},8,["close-modal-event"])):v("",!0)])):v("",!0)}}}),Go=te(No,[["__scopeId","data-v-147ef740"]]),Vo={class:"main-container"},Ho={class:"page-container-fixed-width"},Wo={class:"grid-container grid-container-1 grid-gap-1 pt-big-2 pt-0-mob pb-big-2 pb-0-mob"},ln=V({__name:"homepage",setup(w){Re({title:"WPA Homepage"});const l=pe(),n=J(),{$api:p,$bus:d,$loading:_}=R(),s=p(),a=E(()=>n.getters["session/getPolicy"]),t=E(()=>n.getters["session/getProduct"]),f=E(()=>n.getters["session/getCustomerAccount"]),$=E(()=>n.getters["session/getContract"]),g=E(()=>n.getters["session/getCustomerId"]),T=E(()=>n.getters["person/getCustomerAddress"]),o=z({isProtocolExpressConsentPopupShown:!1,consentWording:null,isFPNShown:!1,fairProcessingNoticeId:null,fpnText:"",hasOpenClaim:!1,hasClosedClaim:!1,hasMakeANewClaimOption:!1,isClaimsCardVisible:!1,claim:[],lastClaimData:null,policyBenefitsCardData:[],policyMembers:[],hasGpServices:!1,showHealthAndWellbeingInfo:!1,validiumUrl:null,validiumMessage:null,lastClaimEncryptedId:"",homepageLinksVisibility:null,hasAddFamilyMemberButton:!1,hasPhysiotherapyPathwayBanner:!1,quotesAndApplicationsData:null,messageAGP:!1,bookAppointment:!1,treatmentAndGpServicesInfo:!1,doctifyUrl:null,isDoctifyEnabled:!1,announcementMessage:"",isDigiHealthInfoShown:!1,showThirdPartyDisclaimerModal:!1,hasFtssPathway:null}),b={heroViewActiveClaimEvent:"hero-view-active-claim-event",messageGpEvent:"message-gp-event",bookAppointmentEvent:"book-appointment-event",viewLatestClaimEvent:"view-latest-claim-event",claimsViewAllClaimsEvent:"claims-view-all-claims-event",updateDetailsEvent:"update-details-event",viewProductLiteratureEvent:"view-product-literature-event",viewBenefitsEvent:"view-benefits-event",messageAGPCloseEvent:"message-a-gp-close-event",requestAnAppointmentCloseEvent:"request-an-appointment-close-event",treatmentAndGpServicesInfoEvent:"treatment-and-gp-services-info-event",treatmentAndGpServicesInfoCloseEvent:"treatment-and-gp-services-info-close-event",redirectToPrecisionClaimEvent:"redirect-to-precision-claim-event",infoClosed:"info-closed",ftssClickEvent:"ftss-click-event",closeThirdPartyModalEvent:"close-third-party-confirmation-modal-event",continueToExternalWebsiteEvent:"continue-to-external-website-event"};X(()=>{ge().then(async()=>{_.$start(),await B(),await k(),await ve(),await M(),await j(),await x(),await W(),await U(),await Q(),await O(),await P(),await A(),await S(),await D(),await H(),he(),_.$finish(),d.$on(b.messageGpEvent,()=>{o.messageAGP=!0,o.bookAppointment=!1,o.treatmentAndGpServicesInfo=!1}),d.$on(b.bookAppointmentEvent,()=>{o.messageAGP=!1,o.bookAppointment=!0,o.treatmentAndGpServicesInfo=!1}),d.$on(b.treatmentAndGpServicesInfoEvent,()=>{o.treatmentAndGpServicesInfo=!0}),d.$on(b.treatmentAndGpServicesInfoCloseEvent,()=>{o.treatmentAndGpServicesInfo=!1}),d.$on(b.heroViewActiveClaimEvent,()=>
1{l.push("/person/claims")}),d.$on(b.claimsViewAllClaimsEvent,()=>{l.push("/person/claims")}),d.$on(b.viewLatestClaimEvent,()=>{l.push(`${n.state.config.PERSON_RELATIVE_PATH}/claims/${o.lastClaimEncryptedId}`)}),d.$on(b.updateDetailsEvent,()=>{l.push(`${n.state.config.PERSON_RELATIVE_PATH}/account`)}),d.$on(b.viewProductLiteratureEvent,()=>{n.commit("person/SET_POLICY_DETAILS_PAGE_TAB",Pe.PolicyDocuments),l.push({name:"policy-details"})}),d.$on(b.viewBenefitsEvent,()=>{n.commit("person/SET_POLICY_DETAILS_PAGE_TAB",Pe.PolicyBenefits),l.push({name:"policy-details"})}),d.$on("on-button-ctx-click",async h=>{const I=o.policyBenefitsCardData.find(L=>L.customEvent===h);await oe(I)}),d.$on(b.infoClosed,()=>{o.isDigiHealthInfoShown=!1}),d.$on("update-homepage",async()=>{await P(),await ve(),await W(),await Le(),await U(),await M(),await x(),await j(),await Q(),await O(),await A(),await S(),await D(),he(),_.$finish()}),d.$on(b.messageAGPCloseEvent,()=>{o.messageAGP=!1}),d.$on(b.requestAnAppointmentCloseEvent,()=>{o.bookAppointment=!1}),d.$on(b.redirectToPrecisionClaimEvent,()=>{_.$start(),setTimeout(()=>{tt.redirectToPrecisionClaim(n,s,l,{id:$.value.id},st.Physiotherapy)},1)}),d.$on(b.ftssClickEvent,async h=>{o.hasFtssPathway=(h==null?void 0:h.hasFtssPathway)||null,d.$emit(b.treatmentAndGpServicesInfoCloseEvent),o.showThirdPartyDisclaimerModal=!0}),d.$on(b.closeThirdPartyModalEvent,()=>{o.showThirdPartyDisclaimerModal&&(d.$emit(b.treatmentAndGpServicesInfoEvent),o.showThirdPartyDisclaimerModal=!1,o.hasFtssPathway=null)}),d.$on(b.continueToExternalWebsiteEvent,async()=>{if(o.showThirdPartyDisclaimerModal)if(o.hasFtssPathway.hasFastTrackSkinSupportPathway){const h=window.open(o.hasFtssPathway.url,"_blank");if(h)h.focus();else throw Se(Ee({statusCode:500,message:"Popup was blocked by the browser."}));d.$emit(b.closeThirdPartyModalEvent)}else throw Se(Ee({statusCode:500,message:"Redirect Failed."}))})})}),se(()=>{for(const I in b)d.$off(b[I]);d.$off("on-button-ctx-click"),d.$off("protocol-express-consent-submitted"),d.$off("hide-fpn"),d.$off("update-homepage");const h=document.querySelector("body");h.style.overflow="auto"}),qe(()=>{d.$on("protocol-express-consent-submitted",()=>{o.isProtocolExpressConsentPopupShown=!1;const h=document.querySelector("body");h.style.overflow="auto",k()}),d.$on("hide-fpn",()=>{o.isFPNShown=!1;const h=document.querySelector("body");h.style.overflow="auto"})});const P=async()=>{if(o.homepageLinksVisibility=null,$.value){const h=await s.policy.getHomepageLinksVisibility($.value.id);o.homepageLinksVisibility=h}},A=async()=>{o.hasAddFamilyMemberButton=!1,$.value&&(o.hasAddFamilyMemberButton=await s.policy.getHasFamilyMemberInvitationWithoutInvitation($.value.id))},S=async()=>{o.hasPhysiotherapyPathwayBanner=!1,$.value&&(o.hasPhysiotherapyPathwayBanner=await s.policy.hasPhysiotherapyPathwayBanner($.value.id))},D=async()=>{o.isDoctifyEnabled=!1;const h=await s.configuration.getDoctifyConfig();h!=null&&h.isDoctifyEnabled&&$.value&&await s.policy.isDoctifyEnabledForContract($.value.id)&&(o.doctifyUrl=h.doctifyUrl,o.isDoctifyEnabled=!0)},H=async()=>{const h=await s.configuration.getActiveAnnouncement();h!=null&&(o.announcementMessage=h.message)},O=async()=>{if(o.hasMakeANewClaimOption=!1,$.value&&f.value){const h=await s.policy.getClaimTypePolicies(f.value.CustomerId);o.isClaimsCardVisible=await s.policy.getMakeANewClaimAvailability($.value.id),(h.cashPlanPolicies.includes(a.value.id)||h.pmiPolicies.includes(a.value.id))&&(o.hasMakeANewClaimOption=!0)}},j=async()=>{$.value&&(o.hasGpServices=await s.policy.getGpServicesVisibility($.value.id))},Q=async()=>{var I;if(o.showHealthAndWellbeingInfo=!1,await s.product.getProductEapPhone((I=$.value)==null?void 0:I.id,["Yes","YES - Free Promotion"])){const L=await s.security.getValidiumUrl(t.value.id);L&&L.success===ee.validiumStatus.Success?(o.validiumUrl=L.url,o.showHealthAndWellbeingInfo=!0):L.success===ee.validiumStatus.ValidiumApiUnavailable||L.success===ee.validiumStatus.ProductValidiumSecurityTokenNotFound?(o.validiumMessage=L.message,o.showHealthAndWellbeingInfo=!0):o.showHealthAndWellbeingInfo=!1}},B=async()=>
1{if(o.isProtocolExpressConsentPopupShown=!1,f.value&&a.value&&$.value){const h=await s.policy.getLastDataProcessingConsentForCustomer(f.value.CustomerId,$.value.id);if(h&&(h.dataProcessingConsentId==0?o.isProtocolExpressConsentPopupShown=!0:h.dataProcessingConsentId&&(o.isProtocolExpressConsentPopupShown=!h.permanentConsent),o.isProtocolExpressConsentPopupShown)){const I=await s.policy.getDataProcessingConsentWording(f.value.CustomerId,$.value.id);if(I){o.consentWording=I;const L=document.querySelector("body");L.style.overflow="hidden"}}}},k=async()=>{if(o.isFPNShown=!1,!o.isProtocolExpressConsentPopupShown&&f.value&&a.value&&t.value){const h=await s.policy.getFairProcessingNotice(f.value.CustomerId,f.value.BuyCustomerId,f.value.LeadId,a.value.id,t.value.id);if(h&&(o.isFPNShown=!0,o.fairProcessingNoticeId=h.fairProcessingNoticeId,o.fpnText=h.text,o.isFPNShown)){const I=document.querySelector("body");I.style.overflow="hidden"}}},M=async()=>{if(o.hasOpenClaim=!1,o.hasClosedClaim=!1,o.hasMakeANewClaimOption=!1,(g.value||g.value===0)&&a){const h=await s.policy.getLastOpenClaimDetails(g.value,a.value.id);h.customerClaim?(o.claim=h.customerClaim,o.hasOpenClaim=!0):o.hasClosedClaim=!0}},x=async()=>{var h,I;if(o.lastClaimData=null,(g.value||g.value===0)&&((h=a.value)!=null&&h.id)){const L=await s.policy.getLastClaimDetails(g.value,a.value.id);L&&(o.lastClaimData=L,o.lastClaimEncryptedId=(I=o.lastClaimData.customerClaim)==null?void 0:I.encryptedClaimId)}},W=async()=>{var h;if(o.policyBenefitsCardData=[],(h=$.value)!=null&&h.id&&(g.value||g.value===0)){const I=await s.policy.getLoginPoliciesWeb(g.value),L=I.filter(K=>K.policyId===a.value.id)[0];o.policyBenefitsCardData.push({policy:{id:L.policyId,isDigiHealth:L.isDigiHealth},product:t.value,contract:$.value,benefits:[],isSelected:!0,customEvent:"select-policy-0",key:0});const ie=await s.policy.getBenefitsWithLimitForContract($.value.id);
1o.policyBenefitsCardData[0].benefits=q(ie);for(let K=0;K<I.length;++K){const Y=I[K];if(Y!=null&&Y.productId&&Y.policyId!==L.policyId){const le=await s.product.getProduct(Y.productId),fe={description:Y.name,id:le.productId,policyWord:le.policyWord,productGroup:le.productGroup},ue=await s.policy.getCurrentOrFutureContract(Y.policyId,g.value),ne={id:ue.id,relationship:ue.relationship},ye=await s.policy.getBenefitsWithLimitForContract(ne==null?void 0:ne.id);o.policyBenefitsCardData.push({policy:{id:Y.policyId,isDigiHealth:Y.isDigiHealth},product:fe,contract:ne,benefits:q(ye),isSelected:!1,customEvent:`select-policy-${K+1}`,key:K+1})}}}},q=h=>{if(h)return h.slice(0,3)},oe=async h=>{var I;((I=a.value)==null?void 0:I.id)!==h.policy.id&&(_.$start(),o.policyBenefitsCardData.forEach(L=>{L.key===h.key?L.isSelected=!0:L.isSelected=!1}),Ue(n,h.contract,h.policy,h.product),await P(),await S(),await D(),await A(),await ve(),await B(),await k(),await M(),await j(),await x(),await U(),await Q(),await O(),he(),d.$emit("update-account"),d.$emit("update-contact-us"),_.$finish())},U=async()=>{var h;if((g.value||g.value===0)&&((h=a.value)!=null&&h.id)){o.policyMembers=[];const I=await s.policy.getPolicyMembers(g.value,a.value.id);I==null||I.forEach((L,ie)=>{var K,Y;o.policyMembers.push({label:`${(Y=L.name)==null?void 0:Y.substr(((K=L.name)==null?void 0:K.indexOf(" "))+1)}`,value:L.customerId,key:ie})})}},Le=async()=>{if(g.value||g.value===0){const h=await s.policy.getCustomerDetails(g.value,$.value.id);n.commit("person/SET_CUSTOMER_ADDRESS",h.address)}},ve=async()=>{(g.value||g.value===0)&&(o.quotesAndApplicationsData=await s.policy.getQuotesAndApplicationsWebBuy(g.value))},he=()=>{var I;let h=o.policyBenefitsCardData.find(L=>L.isSelected);o.isDigiHealthInfoShown=((I=h==null?void 0:h.policy)==null?void 0:I.isDigiHealth)??!1};return(h,I)=>{const L=bt,ie=ht,K=gt,Y=It,le=Vt,fe=Qt,ue=ds,ne=ys,ye=Ys,Ne=io,Ge=_o,Ve=Go,He=ke;return i(),m("main",Vo,[e(o).isProtocolExpressConsentPopupShown?(i(),y(L,{key:0,consentWording:e(o).consentWording},null,8,["consentWording"])):v("",!0),e(o).isFPNShown?(i(),y(ie,{key:1,"fair-processing-notice-id":e(o).fairProcessingNoticeId,text:e(o).fpnText},null,8,["fair-processing-notice-id","text"])):v("",!0),e(o).isDigiHealthInfoShown?(i(),y(K,{key:2})):v("",!0),u(Y,{announcementMessage:e(o).announcementMessage,"has-gp-services":e(o).hasGpServices,"has-open-claim":e(o).hasOpenClaim,"has-closed-claim":e(o).hasClosedClaim,"has-make-a-new-claim-option":e(o).hasMakeANewClaimOption,"condition-description":e(o).claimconditionDescription,"quotes-and-applications-data":e(o).quotesAndApplicationsData},null,8,["announcementMessage","has-gp-services","has-open-claim","has-closed-claim","has-make-a-new-claim-option","condition-description","quotes-and-applications-data"]),e(o).hasPhysiotherapyPathwayBanner?(i(),y(le,{key:3})):v("",!0),r("div",Ho,[r("div",Wo,[u(fe,{"policy-benefits-card-data":e(o).policyBenefitsCardData,"links-visibility":e(o).homepageLinksVisibility,"has-add-family-member-button":e(o).hasAddFamilyMemberButton},null,8,["policy-benefits-card-data","links-visibility","has-add-family-member-button"]),u(ue,{address:e(T),"policy-members":e(o).policyMembers},null,8,["address","policy-members"]),u(ne,{"show-health-and-wellbeing-info":e(o).showHealthAndWellbeingInfo,"validium-url":e(o).validiumUrl,"validium-message":e(o).validiumMessage,"is-doctify-enabled":e(o).isDoctifyEnabled,"doctify-url":e(o).doctifyUrl},null,8,["show-health-and-wellbeing-info","validium-url","validium-message","is-doctify-enabled","doctify-url"]),e(o).isClaimsCardVisible?(i(),y(ye,{key:0,claim:e(o).lastClaimData!==null?e(o).lastClaimData.customerClaim:null,description:e(o).lastClaimData!==null?e(o).lastClaimData.claimMessage:"","has-make-a-new-claim-option":e(o).hasMakeANewClaimOption},null,8,["claim","description","has-make-a-new-claim-option"])):v("",!0)])]),e(o).treatmentAndGpServicesInfo?(i(),y(Ne,{key:4})):v("",!0),e(o).messageAGP?(i(),y(Ge,{key:5})):v("",!0),e(o).bookAppointment?(i(),y(Ve,{key:6})):v("",!0),e(o).showThirdPartyDisclaimerModal?(i(),y(He,{key:7})):v("",!0)])}}});
1export{ln as default};

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.