1import{h as t,a3 as e,x as o,v as a,o as s,k as i,f as r,t as c,u as p,F as n,C as l,n as u,s as d}from"./vendor-CV6ISSGl.js";import{u as v,C as h,a as m}from"./index-B_XXSZdw.js";import"./adyen-2xVWhjfd.js";var g="https://philipsb2c.my.salesforce-scrt.com",f="https://philipsb2c.my.site.com/ESWPhilipsChatDeploymen1727947253160",y="00Dw0000000Cp29",C="https://philipsb2c.my.site.com/ESWPhilipsChatDeploymen1727947253160/assets/js/bootstrap.min.js";const b={class:"product-support"},w={class:"product-support__product-image"},_=["src"],S={class:"product-support__title pv-heading pv-heading--s p-bold"},P={class:"product-support__subtitle pv-heading pv-subheading--m"},L={class:"product-support__cards"},k={class:"product-support__cards-icon"},D=["src"],I={class:"p-bold"},E=["href","onClick"],T={__name:"ProductSupportSection",props:{specificProductId:{type:String,default:""}},setup(T){const{i18n:j}=v(),{trackSupportCtaClick:x}=m(),F=T,A=d(null),R=d(!1);t(async()=>{z().then(()=>{G()}).catch(t=>{R.value=!0,console.error("Failed to load Salesforce support chat widget:",t)});const t=await h.getSupportProductDetails({localeId:$.value,ctn:F.specificProductId});A.value=t.data?.data?e(t.data.data):null});const U=a(()=>A.value?.additionalInfo?.supportPagePath||""),W=a(()=>A.value?.summary?.familyName||""),B=a(()=>A.value?.summary?.imageURL||""),H=a(()=>[{iconSrc:"/c-e/shop/checkout/assets/img/confirmation/video.svg",title:"confirmationoverview.product-support-video-title",description:"confirmationoverview.product-support-video-description",cta:"confirmationoverview.product-support-video-cta",ctaClasses:"button",ctaLink:`${U.value}#support-video`,ctaType:"Support Video"},{iconSrc:"/c-e/shop/checkout/assets/img/confirmation/person-headset.svg",title:"confirmationoverview.product-support-chat-title",description:"confirmationoverview.product-support-chat-description",cta:"confirmationoverview.product-support-chat-cta",ctaClasses:"button button--secondary",ctaLink:"c-s/support/contact",ctaType:"Support Chat"}]),N=o(),O=a(()=>N.getters["config/getDefaultConfig"]("country")),V=a(()=>N.getters["config/getDefaultConfig"]("language")),$=a(()=>N.getters["config/getDefaultConfig"]("localeId")),q=()=>{const t=globalThis.embeddedservice_bootstrap;t.prechatAPI?.setHiddenPrechatFields({country:O.value?.toLowerCase(),domain:"care",language:V.value?.toLowerCase()}),t.utilAPI?.launchChat()},z=()=>new Promise((t,e)=>{const o=document.createElement("script");o.src=C,o.async=!0,o.addEventListener("load",t,{once:!0}),o.addEventListener("error",e,{once:!0}),document.body.append(o)}),G=()=>{const t=globalThis.embeddedservice_bootstrap;if(!t)throw new Error("Salesforce chat bootstrap is not available");t.init(y,"Philips_Chat_Deployment",f,{scrt2URL:g,language:V.value.toLowerCase(),hideChatButtonOnLoad:!0})};return(t,e)=>(s(),i("section",b,[r("div",w,[r("img",{src:B.value,alt:"",width:"180",height:"180"},null,8,_)]),r("h2",S,c(p(j)("confirmationoverview.product-support-title",[W.value])),1),r("p",P,c(p(j)("confirmationoverview.product-support-subtitle")),1),r("ul",L,[(s(!0),i(n,null,l(H.value,t=>(s(),i("li",{key:t.title,class:"product-support__cards-item"},[r("div",k,[r("img",{src:t.iconSrc,alt:"",height:"64",width:"64"},null,8,D)]),r("h3",I,c(p(j)(t.title)),1),r("p",null,c(p(j)(t.description)),1),r("a",{href:t.ctaLink,target:"_blank",class:u(t.ctaClasses),onClick:e=>{return o=e,a=t.ctaType,x({country:O.value,ctn:F.specificProductId,ctaType:a}),void("Support Chat"===a&&!1===R.value&&(o.preventDefault(),q()));var o,a}},c(p(j)(t.cta)),11,E)]))),128))])]))}};export{T 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.